1.5 KiB
1.5 KiB
MRVA VS Code server container
On the host:
-
Build the container via
make csi -
Run the container via
make csi-serve - Connect to it at http://localhost:9080/?folder=/home/coder, password is
mrva.
Inside the container:
-
Setup inside the container
export PATH=/opt/codeql:$PATH codeql pack init qldemo cd qldemo codeql pack add codeql/python-all@1.0.6 -
Open a new file
qldemo/simple.qland add this this query to it. The plugin will download the CodeQL binaries (but never use them – the configuration redirects)import python select 42 -
Create database.
cd ~/qldemo cat > short.py <<EOF print('hello world') EOF export PATH=/opt/codeql:$PATH codeql database create --language=python -s . -v short-db - Set the database as default and run the query.
-
Capture the state of this container and create a new image from it
docker ps docker commit 0c15aeeaa914 code-server-initialized:0.1.24 docker kill 0c15aeeaa914 docker run -d -p 9080:9080 code-server-initialized:0.1.24 -
Push this container ~/work-gh/mrva/mrvacommander/client/containers/vscode/Makefile::image-push: image
docker images |head make csi-push