Set up and push Docker containers for demonstration purposes
These containers take the place of a desktop install
This commit is contained in:
committed by
=Michael Hohn
parent
681fcdab8c
commit
1e2df515e3
26
client/containers/vscode/Makefile
Normal file
26
client/containers/vscode/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user