forked from compiler-explorer/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-data-script.sh
14 lines (12 loc) · 1.11 KB
/
user-data-script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -ex
mkdir -p /root/.ssh
cat >/root/.ssh/known_hosts <<EOF
|1|6kkg4vXFndu74Cif5Oz9098PsY4=|k0sy2nylJdzYTwQK+aKmITvX8S8= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|1|9zKzfbCf91lj6RBfxx8gmxHV7Lc=|9JCgnqPKdeIaFvFF0tijjEgBWOk= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
EOF
apt-get -y update
apt-get -y install git
git clone https://github.com/mattgodbolt/compiler-explorer-image.git
cd compiler-explorer-image
bash setup.sh 2>&1 | tee /tmp/setup.log