Skip to content
Snippets Groups Projects
Verified Commit 6f944c4a authored by Armin Co's avatar Armin Co
Browse files

Initial commit

parent 1d7858d0
Branches
No related tags found
No related merge requests found
#!/bin/bash
# Get the path to all docker-compose files
# with the "-f" flag.
# Comment the services out that
# you do not want to use.
# var that holds all
# docker-compose files
docker_compose_files=""
# noVNC
docker_compose_files+=" -f ./novnc/docker-compose.yml "
# letsencrypt
docker_compose_files+=" -f ./letsencrypt-webserver/docker-compose.yml "
# jitsi
docker_compose_files+=" -f ./jitsi-auto-config/jitsi/docker-compose.yml "
# mumble
docker_compose_files+=" -f ./build-mumble-web/docker-compose.yml"
# "return" the string
echo "$docker_compose_files"
\ No newline at end of file
#!/bin/bash
## Config
#
git_url="https://gitlab.cvh-server.de/aco/"
## Mumble
#
mumble_dir=build-mumble-web
mumble_url="$git_url$mumble_dir".git
## Jitsi
#
jitsi_dir=jitsi-auto-config
jitsi_url="$git_url$jitsi_dir".git
## letsencrypt
#
le_dir=letsencrypt_webserver
le_url="$git_url$le_dir".git
## noVNC
#
novnc_dir=novnc
novnc_url="$git_url$novnc_dir".git
# Remove all existing repositories
# and configurations.
function remove_all() {
echo "Removing all previous configs..."
rm -rf $mumble_dir $jitsi_dir $le_dir $novnc_dir
echo "Removed all repositories."
}
# Clone repositories
function clone_repositories() {
git clone $mumble_url
git clone $jitsi_url
git clone $le_url
git clone $novnc_url
}
## Run configuration
#
clone_repositories();
\ No newline at end of file
#!/bin/bash
# get all docker-compose files
compose_files=$(./compose_files_conf.sh)
compose=$(echo $compose_files | sed 's/-f / /g')
echo $compose
\ No newline at end of file
#!/bin/bash
# start/restart all containers
compose_files=$(./compose_files_conf.sh)
docker-compose $compose_files up -d
\ No newline at end of file
#!/bin/bash
# Update and restart containers
compose_files=$(./compose_files_conf.sh)
# pull updated images
docker-compose $compose_files pull
# build new images if neccessary
docker-compose $compose_files build
# start/restart updated containers
./start_containers.sh
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment