mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
a25c90e9bb
* chore: clean-up TODOs * cli: make OpenStack error explicit * cli: remove deprecated flags * config: require DeployCSIDriver field
29 lines
872 B
Bash
Executable File
29 lines
872 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo "Installing Constellation CLI"
|
|
curl -LO https://github.com/edgelesssys/constellation/releases/latest/download/constellation-linux-amd64
|
|
sudo install constellation-linux-amd64 /usr/local/bin/constellation
|
|
|
|
# Start docker service and auto start on boot
|
|
# TODO(elchead) should be done in cloud-init but was not done in my test case
|
|
sudo systemctl start docker.service && sudo systemctl enable docker.service
|
|
echo "Waiting for docker service to be active..."
|
|
# Wait at most 20min
|
|
count=0
|
|
until systemctl is-active docker || [[ ${count} -eq 120 ]]; do
|
|
sleep 10
|
|
count=$((count + 1))
|
|
done
|
|
if [[ ${count} -eq 120 ]]; then
|
|
echo "Docker service did not come up in time."
|
|
exit 1
|
|
fi
|
|
|
|
# change to workspace
|
|
mkdir constellation_workspace
|
|
cd constellation_workspace || exit
|
|
|
|
# takes around 15 minutes
|
|
constellation mini up
|
|
echo "Cluster creation done."
|