-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrimoirelab-script.tpl
21 lines (19 loc) · 976 Bytes
/
grimoirelab-script.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2019
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
set -o nounset
set -o pipefail
sudo sfdisk /dev/xvdh --no-reread << EOF
;
EOF
sudo mkfs -t ext4 /dev/xvdh1
mkdir -p /var/lib/docker/
sudo mount /dev/xvdh1 /var/lib/docker/
echo "/dev/xvdh1 /var/lib/docker/ ext4 errors=remount-ro,noatime,barrier=0 0 1" | sudo tee --append /etc/fstab
curl -fsSL https://raw.githubusercontent.com/electrocucaracha/grimoirelab/master/all-in-one.sh | GRIMOIRELAB_ORG=${org} GRIMOIRELAB_NUM_ARTHUR_WORKERS=${arthur_workers} USER=${user} HOME=${home} bash