Spaces:
Sleeping

File size: 860 Bytes
07ba06f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#cloud-config

package_update: true
package_upgrade: true

packages:
  - apt-transport-https
  - ca-certificates
  - curl
  - gnupg
  - lsb-release
  - git

runcmd:
  # Install Docker
  - curl -fsSL https://get.docker.com -o get-docker.sh
  - sh get-docker.sh
  
  # Install Docker Compose
  - curl -L "https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  - chmod +x /usr/local/bin/docker-compose
  
  # Setup Swarmnet Directory
  - mkdir -p /opt/swarmnet
  - cd /opt/swarmnet
  
  # Note: In a real deployment, we would git clone the repository here. 
  # Since this is local dev without a remote repo yet, we'll write a simple dummy or assume code is scp'd.
  # For demonstration, we just pull a generic python image if not built, but the terraform script can upload the dir.