Skip to content

Commit

Permalink
Fix debug image builds by installing build-base to enable GCC (#3400)
Browse files Browse the repository at this point in the history
* Go back to golang:1.17-alpine

Signed-off-by: Yuri Shkuro <[email protected]>

* Add build-base to Docker image

Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Nov 19, 2021
1 parent 639333a commit 4d967d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
VERSION := 1.0.0
ROOT_IMAGE ?= alpine:3.14
CERT_IMAGE := $(ROOT_IMAGE)
# TODO: Change back to golang:1.17-alpine once https://github.com/docker-library/golang/issues/383 is resolved.
GOLANG_IMAGE := golang:1.17-alpine3.14
GOLANG_IMAGE := golang:1.17-alpine

BASE_IMAGE := localhost:5000/baseimg_alpine:latest
DEBUG_IMAGE := localhost:5000/debugimg_alpine:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/debug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG golang_image
FROM $golang_image AS build
ARG TARGETARCH
ENV GOPATH /go
RUN apk add --update --no-cache ca-certificates make git
RUN apk add --update --no-cache ca-certificates make git build-base
#Once go-delve adds support for s390x (see PR #2948), remove this entire conditional.
#Once go-delve adds support for ppc64le (see PR go-delve/delve#1564), remove this entire conditional.
RUN if [[ "$TARGETARCH" == "s390x" || "$TARGETARCH" == "ppc64le" ]] ; then \
Expand Down
2 changes: 0 additions & 2 deletions scripts/build-all-in-one-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ fi

make build-ui

set +e

run_integration_test() {
CID=$(docker run -d -p 16686:16686 -p 5778:5778 $1:latest)
make all-in-one-integration-test
Expand Down

0 comments on commit 4d967d0

Please sign in to comment.