File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ Main Changes:
2121
2222I have simplified the ` entrypoint.sh ` such that ` devpi-server ` runs as the main process instead of a background process in the container.
2323As such, there is no need to call special commands like ` pgrep ` to check if ` devpi-server ` is still alive.
24- Without the need for ` pgrep ` , we can use ` python:slim ` (200+ MB) as the base image instead of usual ` python:latest ` (900+ GB), saving over 75% in space.
24+ Without the need for ` pgrep ` , we can use ` python:slim ` as the base image instead of usual ` python:latest ` .
25+ The final docker image size reduced from >1GB to 209MB, a space saving of about 80%.
2526
2627
2728Building the image
@@ -32,11 +33,11 @@ On an internet connected computer, build the docker image using:
3233docker build -t tpl2go/devpi:$( date ' +%Y-%m-%d' ) .
3334```
3435
35- Starting the image
36+ Running the image
3637------------------
37- Within the container,` devpi ` stores its packages and data within ` /devpi ` .
38- We can use a bind mount from ` <devpi-vol-path> ` to provision this persistent storage space within container.
39- Additionally, we need to map port 3141 from within the container to whatever ` external-port ` you want the container to serve.
38+ Within the container,` devpi-server ` stores its packages and data within the root directory ` /devpi ` .
39+ We can use a bind mount from ` <devpi-vol-path> ` to ` /devpi ` to provision this directory as a persistent storage space within container.
40+ Additionally, we need to map port 3141 from within the container to whatever ` < external-port> ` you want the container to serve.
4041
4142``` bash
4243docker run -d -p < external-port> :3141 -v < devpi-vol-path> :/devpi \
You can’t perform that action at this time.
0 commit comments