-
Notifications
You must be signed in to change notification settings - Fork 20
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
Different output when using buildx vx. build #22
Comments
Thanks for sharing this observation. It would be useful for community to know that I'm not familiar with the |
Looks like this is due to moby/buildkit#816 I've worked around this by using the Dockerfile approach here: https://github.com/StackStorm/st2packs-dockerfiles#building-the-st2packs-image However, instead of the last line - ARG PACKS="file:///tmp/stackstorm-st2"
FROM stackstorm/st2packs:builder AS builder
# considering you have your "local" pack under the `stackstorm-st2` dir relative to Dockerfile
# Here we copy local "stackstorm-st2" dir into Docker's "/tmp/stackstorm-st2"
COPY stackstorm-st2 /tmp/stackstorm-st2/
# Check it
RUN ls -la /tmp/stackstorm-st2
RUN /opt/stackstorm/st2/bin/st2-pack-install ${PACKS}
FROM alpine:3.13
RUN apk add --no-cache rsync
VOLUME ["/opt/stackstorm/packs", "/opt/stackstorm/virtualenvs"]
# Copy packs and virtualenvs
COPY --from=builder /opt/stackstorm/packs /opt/stackstorm/packs
COPY --from=builder /opt/stackstorm/virtualenvs /opt/stackstorm/virtualenvs The presence of the Given the |
This command works fine and generates an image in ~1.3 Gb
docker build --build-arg PACKS="aws csv email excel git github gpg hubot vault xml" -t st2packs:1.0.5 st2packs-image
I am using Github Action and it uses docker buildx build command.
docker buildx build --build-arg PACKS="aws csv email excel git github gpg hubot vault xml" --tag st2packs:1.0.4 st2packs-image
This only produces 4Mb docker image with no packs copied.
The text was updated successfully, but these errors were encountered: