Skip to content

Commit 516f91c

Browse files
author
Nikita P
committed
fix: remove temp files & fix docs
1 parent e85efe3 commit 516f91c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ RUN corepack prepare [email protected] --activate
77
RUN poetry self update 1.8.2
88

99

10-
# install project-defined prerequisites
10+
# copy repo file
1111
WORKDIR /home/root/scripts
12-
1312
COPY . .
1413

14+
# remove all temporary files to ensure correct compilation
15+
RUN rm -rf ./build/contracts/*.json
16+
17+
18+
# install project-defined prerequisites
1519
RUN poetry install
1620
RUN yarn
1721
RUN poetry run brownie networks import network-config.yaml True

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,23 @@ git clone [email protected]:lidofinance/scripts.git
8484
cd scripts
8585
docker build -t scripts-env .
8686
```
87-
Make sure you have set up all the ENV VARs you are using:
88-
- `PINATA_CLOUD_TOKEN`, `WEB3_INFURA_PROJECT_ID`, `DEPLOYER`, etc.
89-
- `ROOT_PASSWORD` for the ssh password
87+
Set up all the ENV VARs you are using:
88+
- `WEB3_INFURA_PROJECT_ID` required to run tests
89+
- `ROOT_PASSWORD` arbitrary password used to connect to the container ssh
9090

91-
Run the container passing all ENV VARs you are using:
91+
Run the container (you can specify any ENV VARs you are using):
9292
```shell
93-
docker run -e ROOT_PASSWORD -e PINATA_CLOUD_TOKEN -e WEB3_INFURA_PROJECT_ID -e DEPLOYER -d -p 2222:22 scripts-env
93+
docker run -e ROOT_PASSWORD -e WEB3_INFURA_PROJECT_ID -d -p 2222:22 scripts-env
9494
```
9595
Now connect to the running container using SSH:
9696
```shell
9797
#ssh-keygen -R [localhost]:2222 # use this if you get a 'REMOTE HOST IDENTIFICATION HAS CHANGED' error
98+
9899
ssh root@localhost -p 2222
100+
99101
# type 'yes' and then <ENTER> if you are asked 'Are you sure you want to continue connecting'
100-
# use password from $ROOT_PASSWORD ENV VAR
102+
103+
# use password specified in $ROOT_PASSWORD
101104
```
102105
You now have a fully functional environment to run tests in, which already contains the repo from which the image was built:
103106
```shell

0 commit comments

Comments
 (0)