From 8dd6c949186082c45877febeadc28d3225320027 Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Thu, 12 Sep 2024 14:05:59 -0700 Subject: [PATCH] Set up and push fully configured vs code container --- client/containers/vscode/Makefile | 3 ++- client/containers/vscode/README.org | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/client/containers/vscode/Makefile b/client/containers/vscode/Makefile index 9483b0b..33c89e0 100644 --- a/client/containers/vscode/Makefile +++ b/client/containers/vscode/Makefile @@ -23,4 +23,5 @@ csi-push: csi csi-test: docker pull ghcr.io/hohn/${CSI_TARGET} - docker run --rm -it --name test-code-server-codeql ghcr.io/hohn/${CSI_TARGET} sh + docker run --rm -d -p 9080:9080 --name test-code-server-codeql\ + ghcr.io/hohn/${CSI_TARGET} diff --git a/client/containers/vscode/README.org b/client/containers/vscode/README.org index 65ea44f..263475c 100644 --- a/client/containers/vscode/README.org +++ b/client/containers/vscode/README.org @@ -46,13 +46,20 @@ codeql database create --language=python -s . -v short-db #+END_SRC - - Set the database as default and run the query on =simple.ql= + - Set the database as default and run the query =simple.ql= - Capture the state of this container and create a new image from it #+BEGIN_SRC sh docker ps - docker commit 0c15aeeaa914 code-server-initialized:0.1.24 - docker kill 0c15aeeaa914 + docker commit 3802c3e9ad8c code-server-initialized:0.1.24 + # sha256:76cfebdd75a69bcaa8020d06fec52593bd5fde06a100c1962f3201af809bfac0 + docker kill 3802c3e9ad8c + + # Make sure the image tag matches the sha + docker inspect code-server-initialized:0.1.24 |grep Id + # "Id": "sha256:76cfebdd75a69bcaa8020d06fec52593bd5fde06a100c1962f3201af809bfac0", + + # Run the image and check docker run -d -p 9080:9080 code-server-initialized:0.1.24 #+END_SRC @@ -60,3 +67,10 @@ #+BEGIN_SRC sh make csi-push #+END_SRC + + - Test the registry image + #+BEGIN_SRC sh + make csi-test + #+END_SRC + +