Running the container#
Start the Docker container#
Whenever you need to restart the pylith-dev-workspace
Docker container, simply run
docker run --name pylith-dev-workspace --rm -it -v pylith-dev:/opt/pylith \
registry.gitlab.com/cig-pylith/pylith_installer/pylith-devenv
xhost +$(hostname).local
docker run --name pylith-dev-workspace --rm -it -e DISPLAY=host.docker.internal:0 \
-v pylith-dev:/opt/pylith \
registry.gitlab.com/cig-pylith/pylith_installer/pylith-devenv
Important
Make sure Docker is running before you start the container.
Attach VS Code to the Docker container#
Start VS Code.
Click on the Docker extension in the Activity Bar on the far left hand side as illustrated in the screenshot.
Find the
pylith-dev-workspace
container. Verify that it is running.Right-click on the container and select
Attach Visual Studio Code
. This will open a new window. You should seeContainer registry.gitlab.com/cig-pylith...
at the left side of the status bar at the bottom of the window.Open the PyLith source code by selecting
File
->Open Folder...
and navigating to/opt/pylith/src/
.