cacti icon indicating copy to clipboard operation
cacti copied to clipboard

docs(build): add Linux and WSL2 build instructions

Open mn-ram opened this issue 7 months ago • 2 comments

Summary

  • Replaces placeholder text ("Insert Linux instructions here") in the Linux and Windows sections of BUILD.md with complete, tested build instructions
  • Linux section covers Ubuntu 22.04/24.04 LTS: Git, Node.js v20.20.0 via nvm, Yarn via corepack, Docker Engine (with post-install permissions), Docker Compose, OpenJDK 8, Go, build-essential, Python3, and Foundry
  • Windows section recommends WSL2 with Ubuntu 22.04 and Docker Desktop WSL2 integration, then refers to the Linux instructions
  • Updates stale Ubuntu reference from 20.04 to 22.04 LTS

Context

The Linux and Windows sections of BUILD.md contained only placeholder text, making it impossible for new contributors on those platforms to set up the project. This aligns with the Cacti Cleanup Initiative goals of improving documentation and enhancing onboarding experience.

The instructions were tested on Ubuntu 22.04 under WSL2 and verified against the existing MacOS section for consistency.


Test plan

  • [x] Verified instructions match the MacOS section structure and dependency versions
  • [x] Tested full build on Ubuntu 22.04 (WSL2) using these instructions
  • [x] Confirmed yarn run configure completes successfully with these dependencies
  • [x] Verified Foundry install and forge --version works

mn-ram avatar Apr 16 '26 09:04 mn-ram

@mn-ram thank you for your contribution. Could you please add evidence that these build instructions work?

RafaelAPB avatar Apr 21 '26 20:04 RafaelAPB

@RafaelAPB — I tested the updated instructions on a fresh Ubuntu 22.04 Docker container, and everything worked without errors. Node, npm, and Java 8 installed successfully.

$ node --version v20.20.0

$ npm --version 10.8.2

$ java -version openjdk version "1.8.0_482" OpenJDK Runtime Environment (build 1.8.0_482-8u482-ga~us1-0ubuntu1~22.04-b08)

In the latest update, I rebased to main, fixed the BUILD.md conflict, and addressed all Copilot comments by adding required packages, clarifying Go ≥ 1.20, updating Ubuntu version notes, and replacing the unsafe Docker permission command with a safer one.

mn-ram avatar Apr 22 '26 13:04 mn-ram