44
55### Building
66
7+ #### Prerequisites: SSH Key Setup
8+
9+ Before cloning a build VM, ensure your SSH keys are loaded in ssh-agent so they
10+ are automatically installed on the VM for passwordless access:
11+
12+ $ ssh-add -l # Check if keys are loaded
13+ $ ssh-add ~/.ssh/id_ed25519 # Load your key if not already loaded
14+
15+ The ` dc clone-latest ` command will automatically install your public key from
16+ ssh-agent onto the VM. If no key is available, you'll see a warning and the
17+ VM won't be accessible via SSH key authentication.
18+
19+ ** Manual SSH Key Setup (if automatic setup fails):**
20+
21+ If you cloned the VM before loading your keys, or the automatic setup didn't
22+ work, you can manually configure passwordless SSH. First, log in with standard
23+ password:
24+
25+ $ ssh delphix@$USER-bootstrap.dlpxdc.co
26+
27+ Then add your public key to authorized_keys:
28+
29+ $ mkdir -p ~/.ssh && chmod 700 ~/.ssh
30+ $ echo "YOUR_PUBLIC_KEY_HERE" >> ~/.ssh/authorized_keys
31+ $ chmod 600 ~/.ssh/authorized_keys
32+
33+ To get your public key, run this on your local machine:
34+
35+ $ cat ~/.ssh/id_ed25519.pub # or id_rsa.pub
36+
37+ #### Create Build VM
38+
739Run this command on "dlpxdc.co" to create the VM used to do the build:
840
941 $ dc clone-latest --size COMPUTE_LARGE dlpx-internal-buildserver-develop $USER-bootstrap
@@ -12,9 +44,26 @@ Log into that VM using the "delphix" user, and run these commands:
1244
1345 $ git clone https://github.com/delphix/delphix-platform.git
1446 $ cd delphix-platform
15- $ sudo apt-get update && sudo apt-get install python3-docker
16- $ ansible-playbook bootstrap/playbook.yml
17- $ ./scripts/docker-run.sh make packages
47+
48+ #### Bootstrap and Build
49+
50+ $ sudo apt-get update && sudo apt-get install -y docker.io python3-pip
51+ $ sudo pip3 install docker --break-system-packages
52+ $ sudo usermod -aG docker $USER
53+ $ sudo docker build -t delphix-platform docker/
54+ $ sg docker -c './scripts/docker-run.sh make packages'
55+
56+ #### Build Specific Platforms
57+
58+ To build for a specific platform instead of all platforms:
59+
60+ $ ./scripts/docker-run.sh make package-aws # AWS only
61+ $ ./scripts/docker-run.sh make package-azure # Azure only
62+ $ ./scripts/docker-run.sh make package-esx # ESX only
63+
64+ Available platforms: aws, azure, esx, gcp, hyperv, kvm, oci
65+
66+ Build artifacts are placed in the ` artifacts/ ` directory.
1867
1968## Contributing
2069
0 commit comments