Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy create-docker-context-for-node-component script from magda docker-utils for ci.terria.io builds #679

Merged
merged 9 commits into from
May 9, 2024

Conversation

tephenavies
Copy link
Member

@tephenavies tephenavies commented May 7, 2024

I've shortened the name to create-docker-context.js to signify that the script is different to the older scripts in forks.

In the end it isn't very different from the @magda/docker-utils script, except that it supports using a Dockerfile that isn't at the root of the repository. I think this is essential for us. We don't want to prominently show a Dockerfile that is actually the second stage of a build process that requires a specialised docker context to build the correct image.

In a future PR I'd like to replace the TerriaMap build used for official releases to ghcr.io/terriajs/terriamap with one using this process. That will greatly reduce time taken on CI to run releases (currently installing dependencies and building a multi-arch TerriaMap container takes hours, but we could just install dependencies and build TerriaMap once on CI's native arch and copy artifacts, as the create-docker-context.js script does).

package.json Outdated Show resolved Hide resolved
@tephenavies tephenavies changed the title Use create-docker-context-for-node-component script from magda docker-utils for ci.terria.io builds Copy create-docker-context-for-node-component script from magda docker-utils for ci.terria.io builds May 9, 2024
@tephenavies tephenavies marked this pull request as ready for review May 9, 2024 03:33
@tephenavies tephenavies merged commit f49fc09 into main May 9, 2024
6 checks passed
@tephenavies tephenavies deleted the fix-ci-scripts branch May 9, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants