Inspiration from this blog 4 เทคนิคง่ายๆ เพื่อจัดการ Dev Environment แบบเนี๊ยบๆ ทันใจวัยทีน ⚡️
Develop envinronment with short command
$ ws morty
run docker compose up -d
Rename 'Devenvironment' folder to 'workspaces'.
$ mv devenvironment workspaces
Run setup script.
$ cd workspaces && ./setup.sh YOUR_PATH
Example:
$ ./setup.sh ~/kong
You can do this by adding the following line to your profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
export ME=YOUR_PATH
source $ME/workspaces/.config
Note: This not apply untill the next time you log into your terminal. You can run the following commands for the different shells on the command line:
bash: source ~/.bashrc
zsh: source ~/.zshrc
- makefile
- podman or docker
- docker-compose