Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuanx committed Jan 28, 2025
2 parents 262707f + 9fa0ce8 commit 6261ab1
Show file tree
Hide file tree
Showing 10 changed files with 1,157 additions and 22 deletions.
35 changes: 35 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM ubuntu:24.04

SHELL ["/bin/bash", "-l", "-c"]

# Install essential packages
RUN apt-get update && apt-get install -y \
curl \
git \
build-essential \
procps \
file \
unzip \
sudo \
&& rm -rf /var/lib/apt/lists/*

# Create sudoers directory and non-root user
RUN mkdir -p /etc/sudoers.d && \
useradd -m -s /bin/bash vscode && \
echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode

# Switch to non-root user
USER vscode
WORKDIR /home/vscode

# Install Node
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \
sudo apt-get install -y nodejs

# Install Bun
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/home/vscode/.bun/bin:${PATH}"

# Install Foundry
RUN curl -L https://foundry.paradigm.xyz | bash
RUN /home/vscode/.foundry/bin/foundryup -i nightly
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "EthSign: Solidity",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"juanblanco.solidity",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"adpyke.codesnap"
]
}
},
"remoteUser": "vscode",
"features": {}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ node_modules
# Hardhat files
/cache
/artifacts
/artifacts-zk
/cache_hardhat-zk

# TypeChain files
/typechain
Expand Down
Loading

0 comments on commit 6261ab1

Please sign in to comment.