-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.tftpl
More file actions
30 lines (22 loc) · 722 Bytes
/
script.tftpl
File metadata and controls
30 lines (22 loc) · 722 Bytes
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
#!/bin/sh
project_tag=${project_tag}
name=${name_tag}
aws_region=${aws_region}
container_name=${container_name}
ngen_catchment_file=${ngen_catchment_file}
ngen_nexus_file=${ngen_nexus_file}
ngen_realization_file=${ngen_realization_file}
bucket_name=${bucket_name}
sudo dnf -y install docker
sudo usermod -a -G docker ec2-user
id ec2-user
sudo systemctl start docker.service
sudo apt-get install s3fs
sudo s3fs \
-o iam_role="auto" \
-o url="https://s3-${aws_region}.amazonaws.com" \
-o umask=000 \
-o allow_other \
${bucket_name} /mnt
sudo docker pull zwills/dmod_ngen_slim
sudo docker run --rm -it ${container_name} "${ngen_catchment_file}" "" "${ngen_nexus_file}" "" ${ngen_realization_file}