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

Update dockerhub image for Apptainer 1.3 #18

Open
dmilkie opened this issue Oct 30, 2024 · 3 comments
Open

Update dockerhub image for Apptainer 1.3 #18

dmilkie opened this issue Oct 30, 2024 · 3 comments

Comments

@dmilkie
Copy link

dmilkie commented Oct 30, 2024

I'm trying to use Apptainer 1.3 so I can use build arguments in my Apptainer build.

However, the latest docker image released on DockerHub is 1.2.

I tried building docker image with the command here:
https://github.com/kaczmarj/apptainer-in-docker?tab=readme-ov-file#build-image

but I'm getting this error:

--------------------
  20 |     WORKDIR $GOPATH/src/github.com/apptainer
  21 | >>> RUN git clone https://github.com/apptainer/apptainer.git \
  22 | >>>     && cd apptainer \
  23 | >>>     && git checkout "$APPTAINER_COMMITISH" \
  24 | >>>     && ./mconfig $MCONFIG_OPTIONS -p /usr/local/apptainer \
  25 | >>>     && cd builddir \
  26 | >>>     && make \
  27 | >>>     && make install
  28 |
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone https://github.com/apptainer/apptainer.git     && cd apptainer     && git checkout \"$APPTAINER_COMMITISH\"     && ./mconfig $MCONFIG_OPTIONS -p /usr/local/apptainer     && cd builddir     && make     && make install" did not complete successfully: exit code: 1
@kaczmarj
Copy link
Owner

can you try updating the Dockerfile base image to

FROM golang:1.23.2-alpine3.20

@dmilkie
Copy link
Author

dmilkie commented Oct 30, 2024

Yes. that works. I changed to alphine3.20 in line 29 as well

@kaczmarj
Copy link
Owner

fantastic. would you like to submit a pull request with these changes?

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

2 participants