TerriaMap icon indicating copy to clipboard operation
TerriaMap copied to clipboard

Release TerriaMap using create-docker-context

Open tephenavies opened this issue 1 year ago • 3 comments

Current TerriaMap ghcr.io/terriajs/terriamap releases take more than 2 hours to run various typescript and webpack builds on virtualised ARM. This PR switches those releases to use create-docker-context.js to install dependencies and build JS once on the current machine, then create the multi-arch docker image using those build artifacts and installed dependencies. Development dependencies also will no longer be shipped in our docker images as create-docker-context.js does not copy these.

  • Add metadata option supporting docker/metadata-action tags and labels
  • Update release process to use create-docker-context for smaller images and faster buildx builds

tephenavies avatar May 10 '24 05:05 tephenavies

Does the Dockerfile in the root of this repository serve any purpose after this PR, or should it be removed?

pjonsson avatar Jul 18 '24 11:07 pjonsson

It looks like my comments about users and permissions have been resolved, is this ready to be merged?

pjonsson avatar Aug 21 '24 15:08 pjonsson