no apk in ubunutu image - apt-get

This commit is contained in:
Felix Kunde 2021-01-06 18:56:39 +01:00
parent 885533e535
commit 8048f6e081
6 changed files with 16 additions and 9 deletions

View File

@ -2,7 +2,13 @@ FROM ubuntu:20.04
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>" LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
# We need root certificates to deal with teams api over https # We need root certificates to deal with teams api over https
RUN apk --no-cache add ca-certificates go git musl-dev RUN apt-get update \
&& apt-get install --no-install-recommends -y \
curl \
ca-certificates \
go \
git \
musl-dev
COPY build/* / COPY build/* /

View File

@ -2,8 +2,10 @@ FROM ubuntu:20.04
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>" LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
# We need root certificates to deal with teams api over https # We need root certificates to deal with teams api over https
RUN apk --no-cache add curl RUN apt-get update \
RUN apk --no-cache add ca-certificates && apt-get install --no-install-recommends -y \
curl \
ca-certificates
COPY build/* / COPY build/* /

View File

@ -175,7 +175,7 @@ go get -u github.com/derekparker/delve/cmd/dlv
* Add following dependencies to the `Dockerfile` * Add following dependencies to the `Dockerfile`
``` ```
RUN apk --no-cache add go git musl-dev RUN apt-get update && apt-get install -y go git musl-dev
RUN go get github.com/derekparker/delve/cmd/dlv RUN go get github.com/derekparker/delve/cmd/dlv
``` ```

View File

@ -4,7 +4,7 @@ LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
EXPOSE 8081 EXPOSE 8081
RUN \ RUN \
apk add --no-cache \ apt-get add --no-cache \
alpine-sdk \ alpine-sdk \
autoconf \ autoconf \
automake \ automake \
@ -25,8 +25,7 @@ RUN \
&& \ && \
rm -rf \ rm -rf \
/root/.cache \ /root/.cache \
/tmp/* \ /tmp/*
/var/cache/apk/*
COPY requirements.txt / COPY requirements.txt /
COPY start_server.sh / COPY start_server.sh /

View File

@ -67,7 +67,7 @@ kubectl exec \
)" \ )" \
-- \ -- \
sh -c ' sh -c '
apk add --no-cache socat; apt-get add --no-cache socat;
pkill socat; pkill socat;
socat -v TCP-LISTEN:1234,reuseaddr,fork,su=nobody TCP:169.254.169.254:80 socat -v TCP-LISTEN:1234,reuseaddr,fork,su=nobody TCP:169.254.169.254:80
' \ ' \