Set up and push fully configured vs code container
This commit is contained in:
committed by
=Michael Hohn
parent
34958e4cf4
commit
8dd6c94918
@@ -23,4 +23,5 @@ csi-push: csi
|
|||||||
|
|
||||||
csi-test:
|
csi-test:
|
||||||
docker pull ghcr.io/hohn/${CSI_TARGET}
|
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}
|
||||||
|
|||||||
@@ -46,13 +46,20 @@
|
|||||||
codeql database create --language=python -s . -v short-db
|
codeql database create --language=python -s . -v short-db
|
||||||
#+END_SRC
|
#+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
|
- Capture the state of this container and create a new image from it
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
docker ps
|
docker ps
|
||||||
docker commit 0c15aeeaa914 code-server-initialized:0.1.24
|
docker commit 3802c3e9ad8c code-server-initialized:0.1.24
|
||||||
docker kill 0c15aeeaa914
|
# 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
|
docker run -d -p 9080:9080 code-server-initialized:0.1.24
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@@ -60,3 +67,10 @@
|
|||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
make csi-push
|
make csi-push
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
- Test the registry image
|
||||||
|
#+BEGIN_SRC sh
|
||||||
|
make csi-test
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user