forked from kendrickcc/odm-azure-wf2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud-init.tpl
35 lines (34 loc) · 998 Bytes
/
cloud-init.tpl
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
31
32
33
34
35
#cloud-config
#
# package update and upgrade
package_update: true
package_upgrade: true
#
# install packages
packages:
- docker
- docker.io
- docker-compose
#
# users
users:
- default
- name: odm
sudo: ALL=(ALL) NOPASSWD:ALL
groups: docker
ssh_authorized_keys:
- ${ssh_key}
#
# run commands
runcmd:
- cd /home/odm
# install rclone
- curl https://rclone.org/install.sh | sudo bash
- sudo mkdir -p /odm/data
- sudo mkdir -p /odm/datasets/project/images
- git clone https://github.com/OpenDroneMap/WebODM --config core.autocrlf=input --depth 1 /odm/WebODM
- sudo chown -R odm:odm /odm
- sudo --set-home --user=odm docker run --detach --rm --tty --publish 3000:3000 --publish 10000:10000 --publish 8080:8080 opendronemap/clusterodm
- sudo --set-home --user=odm docker run --detach --rm --publish 3001:3000 opendronemap/nodeodm
#- sudo --set-home --user=odm /odm/WebODM/webodm.sh start --detached --default-nodes 0 --media-dir /odm/data
# end of config