Files
mrvacommander/client/containers/vscode/README.org
Michael Hohn 1e2df515e3 Set up and push Docker containers for demonstration purposes
These containers take the place of a desktop install
2024-09-04 15:52:18 -07:00

1.5 KiB
Raw Blame History

MRVA VS Code server container

On the host:

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.ql and 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