Skip to content

Commit

Permalink
🗞️ Simple devcontainer (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Feb 12, 2024
1 parent e766c86 commit 237f15f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "LayerZero Devtools",
"build": {
"context": "..",
"dockerfile": "../Dockerfile",
"target": "base"
},
"mounts": ["type=volume,target=${containerWorkspaceFolder}/node_modules"],
"runArgs": ["--env-file", ".env"],
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": false
}
}
}
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ FROM node:$NODE_VERSION as base
# We'll add an empty NPM_TOKEN to suppress any warnings
ENV NPM_TOKEN=
ENV PATH "/root/.foundry/bin:$PATH"
ENV NPM_CONFIG_STORE_DIR=/pnpm

# Update the system packages
RUN apt-get update

# Add required packages
RUN apt-get install --yes \
# expect is a utility that can be used to test CLI scripts
#
# See a tutorial here https://www.baeldung.com/linux/bash-interactive-prompts
expect

# Install foundry
RUN curl -L https://foundry.paradigm.xyz | bash
RUN foundryup
Expand All @@ -48,7 +56,6 @@ RUN anvil --version
RUN chisel --version
RUN cast --version


# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
Expand Down

0 comments on commit 237f15f

Please sign in to comment.