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

Bootstrap images from Spack #7

Open
haampie opened this issue Jan 19, 2023 · 4 comments
Open

Bootstrap images from Spack #7

haampie opened this issue Jan 19, 2023 · 4 comments

Comments

@haampie
Copy link
Member

haampie commented Jan 19, 2023

In https://github.com/haampie/spack-docker-bootstrap/ I've created a simple example where Spack's own dependencies are installed with Spack.

That way we can get better performance, and we have a slightly cleaner environment (not too much stuff in /usr that gets picked up during the build).

@scottwittenburg
Copy link
Collaborator

Looking at the short commit history, this repo was set up by @alalazo (IIRC based on some Dockerfiles at UO/OACISS repo). Also based on that commit history, I'm not sure you could say anyone is "managing" it 😜

Looks like images are built and pushed as part of the workflow here.

@scottwittenburg
Copy link
Collaborator

Your idea sounds reasonable to me, or more likely I just trust you. So what you could do is push some of those images to some container registry and make a spack PR to make some stacks use them. What do you think?

@alalazo
Copy link
Member

alalazo commented Jan 20, 2023

If I recall correctly, I used this repo as a proof of concept to show how we could generate images automatically in CI for the pipelines. E4s related images are still being generated elsewhere, I think here: https://github.com/UO-OACISS/e4s

@alalazo
Copy link
Member

alalazo commented Jan 20, 2023

How are images pushed?

- name: Build & Deploy ${{ matrix.dockerfile[1] }}
uses: docker/build-push-action@v2
with:
file: Dockerfiles/${{matrix.dockerfile[1]}}
platforms: ${{ matrix.dockerfile[2] }}
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/spack/${{ env.container }}
ghcr.io/spack/${{ env.versioned }}

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

No branches or pull requests

3 participants