@@ -52,15 +52,14 @@ packages:
5252 - ufw
5353 - fail2ban
5454 - unattended-upgrades
55- # Torrust Tracker dependencies for potential source compilation
56- # Currently using Docker, but planning to compile from source for better performance
57- # in production environments (see ADR-002)
58- - pkg-config
59- - libssl-dev
60- - make
61- - build-essential
62- - libsqlite3-dev
63- - sqlite3
55+ # NOTE: Rust build dependencies commented out since we're using Docker for all services (see ADR-002)
56+ # Uncomment the following packages if you need to compile Rust applications (like Torrust Tracker) from source:
57+ # - pkg-config
58+ # - libssl-dev
59+ # - make
60+ # - build-essential
61+ # - libsqlite3-dev
62+ # - sqlite3
6463
6564# System configuration files
6665write_files:
@@ -151,20 +150,22 @@ runcmd:
151150 - docker --version
152151 - docker compose version
153152
154- # Install Rust using rustup (official method)
155- # Install as torrust user to ensure proper ownership
156- - >
157- sudo -u torrust bash -c 'curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y'
158-
159- # Add Rust to PATH for torrust user
160- - >
161- echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /home/torrust/.bashrc
162- - >
163- echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /home/torrust/.profile
164-
165- # Verify Rust installation
166- - sudo -u torrust bash -c 'source ~/.cargo/env && rustc --version'
167- - sudo -u torrust bash -c 'source ~/.cargo/env && cargo --version'
153+ # NOTE: Rust installation commented out since we're using Docker for all services (see ADR-002)
154+ # Uncomment the following section if you need to compile Rust applications from source:
155+ # # Install Rust using rustup (official method)
156+ # # Install as torrust user to ensure proper ownership
157+ # - >
158+ # sudo -u torrust bash -c 'curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y'
159+ #
160+ # # Add Rust to PATH for torrust user
161+ # - >
162+ # echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /home/torrust/.bashrc
163+ # - >
164+ # echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /home/torrust/.profile
165+ #
166+ # # Verify Rust installation
167+ # - sudo -u torrust bash -c 'source ~/.cargo/env && rustc --version'
168+ # - sudo -u torrust bash -c 'source ~/.cargo/env && cargo --version'
168169
169170 # CRITICAL: Configure UFW firewall SAFELY (allow SSH BEFORE enabling)
170171 - ufw --force reset
@@ -199,11 +200,10 @@ final_message: |
199200 - OS: Ubuntu 24.04 LTS
200201 - User: torrust (with sudo privileges and SSH key access only)
201202 - Docker: Installed and configured
202- - Rust: Installed via rustup (latest stable version)
203203 - Firewall: UFW enabled with proper SSH rules
204204 - Security: Automatic updates enabled
205- - Torrust Tracker dependencies: pkg-config, libssl-dev, make, build-essential, libsqlite3-dev, sqlite3
206- (for potential source compilation in production environments)
205+ - Note: All Torrust Tracker services run in Docker containers (see ADR-002)
206+ Rust build dependencies are commented out but can be enabled if needed
207207
208208 SSH Access:
209209 - SSH Key: ssh torrust@VM_IP
@@ -212,7 +212,7 @@ final_message: |
212212 Next steps:
213213 1. SSH into the VM as user 'torrust'
214214 2. Clone the torrust-tracker-demo repository
215- 3. Run the deployment scripts
215+ 3. Run the deployment scripts using Docker Compose
216216
217217 The VM is ready for Torrust Tracker deployment!
218218
0 commit comments