Start moving installer scripts over
This commit is contained in:
		
							
								
								
									
										40
									
								
								installer/compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								installer/compose.yml
									
									
									
									
									
										Normal 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:
 | 
			
		||||
@ -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
									
								
							
							
						
						
									
										10
									
								
								installer/nginx.conf
									
									
									
									
									
										Normal 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;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user