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

MAINT: Stop modifying schemas in Docker #967

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

mferrera
Copy link
Collaborator

@mferrera mferrera commented Jan 14, 2025

Resolves #966

This change moves the dev and prod url changes to part of the release process (running SCHEMA_RELEASE=1 ./tools/update-schema in the staging branch). It is checked in the 'staging' branch so that it happens explicitly.

See https://github.com/equinor/fmu-dataio/actions/runs/12671501765/job/35313394311?pr=960#step:6:13 for an example of how this looks.

This change moves the dev and prod url changes and checks to the dev
release side. It is checked in the 'staging' branch so that it happens
explicitly.
@mferrera mferrera marked this pull request as ready for review January 14, 2025 06:52
RUN chown -R 101 .
RUN apk update && apk upgrade && apk add jq
Copy link
Collaborator Author

@mferrera mferrera Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only needed for modifying the schema files, but it increases consistency. It's not great practice to update & upgrade packages in a Docker image like this because it means every deployment could potentially have different versions of things outside of what nginx has released in their image. That also has security implications

@mferrera mferrera requested review from tnatt and slangeveld January 14, 2025 06:56
Copy link
Collaborator

@tnatt tnatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 LGTM

@mferrera mferrera merged commit 9331f16 into equinor:main Jan 14, 2025
16 checks passed
@mferrera mferrera deleted the dont-modify-schemas-in-docker branch January 14, 2025 07:07
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.

Remove $id schema patch from docker start-up
2 participants