This repository contains the Visual Studio Code container image for use on the Analytical Platform.
make build
make test
make run
Open a browser http://localhost:8080/?folder=/home/analyticalplatform/workspace
Generally Dependabot does this, but the following command will return the digest:
docker pull --platform linux/amd64 ghcr.io/ministryofjustice/analytical-platform-cloud-development-environment-base:$(curl --silent https://api.github.com/repos/ministryofjustice/analytical-platform-cloud-development-environment-base/releases/latest | jq -r .tag_name)
docker image inspect --format='{{index .RepoDigests 0}}' ghcr.io/ministryofjustice/analytical-platform-cloud-development-environment-base:$(curl --silent https://api.github.com/repos/ministryofjustice/analytical-platform-cloud-development-environment-base/releases/latest | jq -r .tag_name)
Releases for Visual Studio Code are published on GitHub, but we specifically want the Debian package version, to obtain this you can run the following:
curl --silent https://packages.microsoft.com/repos/code/pool/main/c/code/ | grep $(curl --silent https://api.github.com/repos/microsoft/vscode/releases/latest | jq -r .tag_name) | grep amd64
This will return a string like:
<a href="code_1.86.2-1707854558_amd64.deb">code_1.86.2-1707854558_amd64.deb</a> ...
From that, we want 1.86.2-1707854558
.
Maintenance of this component is scheduled in this workflow, which generates a maintenance ticket as per this example.