queue-management icon indicating copy to clipboard operation
queue-management copied to clipboard

Update dev container configuration

Open chrsamp opened this issue 1 year ago • 2 comments

Resolves SBCQ-245 and fixes issues creating local dev containers.

  • Remove deprecated keys from devcontainer.json
  • Remove deprecated version key from docker-compose.yml
  • Fix postCreateCommand.sh to only log output from stderr
  • Do not run dependency install tasks in parallel
  • Update package.json on both frontend and appointment-frontend to run npm-force-resolutions without input
  • Add local config files to postCreateCommand.sh
  • Add dev Keycloak configuration
  • Update documentation

chrsamp avatar Sep 12 '24 16:09 chrsamp

The latest commits update postCreateCommand.sh to check whether a user IDIR already exists when bootstrapping the local database. I've also bumped the base container version to 3.8-bullseye, which adds arm64 support and removed the default JRE install in favour of the JRE bundled with the SonarLint extension (the default JRE was < v17, which doesn't work with the extension anyway).

Part of my rationale for this PR is to allow us to have a reproducible development environment, so if we did run into issues (for example, with permissions), we could simply destroy the containers used and rebuild them.

chrsamp avatar Sep 12 '24 19:09 chrsamp