Merge pull request #23 from MaxMustermann2/error-100-fix

build: break error code 100 cause into lines
pull/26/head
Adam Androulidakis 1 year ago committed by GitHub
commit da775eeb4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      localnet/Dockerfile

@ -4,8 +4,13 @@ WORKDIR $GOPATH/src/github.com/harmony-one
SHELL ["/bin/bash", "-c"]
RUN apt update > /dev/null 2>1 && apt upgrade -y > /dev/null 2>1 && apt update -y > /dev/null 2>1 && apt install unzip \
libgmp-dev libssl-dev curl git jq make gcc g++ bash sudo python3 python3-pip -y > /dev/null 2>1
# These are split into multiple lines to allow debugging the error message that I cannot reproduce locally
# The command `xxx` returned a non-zero code: 100
RUN apt clean
RUN apt update
RUN apt upgrade -y
RUN apt update -y
RUN apt install -y unzip libgmp-dev libssl-dev curl git jq make gcc g++ bash sudo python3 python3-pip
RUN git clone https://github.com/harmony-one/harmony.git > /dev/null 2>1 \
&& git clone https://github.com/harmony-one/bls.git > /dev/null 2>1 \
@ -38,7 +43,8 @@ COPY rpc_tests rpc_tests
COPY configs configs
COPY requirements.txt requirements.txt
RUN python3 -m pip install -r requirements.txt > /dev/null 2>1 && rm requirements.txt
# Since we are running as root in Docker, `--break-system-packages` is required
RUN python3 -m pip install -r requirements.txt --break-system-packages > /dev/null 2>1 && rm requirements.txt
RUN chmod +x $GOPATH/src/github.com/harmony-one/harmony-test/localnet/scripts/run.sh
WORKDIR $GOPATH/src/github.com/harmony-one/harmony

Loading…
Cancel
Save