Skip to content

Conversation

JHopeCollins
Copy link
Member

@JHopeCollins JHopeCollins commented Jun 24, 2025

CLOSED: Replaced by #4533

There seems to be some appetite for people building their own Firedrake Docker containers. The current Dockerfiles are very static in what they can do - apart from allowing different ARCH options. This PR makes the Dockerfile slightly more flexible by allowing passing a particular branch to install from:

  • If installing from release then the behaviour is unchanged - Firedrake and PETSc are both built from the corresponding release branches.
  • If installing from any other branch, then firedrake-configure is downloaded from the specified branch, PETSc is installed from the latest main branch, and Firedrake is installed from the latest version of the specified branch.

TODO:
Some downstream repositories want to test against master rather than release, or test against both master and release. However, we no longer build a Docker container on pushes to master. Being able to specify a non-release branch to the Dockerfile means we can use the same Dockerfile to build containers for both release and master.

@dham dham marked this pull request as draft June 25, 2025 15:57
Comment on lines +16 to +24

docker:
name: Build dev Docker containers
uses: ./.github/workflows/docker.yml
with:
tag: dev-main
branch: main
build_dev: true
secrets: inherit
Copy link
Member Author

Choose a reason for hiding this comment

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

REMOVE BEFORE MERGE

Suggested change
docker:
name: Build dev Docker containers
uses: ./.github/workflows/docker.yml
with:
tag: dev-main
branch: main
build_dev: true
secrets: inherit

Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

I need to review the workflow file in more detail but looks pretty good.

Shouldn't this be going into release and not main? Otherwise we won't be building the dev-release containers.

@JHopeCollins JHopeCollins changed the base branch from main to release September 2, 2025 09:06
@JHopeCollins JHopeCollins changed the base branch from release to main September 2, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants