boxkit/Containerfile

36 lines
1.3 KiB
Text
Raw Permalink Normal View History

2024-05-02 14:00:29 +00:00
FROM quay.io/toolbx-images/alpine-toolbox:edge
LABEL com.github.containers.toolbox="true" \
usage="This image is meant to be used with the toolbox or distrobox command" \
summary="A cloud-native terminal experience" \
2024-08-22 19:15:56 +00:00
maintainer="me@babariviere.com"
2024-05-02 14:00:29 +00:00
2024-05-02 16:26:13 +00:00
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
2024-10-15 20:37:56 +00:00
COPY packages /
2024-05-02 14:00:29 +00:00
RUN apk update && \
apk upgrade && \
2024-10-15 20:37:56 +00:00
grep -v '^#' /packages | xargs apk add
RUN rm /packages
2024-05-02 14:00:29 +00:00
2024-05-02 14:58:12 +00:00
COPY go-packages /
RUN grep -v '^#' /go-packages | xargs -n1 go install
2024-05-02 14:58:12 +00:00
RUN rm /go-packages
RUN mv /root/go/bin/* /usr/local/bin/
2024-10-15 20:37:56 +00:00
COPY krew-plugins /
RUN grep -v '^#' /krew-plugins | xargs -n1 kubectl krew install
RUN rm /krew-plugins
2024-10-15 20:47:47 +00:00
RUN for bin in /root/.krew/bin/*; do \
mv $(readlink $bin) /usr/local/bin/$(basename $bin); \
done
2024-10-15 20:48:52 +00:00
RUN rm -rf /root/.krew
2024-10-15 20:37:56 +00:00
2024-05-02 14:00:29 +00:00
RUN ln -fs /bin/sh /usr/bin/sh && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
2024-05-02 14:58:12 +00:00
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
2024-05-02 14:00:29 +00:00
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \
2024-10-13 16:15:00 +00:00
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/op