Set up and push Docker containers for demonstration purposes

These containers take the place of a desktop install
This commit is contained in:
Michael Hohn
2024-09-04 15:52:18 -07:00
committed by =Michael Hohn
parent 681fcdab8c
commit 1e2df515e3
12 changed files with 403 additions and 33 deletions

View File

@@ -0,0 +1,26 @@
all: code-server-initialized
CSI_TARGET := code-server-initialized:0.1.24
csi: code-server-initialized
code-server-initialized:
docker build -t ${CSI_TARGET} .
touch $@
csi-serve: csi
docker run -d -p 9080:9080 ${CSI_TARGET}
clean:
-docker rmi -f ${CSI_TARGET}
-rm code-server-initialized
# Targets below are used after some manual setup of the container. See README.org
# for details
csi-push: csi
docker tag ${CSI_TARGET} ghcr.io/hohn/${CSI_TARGET}
docker push ghcr.io/hohn/${CSI_TARGET}
touch $@
csi-test:
docker pull ghcr.io/hohn/${CSI_TARGET}
docker run --rm -it --name test-code-server-codeql ghcr.io/hohn/${CSI_TARGET} sh