Skip to content

Added dockerfile and workflow to build Docker image with baked-in profiles#136

Open
EttoreM wants to merge 1 commit intodevelopfrom
135-add-release-triggered-github-actions-workflow-to-build-docker-image-with-baked-in-profiles
Open

Added dockerfile and workflow to build Docker image with baked-in profiles#136
EttoreM wants to merge 1 commit intodevelopfrom
135-add-release-triggered-github-actions-workflow-to-build-docker-image-with-baked-in-profiles

Conversation

@EttoreM
Copy link
Contributor

@EttoreM EttoreM commented Mar 8, 2026

Closes #135

Added dockerfile and workflow to build Docker image with baked-in profiles when releasing new version of Cratey-Validator.

…files when releasing new version of Cratey-Validator
Copy link
Collaborator

@douglowe douglowe left a comment

Choose a reason for hiding this comment

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

I've added a couple of comments below. I'd like us to make this build specific to five-safes rocrates, so the naming should reflect this. Also we need to make sure to copy across a tagged release of our five-safes profile, so that we can in future say which exact version of the profile this will test against.


COPY cratey.py LICENSE /app/
COPY app /app/app
COPY tests/data/rocrate_validator_profiles /app/profiles
Copy link
Collaborator

Choose a reason for hiding this comment

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

I didn't copy over all the rocrate validator profiles into the test directory. Also we shouldn't rely on these being up-to-date.

What we need here is to pull a couple of our local rocrate-validator code (use a tagged release, download the zip file, e.g.: https://github.com/eScienceLab/rocrate-validator/releases/tag/five-safes-0.7.3-beta), copy across the five-safes profiles directory (only - don't copy any other profiles), then delete the remaining zip file and code.


env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-profiles
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we have a more precise image name here? E.g., fivesafes-profile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh sorry, I forgot to enter an actual name...!

uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.profiles
Copy link
Collaborator

Choose a reason for hiding this comment

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

This file could be named more clearerly - e.g. Dockerfile.fivesafe-profiles

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.

Add release-triggered GitHub Actions workflow to build Docker image with baked-in profiles

2 participants