Skip to content

Commit 6bd3acd

Browse files
committed
update dockerfile and scripts
1 parent f1acdad commit 6bd3acd

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

.devcontainer/Dockerfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
FROM --platform=linux/amd64 node:lts-bookworm-slim
1+
FROM --platform=linux/amd64 ubuntu:24.04
22
SHELL ["/bin/bash", "-c"]
33

44
ENV NVM_DIR=/root/.nvm
55
ENV NODE_VERSION=22.15.0
66

7-
RUN apt update && apt install -y curl bash git tar gzip libc++-dev jq python3 build-essential
7+
# Install dependencies including newer libstdc++
8+
RUN apt update && apt install -y \
9+
curl \
10+
bash \
11+
git \
12+
tar \
13+
gzip \
14+
libc++-dev \
15+
libstdc++6 \
16+
jq \
17+
python3 \
18+
build-essential \
19+
ca-certificates
820

921
# Install nvm, node and npm
1022
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
@@ -15,4 +27,4 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | b
1527

1628
# Add node and npm to path
1729
ENV PATH="${NVM_DIR}/versions/node/v${NODE_VERSION}/bin:${PATH}"
18-
RUN npm i -g yarn
30+
RUN npm i -g yarn

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
"private": true,
99
"type": "module",
1010
"scripts": {
11-
"fees": "node --loader ts-node/esm scripts/fees.ts",
12-
"fees::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/fees.ts",
11+
"fees": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/fees.ts",
12+
"fees::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/fees.ts",
1313
"clean": "rm -rf ./src/artifacts ./target",
1414
"clear-store": "rm -rf ./store",
1515
"codegen": "aztec codegen target --outdir src/artifacts",
1616
"compile": "${AZTEC_NARGO:-aztec-nargo} compile && aztec-postprocess-contract",
17-
"deploy": "node --loader ts-node/esm scripts/deploy_contract.ts",
18-
"deploy::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/deploy_contract.ts",
19-
"deploy-account": "node --loader ts-node/esm scripts/deploy_account.ts",
20-
"deploy-account::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/deploy_account.ts",
21-
"interaction-existing-contract": "node --loader ts-node/esm scripts/interaction_existing_contract.ts",
22-
"interaction-existing-contract::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/interaction_existing_contract.ts",
23-
"multiple-wallet": "node --loader ts-node/esm scripts/multiple_wallet.ts",
24-
"multiple-wallet::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/multiple_wallet.ts",
25-
"get-block": "node --loader ts-node/esm scripts/get_block.ts",
26-
"get-block::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/get_block.ts",
27-
"profile": "node --loader ts-node/esm scripts/profile_deploy.ts",
28-
"profile::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/profile_deploy.ts",
17+
"deploy": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/deploy_contract.ts",
18+
"deploy::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/deploy_contract.ts",
19+
"deploy-account": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/deploy_account.ts",
20+
"deploy-account::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/deploy_account.ts",
21+
"interaction-existing-contract": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/interaction_existing_contract.ts",
22+
"interaction-existing-contract::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/interaction_existing_contract.ts",
23+
"multiple-wallet": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/multiple_wallet.ts",
24+
"multiple-wallet::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/multiple_wallet.ts",
25+
"get-block": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/get_block.ts",
26+
"get-block::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/get_block.ts",
27+
"profile": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/profile_deploy.ts",
28+
"profile::devnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=devnet node --loader ts-node/esm scripts/profile_deploy.ts",
2929
"test": "yarn test:js && yarn test:nr",
3030
"test::devnet": "AZTEC_ENV=devnet yarn test:js",
3131
"test:js": "rm -rf store/pxe && NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json",

0 commit comments

Comments
 (0)