Skip to content

Commit

Permalink
Merge pull request #13 from eosnetworkfoundation/oschwaldp/install-de…
Browse files Browse the repository at this point in the history
…ps-in-docker-image

Install nodejs and solc dependencies in docker base image.
  • Loading branch information
arhag authored Sep 1, 2023
2 parents b806f5a + 77b2596 commit 31e5a26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .cicd/platforms/ubuntu22.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ RUN apt-get update && apt-get upgrade -y && \
jq \
wget \
xxd

#Install Node.js
#https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
ARG NODE_MAJOR=18
RUN 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
RUN apt-get update
RUN apt-get install nodejs -y

#Install solcjs
RUN npm install -g solc
7 changes: 0 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,6 @@ jobs:
apt install -y ./leap-dev*.deb
rm ./leap-dev*.deb
- name: Install build dependencies
run: |
wget https://nodejs.org/dist/v18.17.0/node-v18.17.0-linux-x64.tar.xz
tar xvfJ node-v18.17.0-linux-x64.tar.xz
cp -r node-v18.17.0-linux-x64/{bin,include,lib,share} /usr/
npm install -g solc
- name: Build EVM Bridge Contracts
run: |
pushd evm-bridge-contracts
Expand Down

0 comments on commit 31e5a26

Please sign in to comment.