This repository was archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
This repository was archived by the owner on Dec 10, 2021. It is now read-only.
Dockerfile image not being built #147
Copy link
Copy link
Closed
Description
$ make docker-build
>> show env
GOOS = darwin
GOARCH = amd64
GO111MODULE = on
CGO_ENABLED = 0
CGO_CFLAGS =
CGO_LDFLAGS =
BUILD_TAGS = kagome
VERSION = latest
BIN_EXT =
DOCKER_REPOSITORY = mosuka
LDFLAGS = -ldflags -X "github.com/mosuka/blast/version.Version=latest"
PACKAGES = github.com/mosuka/blast github.com/mosuka/blast/builtin github.com/mosuka/blast/client github.com/mosuka/blast/cmd github.com/mosuka/blast/errors github.com/mosuka/blast/log github.com/mosuka/blast/mapping github.com/mosuka/blast/marshaler github.com/mosuka/blast/metric github.com/mosuka/blast/protobuf github.com/mosuka/blast/registry github.com/mosuka/blast/server github.com/mosuka/blast/storage github.com/mosuka/blast/util github.com/mosuka/blast/version
PROTOBUFS = ./protobuf
...
update-alternatives: error: alternative path /usr/bin/gcc-6 doesn't exist
The command '/bin/sh -c echo "deb http://ftp.us.debian.org/debian/ jessie main contrib non-free" >> /etc/apt/sources.list && echo "deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free" >> /etc/apt/sources.list && apt-get update && apt-get upgrade -y && apt-get install -y git golang libicu-dev libstemmer-dev gcc-4.8 g++-4.8 build-essential && apt-get clean && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 80 && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 80 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90 && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 && go get -u -v github.com/blevesearch/cld2 && cd ${GOPATH}/src/github.com/blevesearch/cld2 && git clone https://github.com/CLD2Owners/cld2.git && cd cld2/internal && ./compile_libs.sh && cp *.so /usr/local/lib && cd ${GOPATH}/src/github.com/mosuka/blast && make GOOS=linux GOARCH=amd64 CGO_ENABLED=1 BUILD_TAGS="kagome icu libstemmer cld2" VERSION="${VERSION}" build' returned a non-zero code: 2
make: *** [docker-build] Error 2
Works with this patch:
diff --git Dockerfile Dockerfile
index ee718e5..08f4a1d 100644
--- Dockerfile
+++ Dockerfile
@@ -12,15 +12,15 @@ RUN echo "deb http://ftp.us.debian.org/debian/ jessie main contrib non-free" >>
apt-get upgrade -y && \
apt-get install -y \
git \
- golang \
+ # golang \
libicu-dev \
libstemmer-dev \
gcc-4.8 \
g++-4.8 \
build-essential && \
apt-get clean && \
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 80 && \
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 80 && \
+ #update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 80 && \
+ #update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 80 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 && \
go get -u -v github.com/blevesearch/cld2 && \
Note. We shouldn't install golang if we are already in the golang image.
Metadata
Metadata
Assignees
Labels
No labels