mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
ref: Better container init in shell
This commit is contained in:
parent
2fd99c960c
commit
ea6c295df5
2 changed files with 3 additions and 8 deletions
10
README.md
10
README.md
|
|
@ -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
1
run-container.sh
Normal 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
|
||||||
Loading…
Reference in a new issue