Skip to content

ministryofjustice/analytical-platform-visual-studio-code

Repository files navigation

Analytical Platform Visual Studio Code

repo standards badge

Open in GitHub Codespaces

This repository contains the Visual Studio Code container image for use on the Analytical Platform.

Running Locally

Build

make build

Test

make test

Run

make run

Open a browser http://localhost:8080/?folder=/home/analyticalplatform/workspace

Managing Software Versions

Base Image

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)

Visual Studio Code

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

Maintenance of this component is scheduled in this workflow, which generates a maintenance ticket as per this example.