From bc5c44dd049bad3b007be48b3f8d90886d63c105 Mon Sep 17 00:00:00 2001 From: System administrator Date: Mon, 29 May 2017 13:26:10 +0200 Subject: Initial commit --- bin/attach | 2 ++ bin/dca | 13 +++++++++++++ bin/mount | 2 ++ bin/ngreload | 3 +++ 4 files changed, 20 insertions(+) create mode 100755 bin/attach create mode 100755 bin/dca create mode 100755 bin/mount create mode 100755 bin/ngreload (limited to 'bin') diff --git a/bin/attach b/bin/attach new file mode 100755 index 0000000..81a00ad --- /dev/null +++ b/bin/attach @@ -0,0 +1,2 @@ +#!/bin/sh +docker exec -it $1 /bin/sh diff --git a/bin/dca b/bin/dca new file mode 100755 index 0000000..2289ac1 --- /dev/null +++ b/bin/dca @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +shopt -s nullglob + +echo Using ./services/*.yml +COMPOSE_OPTIONS="" +for file in ./services/*.yml; do + COMPOSE_OPTIONS="${COMPOSE_OPTIONS} -f $file" +done + +export COMPOSE_PROJECT_NAME=server +export IMAGES=$PWD/images + +docker-compose $COMPOSE_OPTIONS "$@" diff --git a/bin/mount b/bin/mount new file mode 100755 index 0000000..8e77608 --- /dev/null +++ b/bin/mount @@ -0,0 +1,2 @@ +#!/bin/sh +docker run -it --rm -v "$1:/mnt" alpine:3.5 /bin/ash -sc 'cd /mnt' diff --git a/bin/ngreload b/bin/ngreload new file mode 100755 index 0000000..f8943a1 --- /dev/null +++ b/bin/ngreload @@ -0,0 +1,3 @@ +#!/bin/sh + +docker exec server_router_1 nginx -s reload -- cgit v1.2.3