File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,15 @@ RUN corepack prepare yarn@1.22 --activate
77RUN poetry self update 1.8.2
88
99
10- # install project-defined prerequisites
10+ # copy repo file
1111WORKDIR /home/root/scripts
12-
1312COPY . .
1413
14+ # remove all temporary files to ensure correct compilation
15+ RUN rm -rf ./build/contracts/*.json
16+
17+
18+ # install project-defined prerequisites
1519RUN poetry install
1620RUN yarn
1721RUN poetry run brownie networks import network-config.yaml True
Original file line number Diff line number Diff line change @@ -84,20 +84,23 @@ git clone git@github.com:lidofinance/scripts.git
8484cd scripts
8585docker 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```
9595Now 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+
9899ssh 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```
102105You now have a fully functional environment to run tests in, which already contains the repo from which the image was built:
103106``` shell
You can’t perform that action at this time.
0 commit comments