Skip to content

Conversation

@henriquemarlon
Copy link
Member

No description provided.

@henriquemarlon henriquemarlon force-pushed the fix/dockerized-env-tests branch 2 times, most recently from 00de89c to fd7b8c7 Compare December 9, 2025 01:12
@henriquemarlon henriquemarlon force-pushed the fix/dockerized-env-tests branch from fd7b8c7 to 543cc2c Compare December 9, 2025 01:14
@henriquemarlon henriquemarlon changed the title feat(docker): improve dockerized environment setup fix(docker): improve dockerized environment setup Dec 9, 2025
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
Copy link
Collaborator

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.

Suggested change
~/.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 -

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.

Copy link
Collaborator

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.

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants