Add/update filtered-sum-bms benchmark
This commit is contained in:
66
spot-launcher/setup.sh
Normal file
66
spot-launcher/setup.sh
Normal file
@@ -0,0 +1,66 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
# Add the repository to Apt sources:
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
sudo apt update
|
||||
|
||||
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||
|
||||
CPU_CORES=$(nproc)
|
||||
IP=$(curl https://wtfismyip.com/text)
|
||||
|
||||
# If using a `deb` package based distribution
|
||||
curl -s https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
|
||||
sudo apt install -y gitlab-runner
|
||||
|
||||
sudo gitlab-runner register --url https://gitlab.k8s.peeters.page/ --registration-token 5pOh5Wygrf732Z5cJMMCXlUui3iTpaNByu03JgLgXFvoKktWt1BTY1waWEpdRHoq --tag-list amd64 --limit 1 --executor docker --docker-image alpine:latest -n
|
||||
|
||||
#cat > /home/ubuntu/docker-compose.yaml<< EOF
|
||||
#services:
|
||||
# runner:
|
||||
# image: gitea/act_runner:latest
|
||||
# restart: always
|
||||
# privileged: true
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
# - /home/ubuntu:/data
|
||||
# environment:
|
||||
# - GITEA_INSTANCE_URL=https://git.peeters.page
|
||||
# - GITEA_RUNNER_REGISTRATION_TOKEN=Sm4TnQIREAibTqPLO9U616SPgsOeiB2uBsyHtbkB
|
||||
# - GITEA_RUNNER_NAME=AWS-$IP
|
||||
# - CONFIG_FILE=/data/config.yaml
|
||||
# networks:
|
||||
# - act_runner_default
|
||||
#networks:
|
||||
# act_runner_default:
|
||||
# name: act_runner_default
|
||||
# enable_ipv6: true
|
||||
# ipam:
|
||||
# driver: default
|
||||
# config:
|
||||
# - subnet: 64:ff9b:100::/64
|
||||
# gateway: 64:ff9b:100::1
|
||||
#EOF
|
||||
#
|
||||
#cat > /home/ubuntu/config.yaml<< EOF
|
||||
#runner:
|
||||
# capacity: $CPU_CORES
|
||||
# timeout: 72h
|
||||
#container:
|
||||
# # Specifies the network to which the container will connect.
|
||||
# # Could be host, bridge or the name of a custom network.
|
||||
# # If it's empty, act_runner will create a network automatically.
|
||||
# network: "act_runner_default"
|
||||
#EOF
|
||||
|
||||
#cd /home/ubuntu
|
||||
#sudo docker compose up -d
|
||||
Reference in New Issue
Block a user