Open fliiiix opened 1 year ago
Howdy 🖐 fliiiix ! Thank you for your interest in this project. We value your feedback and will respond soon.
If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION
guidelines.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale
.
/remove-lifecycle stale
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale
.
/remove-lifecycle stale
Hi
it would be very useful to have an Alpine based image, for GitLab CI pipelines for example (where a shell is required).
This Dockerfile :
FROM vmware/govc:v0.37.0 as govc
FROM alpine:3.19.1
COPY --from=govc /govc /bin/govc
RUN apk update && \
apk upgrade
CMD ["/bin/sh"]
Results in a 25 Mb image, compared to the 15 Mb of vmware/govc
image.
Could it be an option to keep the current image based on scratch, and add a govc-dev
image based on Alpine ?
Thanks in advance.
I mean i always thought of it as an additional image and the thing im doing
https://github.com/fliiiix/govc-alpine/tree/main results in a https://hub.docker.com/layers/l33tname/govc-alpine/v0.37.0/images/sha256-4fa63e890f83c143dba05beaaaa641c7ecfe1106dd3a444a4a386c17678e4d68?context=repo ~17mb compressed image according to docker hub
but i would love that this would be just part of the official options
RUN apk update && \ apk upgrade
This may be relevant:
Specifically:
The
--no-cache
option allows to not cache the index locally, which is useful for keeping containers small.Literally it equals
apk update
in the beginning andrm -rf /var/cache/apk/*
in the end.
Is your feature request related to a problem? Please describe. I can not use the official docker image to run my gitlab ci job.
I have a gitlab job which looks like this:
This wont work with the minimal official docker image, because
export
and things likeecho
are not supported.Describe the solution you'd like A image based on a minimal linux distro for example alpine would be great.
Describe alternatives you've considered The current way of providing environment is
-e
but I guess it is obvious from the example here that it does not scale.Something like this: