Skip to content

make docker fails - Step 16 #33

@doronrk

Description

@doronrk

failure point exec: "gcc": executable file not found in $PATH

full trace

Step 16 : RUN echo " ... installing api-gateway-config-supervisor  ... "     && echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories     && apk update     && apk add make git go     && mkdir -p /tmp/api-gateway     && curl -k -L https://github.com/adobe-apiplatform/api-gateway-config-supervisor/archive/${CONFIG_SUPERVISOR_VERSION}.tar.gz -o /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && cd /tmp/api-gateway     && tar -xf /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && mkdir -p /tmp/go     && mv /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}/* /tmp/go     && cd /tmp/go     && make setup     && mkdir -p /tmp/go/Godeps/_workspace     && ln -s /tmp/go/vendor /tmp/go/Godeps/_workspace/src     && mkdir -p /tmp/go-src/src/github.com/adobe-apiplatform     && ln -s /tmp/go /tmp/go-src/src/github.com/adobe-apiplatform/api-gateway-config-supervisor     && GOPATH=/tmp/go/vendor:/tmp/go-src CGO_ENABLED=0 GOOS=linux /usr/lib/go/bin/godep  go build -ldflags "-s" -a -installsuffix cgo -o api-gateway-config-supervisor ./     && mv /tmp/go/api-gateway-config-supervisor /usr/local/sbin/     && echo "installing rclone sync ... "     && go get github.com/ncw/rclone     && mv /usr/lib/go/bin/rclone /usr/local/sbin/     && echo " cleaning up ... "     && rm -rf /usr/lib/go/bin/src     && rm -rf /tmp/go     && rm -rf /tmp/go-src     && rm -rf /usr/lib/go/bin/pkg/     && rm -rf /usr/lib/go/bin/godep     && apk del make git go     && rm -rf /var/cache/apk/*
 ---> Running in 5f1b4896b50c
 ... installing api-gateway-config-supervisor  ...
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.4.3-2-g595ce63 [http://dl-cdn.alpinelinux.org/alpine/v3.4/main]
v3.4.2-11-g9b41a63 [http://dl-cdn.alpinelinux.org/alpine/v3.4/community]
v3.4.0-2052-g56f675a [http://dl-4.alpinelinux.org/alpine/edge/community]
OK: 6867 distinct packages available
(1/2) Installing git (2.8.3-r0)
(2/2) Installing go (1.7_rc4-r0)
Executing busybox-1.24.2-r9.trigger
OK: 312 MiB in 58 packages
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154    0   154    0     0    371      0 --:--:-- --:--:-- --:--:--   372
100 4Step 16 : RUN echo " ... installing api-gateway-config-supervisor  ... "     && echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories     && apk update     && apk add make git go     && mkdir -p /tmp/api-gateway     && curl -k -L https://github.com/adobe-apiplatform/api-gateway-config-supervisor/archive/${CONFIG_SUPERVISOR_VERSION}.tar.gz -o /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && cd /tmp/api-gateway     && tar -xf /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && mkdir -p /tmp/go     && mv /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}/* /tmp/go     && cd /tmp/go     && make setup     && mkdir -p /tmp/go/Godeps/_workspace     && ln -s /tmp/go/vendor /tmp/go/Godeps/_workspace/src     && mkdir -p /tmp/go-src/src/github.com/adobe-apiplatform     && ln -s /tmp/go /tmp/go-src/src/github.com/adobe-apiplatform/api-gateway-config-supervisor     && GOPATH=/tmp/go/vendor:/tmp/go-src CGO_ENABLED=0 GOOS=linux /usr/lib/go/bin/godep  go build -ldflags "-s" -a -installsuffix cgo -o api-gateway-config-supervisor ./     && mv /tmp/go/api-gateway-config-supervisor /usr/local/sbin/     && echo "installing rclone sync ... "     && go get github.com/ncw/rclone     && mv /usr/lib/go/bin/rclone /usr/local/sbin/     && echo " cleaning up ... "     && rm -rf /usr/lib/go/bin/src     && rm -rf /tmp/go     && rm -rf /tmp/go-src     && rm -rf /usr/lib/go/bin/pkg/     && rm -rf /usr/lib/go/bin/godep     && apk del make git go     && rm -rf /var/cache/apk/*
 ---> Running in 5f1b4896b50c
 ... installing api-gateway-config-supervisor  ...
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.4.3-2-g595ce63 [http://dl-cdn.alpinelinux.org/alpine/v3.4/main]
v3.4.2-11-g9b41a63 [http://dl-cdn.alpinelinux.org/alpine/v3.4/community]
v3.4.0-2052-g56f675a [http://dl-4.alpinelinux.org/alpine/edge/community]
OK: 6867 distinct packages available
(1/2) Installing git (2.8.3-r0)
(2/2) Installing go (1.7_rc4-r0)
Executing busybox-1.24.2-r9.trigger
OK: 312 MiB in 58 packages
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154    0   154    0     0    371      0 --:--:-- --:--:-- --:--:--   372
100 49861    0 49861    0     0  56512      0 --:--:-- --:--:-- --:--:--  347k
go get github.com/tools/godep
# runtime/cgo
exec: "gcc": executable file not found in $PATH
make: *** [setup] Error 2
Makefile:6: recipe for target 'setup' failed
The command '/bin/sh -c echo " ... installing api-gateway-config-supervisor  ... "     && echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories     && apk update     && apk add make git go     && mkdir -p /tmp/api-gateway     && curl -k -L https://github.com/adobe-apiplatform/api-gateway-config-supervisor/archive/${CONFIG_SUPERVISOR_VERSION}.tar.gz -o /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && cd /tmp/api-gateway     && tar -xf /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && mkdir -p /tmp/go     && mv /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}/* /tmp/go     && cd /tmp/go     && make setup     && mkdir -p /tmp/go/Godeps/_workspace     && ln -s /tmp/go/vendor /tmp/go/Godeps/_workspace/src     && mkdir -p /tmp/go-src/src/github.com/adobe-apiplatform     && ln -s /tmp/go /tmp/go-src/src/github.com/adobe-apiplatform/api-gateway-config-supervisor     && GOPATH=/tmp/go/vendor:/tmp/go-src CGO_ENABLED=0 GOOS=linux /usr/lib/go/bin/godep  go build -ldflags "-s" -a -installsuffix cgo -o api-gateway-config-supervisor ./     && mv /tmp/go/api-gateway-config-supervisor /usr/local/sbin/     && echo "installing rclone sync ... "     && go get github.com/ncw/rclone     && mv /usr/lib/go/bin/rclone /usr/local/sbin/     && echo " cleaning up ... "     && rm -rf /usr/lib/go/bin/src     && rm -rf /tmp/go     && rm -rf /tmp/go-src     && rm -rf /usr/lib/go/bin/pkg/     && rm -rf /usr/lib/go/bin/godep     && apk del make git go     && rm -rf /var/cache/apk/*' returned a non-zero code: 2
make: *** [docker] Error 2
```9861    0 49861    0     0  56512      0 --:--:-- --:--:-- --:--:--  347k
go get github.com/tools/godep
# runtime/cgo
exec: "gcc": executable file not found in $PATH
make: *** [setup] Error 2
Makefile:6: recipe for target 'setup' failed
The command '/bin/sh -c echo " ... installing api-gateway-config-supervisor  ... "     && echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories     && apk update     && apk add make git go     && mkdir -p /tmp/api-gateway     && curl -k -L https://github.com/adobe-apiplatform/api-gateway-config-supervisor/archive/${CONFIG_SUPERVISOR_VERSION}.tar.gz -o /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && cd /tmp/api-gateway     && tar -xf /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}.tar.gz     && mkdir -p /tmp/go     && mv /tmp/api-gateway/api-gateway-config-supervisor-${CONFIG_SUPERVISOR_VERSION}/* /tmp/go     && cd /tmp/go     && make setup     && mkdir -p /tmp/go/Godeps/_workspace     && ln -s /tmp/go/vendor /tmp/go/Godeps/_workspace/src     && mkdir -p /tmp/go-src/src/github.com/adobe-apiplatform     && ln -s /tmp/go /tmp/go-src/src/github.com/adobe-apiplatform/api-gateway-config-supervisor     && GOPATH=/tmp/go/vendor:/tmp/go-src CGO_ENABLED=0 GOOS=linux /usr/lib/go/bin/godep  go build -ldflags "-s" -a -installsuffix cgo -o api-gateway-config-supervisor ./     && mv /tmp/go/api-gateway-config-supervisor /usr/local/sbin/     && echo "installing rclone sync ... "     && go get github.com/ncw/rclone     && mv /usr/lib/go/bin/rclone /usr/local/sbin/     && echo " cleaning up ... "     && rm -rf /usr/lib/go/bin/src     && rm -rf /tmp/go     && rm -rf /tmp/go-src     && rm -rf /usr/lib/go/bin/pkg/     && rm -rf /usr/lib/go/bin/godep     && apk del make git go     && rm -rf /var/cache/apk/*' returned a non-zero code: 2
make: *** [docker] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions