Start moving installer scripts over

This commit is contained in:
Luke Murphy 2020-10-25 21:08:08 +01:00
parent ad1063a0cc
commit 4de7f24d8e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 51 additions and 17 deletions

40
installer/compose.yml Normal file
View File

@ -0,0 +1,40 @@
---
version: "3.8"
services:
abra_installer:
image: "nginx:stable"
configs:
- source: abra_conf
target: /etc/nginx/conf.d/abra.conf
- source: abra_installer
target: /var/www/abra-installer/installer
volumes:
- "public:/var/www/abra-installer"
networks:
- proxy
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.abra-installer.loadbalancer.server.port=80"
- "traefik.http.routers.abra-installer.rule=Host(`install.abra.autonomic.zone`)"
- "traefik.http.routers.abra-installer.entrypoints=web-secure"
- "traefik.http.routers.abra-installer.tls.certresolver=production"
configs:
abra_installer:
name: abra_installer_v1
file: installer
abra_conf:
name: abra_conf_v1
file: nginx.conf
networks:
proxy:
external: true
volumes:
public:

View File

@ -1,7 +1,7 @@
#!/bin/bash
ABRA_VERSION="0.3.1"
ABRA_SRC="https://git.autonomic.zone/autonomic-cooperative/abra/raw/tag/$ABRA_VERSION/abra"
ABRA_SRC="https://git.autonomic.zone/coop-cloud/abra/raw/tag/$ABRA_VERSION/abra"
function install_abra {
mkdir -p "$HOME/.local/bin"

10
installer/nginx.conf Normal file
View File

@ -0,0 +1,10 @@
server {
listen 80 default_server;
server_name install.abra.autonomic.zone;
location / {
root /var/www/abra-installer;
add_header Content-Type text/plain;
index installer;
}
}

View File

@ -1,16 +0,0 @@
#!/bin/sh
install_docker() {
echo "install_docker: TODO"
}
init_swarm() {
echo "init_swarm: TODO"
}
run_installation() {
install_docker
init_swarm
}
run_installation
exit 0