Commit 6bc21cb1 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #7744 from ethereum-optimism/ci-builder/alt-fix

ci-builder: don't use nvm
parents 5ebd15ce 0a92ad02
...@@ -78,18 +78,21 @@ COPY --from=echidna-test /usr/local/bin/echidna-test /usr/local/bin/echidna-test ...@@ -78,18 +78,21 @@ COPY --from=echidna-test /usr/local/bin/echidna-test /usr/local/bin/echidna-test
COPY .nvmrc .nvmrc COPY .nvmrc .nvmrc
# not installed, unused ENV NODE_MAJOR=18
# musl coreutils g++-x86-64-linux-gnu libc6-dev-amd64-cross ENV SLITHER_VERSION=0.10.0
#
# note: python3 package in apt is python 3.9, while base image already has python 3.11 # note: python3 package in apt is python 3.9, while base image already has python 3.11
RUN /bin/sh -c set -eux; \ RUN /bin/sh -c set -eux; \
apt-get update; \ apt-get update; \
apt-get install -y --no-install-recommends bash curl openssh-client git build-essential ca-certificates jq gnupg binutils-mips-linux-gnu; \ apt-get install -y --no-install-recommends bash curl openssh-client git build-essential ca-certificates jq gnupg binutils-mips-linux-gnu; \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash; \ mkdir -p /etc/apt/keyrings; \
. /root/.bashrc && nvm install && nvm use && nvm install-latest-npm; \ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt-get update; \
apt-get install -y nodejs; \
ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt; \ ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt; \
npm i -g depcheck; \ npm i -g depcheck; \
pip install slither-analyzer==0.9.3 capstone pyelftools; \ pip install slither-analyzer==$SLITHER_VERSION capstone pyelftools; \
curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash; \ curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*; \ rm -rf /var/lib/apt/lists/*; \
...@@ -97,7 +100,7 @@ RUN /bin/sh -c set -eux; \ ...@@ -97,7 +100,7 @@ RUN /bin/sh -c set -eux; \
rm -rf /root/.cache/npm; rm -rf /root/.cache/npm;
RUN echo "downloading pnpm and yarn" && . /root/.bashrc && npm i -g pnpm && npm i -g yarn@1 && pnpm --version && yarn --version RUN npm i -g pnpm && npm i -g yarn@1 && pnpm --version && yarn --version
RUN svm install 0.5.17 && \ RUN svm install 0.5.17 && \
svm install 0.8.15 svm install 0.8.15
...@@ -114,16 +117,9 @@ RUN echo "downloading and verifying Codecov uploader" && \ ...@@ -114,16 +117,9 @@ RUN echo "downloading and verifying Codecov uploader" && \
rm codecov rm codecov
# within docker use bash # within docker use bash
SHELL [ "/bin/bash", "-c" ] SHELL ["/bin/bash", "-c"]
# set env to use bash # set env to use bash
ENV SHELL=/bin/bash ENV SHELL=/bin/bash
ENV BASH=/bin/bash ENV BASH=/bin/bash
# See https://circleci.com/docs/custom-images/#adding-an-entrypoint ENTRYPOINT ["/bin/bash", "-c"]
# and https://circleci.com/docs/configuration-reference/#default-shell-options
# We need a login shell for nvm to work, and need circleci to not override it back to a regular bash shell.
LABEL com.circleci.preserve-entrypoint=true
ENTRYPOINT ["/bin/bash", "--login", "-eo", "pipefail", "-c"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment