-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from mojtaba-eshghie/feat_issue_131
Feat: adding working Dockerfile and docker-compose.yml files #131
- Loading branch information
Showing
11 changed files
with
170 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Use a base image with the required GLIBC version | ||
FROM ubuntu:20.04 | ||
|
||
# Install dependencies including git and python | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
build-essential \ | ||
wget \ | ||
ca-certificates \ | ||
libssl-dev \ | ||
git \ | ||
python3 \ | ||
python3-distutils \ | ||
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \ | ||
&& apt-get install -y nodejs \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Foundry and Anvil | ||
RUN curl -L https://foundry.paradigm.xyz | bash \ | ||
&& ~/.foundry/bin/foundryup | ||
|
||
# Set up environment variables for Foundry | ||
ENV PATH="/root/.foundry/bin:${PATH}" | ||
|
||
# Create and change to the app directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy package.json and package-lock.json | ||
COPY package*.json ./ | ||
|
||
# Install Node.js dependencies | ||
RUN npm install | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# The command to keep the container running and allow for command execution | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3.8' | ||
|
||
services: | ||
node-cli: | ||
build: . | ||
volumes: | ||
- .:/usr/src/app | ||
working_dir: /usr/src/app | ||
entrypoint: ["bash", "-c"] | ||
command: "pkill anvil; node CI/run.js -t synthesized -e separate -v -c micro-configs/config-synthesized-governance.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T16:41:24.970Z | false | 2015421 | | ||
| vote | 2024-06-22T16:41:35.069Z | true | 2015421 | | ||
| vote | 2024-06-22T16:41:35.542Z | false | 2015421 | | ||
| vote | 2024-06-22T16:41:36.034Z | false | 2015421 | | ||
| vote | 2024-06-22T16:41:36.558Z | false | 2015421 | | ||
| executeProposal | 2024-06-22T16:41:47.065Z | false | 2015421 | | ||
| createProposal | 2024-06-22T17:21:33.213Z | false | 2015422 | | ||
| vote | 2024-06-22T17:21:43.126Z | true | 2015422 | | ||
| vote | 2024-06-22T17:21:55.905Z | false | 2015422 | | ||
| vote | 2024-06-22T17:21:57.370Z | false | 2015422 | | ||
| vote | 2024-06-22T17:21:57.888Z | false | 2015422 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:21:36.877Z | false | 2015423 | | ||
| vote | 2024-06-22T17:21:47.084Z | true | 2015423 | | ||
| vote | 2024-06-22T17:21:47.570Z | false | 2015423 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:21:38.574Z | false | 2015424 | | ||
| executeProposal | 2024-06-22T17:21:54.535Z | true | 2015424 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:21:53.262Z | false | 2015425 | | ||
| createProposal | 2024-06-22T17:22:03.573Z | true | 2015425 | | ||
| createProposal | 2024-06-22T17:22:16.006Z | true | 2015425 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:21:55.923Z | false | 2015426 | | ||
| vote | 2024-06-22T17:22:12.413Z | true | 2015426 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:22:10.585Z | false | 2015427 | | ||
| vote | 2024-06-22T17:22:12.298Z | true | 2015427 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:22:14.704Z | false | 2015428 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
| Activity ID | Time | Violation | Simulation | | ||
| --- | --- | --- | --- | | ||
| createProposal | 2024-06-22T17:22:17.503Z | false | 2015429 | |