Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.4 KB

dev.md

File metadata and controls

65 lines (43 loc) · 1.4 KB

Documentation

TBD

Building base container

  1. Select a build name, e.g. export BUILD=lab-3-4-5-clojupyter-0-3-5-base-1

  2. Update .devcontainer/Dockerfile with the appropriate changes.

1a. mkdir tmp

  1. run docker build -f .devcontainer/Dockerfile -t krukow/edmondson:$BUILD ./tmp

  2. run docker push krukow/edmondson:$BUILD

Building a -dev docker container

Use the latest $BUILD (see building base container).

docker run -it -u jovyan -p 8888:8888 \
            -v ${PWD}:/home/jovyan/work/ \
            -w /home/jovyan/ \
            krukow/edmondson:$BUILD \
            /bin/bash
  1. In container bash:
(base) jovyan@4234588889ae:~$ cd work/
(base) jovyan@4234588889ae:~/work$ ./script/go.sh docker
Building
Downloading:...
...
Installation successful.

exit(0)
(base) jovyan@d79e868e1e4c:~/work$ /usr/local/bin/clojure -A:upload -P
Downloading:...
  1. In host shell docker ps to finder container id; then
docker commit --author "Karl Krukow <[email protected]>" -m "<msg>" <cont-id> krukow/edmondson:<dev-version>

If you just have that one container:

dev_version="lab-3-4-5-clojupyter-0-3-5-dev-1"
container_id=$(docker ps --format "{{.ID}}")
docker commit --author "Karl Krukow <[email protected]>" -m "Dev container for $BUILD" $container_id krukow/edmondson:$dev_version
  1. In host shell
docker push krukow/edmondson:$dev_version