-
Notifications
You must be signed in to change notification settings - Fork 18
fix(docker): improve dockerized environment setup #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(docker): improve dockerized environment setup #226
Conversation
00de89c to
fd7b8c7
Compare
fd7b8c7 to
543cc2c
Compare
| apt-get update && apt-get install -y --no-install-recommends curl ca-certificates git | ||
| curl -L https://foundry.paradigm.xyz | bash | ||
| ~/.foundry/bin/foundryup --install stable | ||
| ~/.foundry/bin/foundryup --install v1.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should install Foundry 1.4.3 to match the version used in the CI.
| ~/.foundry/bin/foundryup --install v1.4.0 | |
| ~/.foundry/bin/foundryup --install v1.4.3 |
| rm -rf /var/cache/apt; | ||
|
|
||
| # install pnpm | ||
| RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest defining a pnpm version.
Also, Is there any other way to install pnpm ?
I personally don't like running a .sh script from a web requests, for a number of reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we install corepack and enable it, it will (download, if necessary, and) use the correct version of pnpm automatically, because all package.json have the packageManager field set to pnpm@10.7.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for pinning versions and (if possible) not running arbitrary bash scripts from the internet.
No description provided.