Skip to content

Commit

Permalink
docker: changed debug paths
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Oct 10, 2023
1 parent 0c9a2a6 commit eda4486
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docker/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
"name": "ZMS5-Docker",
"type": "python",
"request": "launch",
"program": "/app/zope/bin/runwsgi",
"program": "/home/zope/venv/bin/runwsgi",
"justMyCode": false,
"console": "integratedTerminal",
"args": [
"--debug",
"--verbose",
"/app/zope/etc/zope.ini",
"/home/zope/venv/instance/zms5/etc/zope.ini",
"debug-mode=on",
"http_port=8087",
],
"env": {
"PYTHONUNBUFFERED":"1",
"CONFIG_FILE": "/app/zope/etc/zope.ini",
"INSTANCE_HOME": "/app/zope",
"CLIENT_HOME": "/app/zope",
"PYTHON": "/app/zope/bin/python",
"SOFTWARE_HOME": "/app/zope/bin/"
"CONFIG_FILE": "/home/zope/venv/instance/zms5/etc/zope.ini",
"INSTANCE_HOME": "/home/zope/venv/instance/zms5",
"CLIENT_HOME": "/home/zope/venv/instance/zms5",
"PYTHON": "/home/zope/venv/bin/python",
"SOFTWARE_HOME": "/home/zope/venv/bin"
},
"serverReadyAction":{
"pattern":"Serving on http://0.0.0.0:8086",
"uriFormat": "http://127.0.0.1:8086/manage_main",
"pattern":"Serving on http://0.0.0.0:8087",
"uriFormat": "http://127.0.0.1:8087/manage_main",
"action": "openExternally",
},
},
Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
- SOFTWARE_HOME="/home/zope/venv/bin"
volumes:
- ./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 @@ -30,6 +30,7 @@ RUN mkwsgiinstance -d venv/instance/zms5 -u admin:admin
COPY ./etc venv/instance/zms5/etc
COPY ./var venv/instance/zms5/var


# Finally Start ZEO/Zope by Script
# ENTRYPOINT ["/bin/sh -c"]
CMD ["/home/zope/venv/instance/zms5/etc/start.sh"]

0 comments on commit eda4486

Please sign in to comment.