Skip to content

Fix setup steps for Workspace container

Sarah German requested to merge 1724-gl-workspace-docker into main

What does this MR do and why?

Updates the Docker image used for GitLab Workspaces. This should fix issues with installing dependencies and compiling the site in a Workspace environment.

This MR addresses two issues:

  • asdf was not set up correctly (make setup failed to run due to missing asdf in the $PATH)
  • we need to clone our source content repos as part of environment setup

Closes #1724 (closed)

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Check out this branch
  2. Build the Docker image: docker build --build-arg ASDF_VERSION="0.12.0" --tag docs:workspace -f dockerfiles/gitlab-docs-workspace.Dockerfile . (this takes ~55 minutes on my laptop)
  3. Start up a container environment: docker run -it --name 1724-test docs:workspace
  4. Verify you can successfully compile the site: make compile (this takes ~30 minutes on my laptop)

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sarah German

Merge request reports