Hi Avinash,The Docker container of the community version is dragging the vulnerabilities from its base image, which is Debian, and this is out of our control. We are aware of this situation, and although these vulnerabilities do not affect the krakend binary, the next version won't use Debian anymore and all the reported vulnerabilities will go away. It's very annonying.In the meantime, if you don't want to wait a couple of months for the release, you can create your own Dockerfile extending from Alpine (it's tested and works well). You only need to clone the krakend-ce project and replace the Dockerfile with the following content:
FROM golang:1.16.4-alpine3.13 as builder
RUN apk add make gcc musl-dev
COPY . /app
WORKDIR /app
RUN make build
FROM alpine:3.13
LABEL maintainer="dortiz@devops.faith"
Notice that this new Dockerfile already builds KrakenD, so you just need to do a "docker build", no other commands are required.
El miércoles, 24 de noviembre de 2021 a las 12:35:22 UTC+1, Albert Lombarte escribió:
Hi Avinash,The Docker container of the community version is dragging the vulnerabilities from its base image, which is Debian, and this is out of our control. We are aware of this situation, and although these vulnerabilities do not affect the krakend binary, the next version won't use Debian anymore and all the reported vulnerabilities will go away. It's very annonying.In the meantime, if you don't want to wait a couple of months for the release, you can create your own Dockerfile extending from Alpine (it's tested and works well). You only need to clone the krakend-ce project and replace the Dockerfile with the following content:
FROM golang:1.16.4-alpine3.13 as builder
RUN apk add make gcc musl-dev
COPY . /app
WORKDIR /app
RUN make build
FROM alpine:3.13
LABEL maintainer="dor...@devops.faith"
--
You received this message because you are subscribed to a topic in the Google Groups "KrakenD Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/krakend.io/d/topic/community/tMWHO64FuiI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to community+...@krakend.io.
To view this discussion on the web visit https://groups.google.com/a/krakend.io/d/msgid/community/4cc26359-d711-4d63-9114-bebc47018649n%40krakend.io.
hi,Just to inform you, i am using versionipacs@telkom krakend-ce]$ docker --version
Docker version 1.13.1, build 7d71120/1.13.1
On Wed, Nov 24, 2021 at 5:54 PM Avinash Gupta <avsh...@gmail.com> wrote:
you mean the docker file from krakend-ce repo or the one which is share by albert.well build is failing while running docker file content shared by albert.[ipacs@telkom krakend-ce]$ docker build -t krakend:test1 .
Sending build context to Docker daemon 1.579 MB
Step 1/14 : FROM golang:1.16.4-alpine3.13 as builder
Error parsing reference: "golang:1.16.4-alpine3.13 as builder" is not a valid repository/tag: invalid reference format
On Wed, Nov 24, 2021 at 5:10 PM Daniel Ortiz <dor...@krakend.io> wrote:
Notice that this new Dockerfile already builds KrakenD, so you just need to do a "docker build", no other commands are required.
El miércoles, 24 de noviembre de 2021 a las 12:35:22 UTC+1, Albert Lombarte escribió:
Hi Avinash,The Docker container of the community version is dragging the vulnerabilities from its base image, which is Debian, and this is out of our control. We are aware of this situation, and although these vulnerabilities do not affect the krakend binary, the next version won't use Debian anymore and all the reported vulnerabilities will go away. It's very annonying.In the meantime, if you don't want to wait a couple of months for the release, you can create your own Dockerfile extending from Alpine (it's tested and works well). You only need to clone the krakend-ce project and replace the Dockerfile with the following content:
FROM golang:1.16.4-alpine3.13 as builder
RUN apk add make gcc musl-dev
COPY . /app
WORKDIR /app
RUN make build
FROM alpine:3.13
LABEL maintainer="dortiz@devops.faith"
To unsubscribe from this group and all its topics, send an email to community+unsubscribe@krakend.io.