ref: Better container init in shell

This commit is contained in:
JJ-Cronos 2024-05-17 11:42:13 +02:00
parent 2fd99c960c
commit ea6c295df5
2 changed files with 3 additions and 8 deletions

View file

@ -53,16 +53,10 @@ You have two option for starting the docker container for development:
### Manually start the container ### Manually start the container
1. Start the containers with docker-compose. 1. Run the following script
```sh ```sh
docker-compose -f .devcontainer/docker-compose.yml up -d sudo ./run-container.sh
```
2. Execute (open) the working directory of the container.
```sh
docker exec -e "TERM=xterm-256color" -w /workspace/development -it devcontainer-frappe-1 bash
``` ```
> Note: Your **terminal** is now open in the development workspace. However, the VsCode **window** is not. > Note: Your **terminal** is now open in the development workspace. However, the VsCode **window** is not.

1
run-container.sh Normal file
View file

@ -0,0 +1 @@
docker-compose -f .devcontainer/docker-compose.yml up -d && docker exec -e \"TERM=xterm-256color\" -w /workspace/development -it devcontainer-frappe-1 bash