Install Go in the beacon_node docker image before compiling the LibP2P deamon

This commit is contained in:
Zahary Karadjov 2019-06-19 21:28:54 +03:00
parent 03e6aadeb1
commit 8241320171
3 changed files with 13 additions and 4 deletions

View File

@ -1,13 +1,22 @@
FROM statusteam/nim-base AS build FROM statusteam/nim-base AS build
RUN apt update \ RUN apt update \
&& apt install -y build-essential make \ && apt install -y build-essential make wget \
&& apt clean \ && apt clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN export GO_TAR_GZ=go1.12.6.linux-amd64.tar.gz \
&& cd /tmp/ \
&& wget https://dl.google.com/go/$GO_TAR_GZ \
&& tar -xvf $GO_TAR_GZ \
&& mv go /usr/local \
&& rm $GO_TAR_GZ
ARG GIT_REVISION ARG GIT_REVISION
RUN git clone https://github.com/status-im/nimbus.git \ RUN export GOROOT=/usr/local/go \
&& export PATH=$GOROOT/bin:$PATH \
&& git clone https://github.com/status-im/nimbus.git \
&& cd nimbus \ && cd nimbus \
&& git reset --hard ${GIT_REVISION} \ && git reset --hard ${GIT_REVISION} \
&& make update deps vendor/go/bin/p2pd nat-libs \ && make update deps vendor/go/bin/p2pd nat-libs \

@ -1 +1 @@
Subproject commit 33a2dc3fc2c195f314f577b9a4d2df383793f5b2 Subproject commit 85f3480f90d46c3352329eb3acb135e36c5f4fbf

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 07a273266a9f94c9b9b01853e3fc0d30257f2b74 Subproject commit 8ef04ea0f224290c8cce278f1160ce8d5de09e98