1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/docker/setup.sh

29 lines
1.4 KiB
Bash
Raw Normal View History

2017-12-14 11:58:23 +01:00
#!/bin/bash
prepare_config()
{
2017-12-14 12:02:50 +01:00
FABMANAGER_PATH=${1:-/apps/fabmanager}
2017-12-14 11:58:23 +01:00
mkdir -p "$FABMANAGER_PATH/example"
mkdir -p "$FABMANAGER_PATH/elasticsearch/config"
2017-12-14 11:58:23 +01:00
# fab-manager environment variables
2019-03-26 14:04:45 +01:00
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/env.example > "$FABMANAGER_PATH/example/env.example"
2017-12-14 11:58:23 +01:00
# nginx configuration
2019-03-26 14:04:45 +01:00
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/nginx_with_ssl.conf.example > "$FABMANAGER_PATH/example/nginx_with_ssl.conf.example"
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/nginx.conf.example > "$FABMANAGER_PATH/example/nginx.conf.example"
2017-12-14 11:58:23 +01:00
# let's encrypt configuration
2019-03-26 14:04:45 +01:00
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/webroot.ini.example > "$FABMANAGER_PATH/example/webroot.ini.example"
2017-12-14 11:58:23 +01:00
# ElasticSearch configuration files
2019-03-26 14:04:45 +01:00
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/elasticsearch.yml > "$FABMANAGER_PATH/elasticsearch/config/elasticsearch.yml"
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/log4j2.properties > "$FABMANAGER_PATH/elasticsearch/config/log4j2.properties"
2017-12-14 11:58:23 +01:00
# docker-compose
2019-03-26 14:04:45 +01:00
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/docker-compose.yml > "$FABMANAGER_PATH/docker-compose.yml"
2017-12-14 11:58:23 +01:00
}
prepare_config "$@"