Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
6bc21cb1
Unverified
Commit
6bc21cb1
authored
Oct 18, 2023
by
Mark Tyneway
Committed by
GitHub
Oct 18, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7744 from ethereum-optimism/ci-builder/alt-fix
ci-builder: don't use nvm
parents
5ebd15ce
0a92ad02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
Dockerfile
ops/docker/ci-builder/Dockerfile
+12
-16
No files found.
ops/docker/ci-builder/Dockerfile
View file @
6bc21cb1
...
@@ -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"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment