Skip to content

Commit

Permalink
Update images in Dockerfile to fix CVEs (#624)
Browse files Browse the repository at this point in the history
* Update images in Dockerfile to fix CVEs

Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>

---------

Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik authored Nov 17, 2023
1 parent 43b34cf commit c0d76ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.20.5-buster as go
FROM golang:1.20.11 as go
ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV GOBIN=/bin
RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2
RUN go install github.com/grpc-ecosystem/grpc-health-probe@v0.4.1
RUN go install github.com/grpc-ecosystem/grpc-health-probe@v0.4.22
ADD https://github.com/spiffe/spire/releases/download/v1.2.2/spire-1.2.2-linux-x86_64-glibc.tar.gz .
RUN tar xzvf spire-1.2.2-linux-x86_64-glibc.tar.gz -C /bin --strip=2 spire-1.2.2/bin/spire-server spire-1.2.2/bin/spire-agent

Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (t *RegistryTestSuite) SetupSuite() {
require.NoError(t.T(), err)
t.spireErrCh = spire.Start(
spire.WithContext(t.ctx),
spire.WithEntry("spiffe://example.org/registry-memory", "unix:path:/bin/registry-memory"),
spire.WithEntry("spiffe://example.org/registry-memory", "unix:path:/usr/bin/registry-memory"),
spire.WithEntry(fmt.Sprintf("spiffe://example.org/%s", filepath.Base(executable)),
fmt.Sprintf("unix:path:%s", executable),
),
Expand Down

0 comments on commit c0d76ae

Please sign in to comment.