Skip to content

Commit ece698c

Browse files
committed
build(container): improving container setup
1 parent fac6e1c commit ece698c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.devcontainer/docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ services:
33
container_name: contracts-dev
44
image: mcr.microsoft.com/devcontainers/base:debian
55
command: ["sleep", "infinity"]
6+
env_file:
7+
- /opt/configs/graphprotocol/contracts/.env
68
volumes:
79
- npms-cache:/root/.npm
810
- /git:/git

.devcontainer/setup.sh

+10
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@ set -e
44
cd "$(dirname "$0")/.."
55

66
echo "Installing packages..."
7+
corepack enable
8+
9+
curl -L https://foundry.paradigm.xyz | bash
10+
11+
# Dynamically determine the home directory of the current user
12+
USER_HOME=$(eval echo ~"$USER")
13+
14+
# Source the user's .bashrc and run foundryup
15+
# source "$USER_HOME/.bashrc"
16+
"$USER_HOME/.foundry/bin/foundryup"

0 commit comments

Comments
 (0)