Skip to content

Commit

Permalink
[INF-104] Upgrade to node 16 to fix build errors (#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheran-senthil authored May 20, 2022
1 parent b731978 commit 3a69e51
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ commands:
or:
- equal: [master, << pipeline.git.branch >>]
- matches:
pattern: "^release.*$"
pattern: '^release.*$'
value: << pipeline.git.branch >>
steps:
- run: ./diff.sh << parameters.service >> || (echo "no diff" && circleci-agent step halt)
Expand Down Expand Up @@ -91,8 +91,8 @@ jobs:
test-mad-dog-e2e:
parameters:
mad-dog-type:
description: "test, test-nightly"
default: "test"
description: 'test, test-nightly'
default: 'test'
type: string
docker:
- image: audius/circleci-gcloud-bake:latest
Expand Down Expand Up @@ -155,11 +155,11 @@ jobs:
- image: trufflesuite/ganache-cli:latest
# https://discuss.circleci.com/t/docker-using-local-image/11581/9
# https://circleci.com/docs/2.0/configuration-reference/#docker
command: ["-l", "8000000", "-a", "50"]
command: ['-l', '8000000', '-a', '50']
- image: trufflesuite/ganache-cli:latest
# https://discuss.circleci.com/t/docker-using-local-image/11581/9
# https://circleci.com/docs/2.0/configuration-reference/#docker
command: ["-l", "8000000", "-p", "8546", "-a", "50"]
command: ['-l', '8000000', '-p', '8546', '-a', '50']

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
docker:
- image: circleci/node:10.16.3
- image: trufflesuite/ganache-cli:latest
command: ["--port=8555", "-a", "100", "-l", "8000000"]
command: ['--port=8555', '-a', '100', '-l', '8000000']
steps:
- checkout
- diff-if-necessary:
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
docker:
- image: circleci/node:14.17.3
- image: trufflesuite/ganache-cli:latest
command: ["--port=8546", "-a", "50", "-l", "8000000"]
command: ['--port=8546', '-a', '50', '-l', '8000000']
steps:
- checkout
- diff-if-necessary:
Expand Down Expand Up @@ -358,14 +358,14 @@ jobs:
- cluster.name=docker-cluster
- node.name=cluster1-node1
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
- image: ipfs/go-ipfs:release
# Bring up ganache
- image: redis:3.0-alpine
- image: trufflesuite/ganache-cli:latest
command: ["--port=8555", "-a", "100", "-l", "8000000"]
command: ['--port=8555', '-a', '100', '-l', '8000000']
- image: trufflesuite/ganache-cli:latest
command: ["--port=8556", "-a", "100", "-l", "8000000"]
command: ['--port=8556', '-a', '100', '-l', '8000000']
steps:
- checkout
- diff-if-necessary:
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:
- image: trufflesuite/ganache-cli:latest
# https://discuss.circleci.com/t/docker-using-local-image/11581/9
# https://circleci.com/docs/2.0/configuration-reference/#docker
command: ["-l", "8000000"]
command: ['-l', '8000000']
- image: circleci/postgres:11.1
environment:
POSTGRES_USER: postgres
Expand Down Expand Up @@ -787,7 +787,7 @@ workflows:
repo: solana-programs
triggers:
- schedule:
cron: "0 5 * * *"
cron: '0 5 * * *'
filters:
branches:
only: /(^master$)/
6 changes: 3 additions & 3 deletions contracts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# FROM audius-contracts:latest as contracts
# COPY --from=contracts /usr/src/app/build/contracts/ ./build/contracts/

FROM node:10.16 as builder
FROM node:16 as builder

COPY package*.json ./
RUN npm install --loglevel verbose

FROM node:10.16-alpine
FROM node:16-slim
WORKDIR /usr/src/app
COPY --from=builder /node_modules ./node_modules
COPY . .

RUN ./node_modules/.bin/truffle compile
RUN npx truffle compile

ARG git_sha
ENV GIT_SHA=$git_sha
6 changes: 3 additions & 3 deletions eth-contracts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# FROM audius-eth-contracts:latest as eth-contracts
# COPY --from=eth-contracts /usr/src/app/build/contracts/ ./build/contracts/

FROM node:10.16 as builder
FROM node:16 as builder

COPY package*.json ./
RUN npm install --loglevel verbose

FROM node:10.16-alpine
FROM node:16-slim
WORKDIR /usr/src/app
COPY --from=builder /node_modules ./node_modules
COPY . .

RUN ./node_modules/.bin/truffle compile
RUN npx truffle compile

ARG git_sha
ENV GIT_SHA=$git_sha

0 comments on commit 3a69e51

Please sign in to comment.