Skip to content

Commit

Permalink
docker: added Extensions-volume
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Oct 10, 2023
1 parent eda4486 commit 041797a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ services:
- ./etc/:/home/zope/venv/instance/zms5/etc/
- ./Extensions/:/home/zope/venv/instance/zms5/Extensions/:rw
- ./var/:/home/zope/venv/instance/zms5/var/
- ./.vscode:/home/zope/venv/src/zms/.vscode:rw

# command: /home/zope/venv/instance/zms5/etc/start.sh
1 change: 1 addition & 0 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN mkwsgiinstance -d venv/instance/zms5 -u admin:admin

COPY ./etc venv/instance/zms5/etc
COPY ./var venv/instance/zms5/var
COPY ./Extensions venv/instance/zms5/Extensions


# Finally Start ZEO/Zope by Script
Expand Down
6 changes: 4 additions & 2 deletions docker/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ or referenced as *volume mounts* from the *container* (on composing):
## Overview of Docker- and all Zope config-files
*Hint: to ease the file access from the container the config files are not restricted*
*Hint: to ease the file access from the container the config files are not restricted:* `chmod -r 777`
```
$ tree -p
.
├── [-rw-r--r--] docker-compose.yml
├── [-rw-r--r--] dockerfile
├── [drwxrwxrwx] Extensions
├── [drwxrwxrwx] etc
│ ├── [-rwxrwxrwx] start.sh
│ ├── [-rwxrwxrwx] zeo.conf
Expand All @@ -61,6 +62,7 @@ The VSCode Docker Extension [ms-azuretools.vscode-docker](https://marketplace.vi
![Running the ZMS Container with VSCode](../docs/images/admin_docker_run.gif)
## Attach VSCode to the ZMS Container
Another right click on the running container-ID allows to intrude the container with VSCode and launch a new Zope instance in debugging mode. Hint: For this purpose the ./docker/.vscode folder contains a prepared VSCode-config file [launch.json](https://github.com/zms-publishing/ZMS/blob/main/docker/.vscode/launch.json). The thus launched Zope instance for debugging will run port 8086.
Another right click on the running container-ID allows to intrude the container with VSCode and launch a new Zope instance in debugging mode.
Hint: For this purpose the docker-container folder `/home/zope/venv/src/zms/docker/.vscode/` contains a prepared VSCode-workspace file and a launch file for starting Zope in debug-mode within the container [launch.json](https://github.com/zms-publishing/ZMS/blob/main/docker/.vscode/launch.json). The thus launched Zope instance will run port 8087.
![Attach VSCode to the ZMS Container](../docs/images/admin_docker_debug_zeo.gif)

0 comments on commit 041797a

Please sign in to comment.