Skip to content

Commit

Permalink
chore: add ca-certificates to yap oci image (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
M0Rf30 authored Oct 17, 2023
1 parent 9b3ecf2 commit aff9c00
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 18 deletions.
5 changes: 4 additions & 1 deletion docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ RUN \
FROM docker.io/alpine:latest
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apk add --no-cache bash-completion sudo; \
apk add --no-cache \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;

Expand Down
5 changes: 4 additions & 1 deletion docker/amazon-1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ RUN \
FROM docker.io/amazonlinux:1
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
yum -y install bash-completion sudo; \
yum -y install \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
yum clean all
Expand Down
5 changes: 4 additions & 1 deletion docker/amazon-2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ RUN \
FROM docker.io/amazonlinux:2
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
yum -y install bash-completion sudo; \
yum -y install \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
yum clean all
Expand Down
9 changes: 5 additions & 4 deletions docker/arch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ RUN \
COPY . /project
WORKDIR /project
RUN \
go build -ldflags "-w -s" -trimpath -mod=readonly -modcacherw -o /usr/bin/; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
rm -rf /project
go build -ldflags "-w -s" -trimpath -mod=readonly -modcacherw -o /usr/bin/

FROM docker.io/archlinux:base
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
pacman -Syu --noconfirm bash-completion sudo; \
pacman -Syu --noconfirm \
bash-completion \
ca-certificates \
sudo; \
rm -rf /var/cache/pacman/* \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;
Expand Down
5 changes: 4 additions & 1 deletion docker/debian-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends bash-completion sudo; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
Expand Down
5 changes: 4 additions & 1 deletion docker/debian-jessie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends bash-completion sudo; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
Expand Down
5 changes: 4 additions & 1 deletion docker/debian-stretch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends bash-completion sudo; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
Expand Down
10 changes: 7 additions & 3 deletions docker/opensuse-tubleweed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@ LABEL org.opencontainers.image.title="yap"
LABEL org.opencontainers.image.description="Package software with ease 📦"
LABEL org.opencontainers.image.vendor="M0Rf30"

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
zypper -n install -y bash-completion go sudo
zypper -n install -y go

COPY . /project
WORKDIR /project
RUN \
go build -ldflags "-w -s" -trimpath -mod=readonly -modcacherw -o /usr/bin/; \
go build -ldflags "-w -s" -trimpath -mod=readonly -modcacherw -o /usr/bin/

FROM docker.io/opensuse/tumbleweed:latest
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
zypper -n install -y bash-completion sudo; \
zypper -n install -y \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;

Expand Down
5 changes: 4 additions & 1 deletion docker/rocky-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ RUN \
FROM docker.io/rockylinux/rockylinux:8
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
dnf -y install bash-completion sudo; \
dnf -y install \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
dnf clean all
Expand Down
5 changes: 4 additions & 1 deletion docker/rocky-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ RUN \
FROM docker.io/rockylinux/rockylinux:9
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
dnf -y install bash-completion sudo; \
dnf -y install \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
dnf clean all
Expand Down
5 changes: 4 additions & 1 deletion docker/ubuntu-bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends bash-completion sudo; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
Expand Down
5 changes: 4 additions & 1 deletion docker/ubuntu-focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends bash-completion sudo; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
Expand Down
5 changes: 4 additions & 1 deletion docker/ubuntu-jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends bash-completion sudo; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
Expand Down

0 comments on commit aff9c00

Please sign in to comment.