No need to set docker hostname for simple file operations

This commit is contained in:
Disassembler 2018-01-24 15:55:47 +01:00
parent f57dc0a0eb
commit 857cb131d5
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
5 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
# Copy existing config files into persistent storage # Copy existing config files into persistent storage
mkdir -p /srv/crisiscleanup/conf mkdir -p /srv/crisiscleanup/conf
chown 8005:8005 /srv/crisiscleanup/conf chown 8005:8005 /srv/crisiscleanup/conf
docker run --rm -h crisiscleanup -v /srv/crisiscleanup/conf:/mnt/conf crisiscleanup cp -rp /srv/crisiscleanup/config/. /mnt/conf docker run --rm -v /srv/crisiscleanup/conf:/mnt/conf crisiscleanup cp -rp /srv/crisiscleanup/config/. /mnt/conf
chown root:root /srv/crisiscleanup/conf chown root:root /srv/crisiscleanup/conf
# Configure CrisisCleanup # Configure CrisisCleanup

2
cts.sh
View File

@ -15,7 +15,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
# Copy existing config files into persistent storage # Copy existing config files into persistent storage
mkdir -p /srv/cts/conf mkdir -p /srv/cts/conf
chown 8006:8006 /srv/cts/conf chown 8006:8006 /srv/cts/conf
docker run --rm -h cts -v /srv/cts/conf:/mnt/conf cts cp -rp /srv/cts/cts/settings/. /mnt/conf docker run --rm -v /srv/cts/conf:/mnt/conf cts cp -rp /srv/cts/cts/settings/. /mnt/conf
chown -R root:root /srv/cts/conf chown -R root:root /srv/cts/conf
# Configure CTS # Configure CTS

View File

@ -13,7 +13,7 @@ export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64)
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i mariadb mysql envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i mariadb mysql
# Populate database # Populate database
docker run --rm -h mifosx mifosx cat /tmp/mifospltaform-tenants-first-time-install.sql | docker exec -i mariadb mysql mifosplatform-tenants docker run --rm mifosx cat /tmp/mifospltaform-tenants-first-time-install.sql | docker exec -i mariadb mysql mifosplatform-tenants
envsubst <${SOURCE_DIR}/schemapwd.sql | docker exec -i mariadb mysql mifosplatform-tenants envsubst <${SOURCE_DIR}/schemapwd.sql | docker exec -i mariadb mysql mifosplatform-tenants
# Configure Mifos X # Configure Mifos X

View File

@ -8,7 +8,7 @@ docker build -t postfix ${SOURCE_DIR}
# Copy existing config files into persistent storage # Copy existing config files into persistent storage
mkdir -p /srv/postfix/conf /srv/postfix/data mkdir -p /srv/postfix/conf /srv/postfix/data
chown -R 587:587 /srv/postfix/data chown -R 587:587 /srv/postfix/data
docker run --rm -h postfix -v /srv/postfix/conf:/mnt/conf postfix cp -rp /etc/postfix/. /mnt/conf docker run --rm -v /srv/postfix/conf:/mnt/conf postfix cp -rp /etc/postfix/. /mnt/conf
# Configure postfix # Configure postfix
cp ${SOURCE_DIR}/srv/postfix/conf/main.cf /srv/postfix/conf/main.cf cp ${SOURCE_DIR}/srv/postfix/conf/main.cf /srv/postfix/conf/main.cf

View File

@ -11,12 +11,12 @@ docker build -t seeddms ${SOURCE_DIR}
# Populate database # Populate database
export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64) export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64)
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
docker run --rm -h seeddms seeddms cat /srv/seeddms/create_tables-postgres.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms docker run --rm seeddms cat /srv/seeddms/create_tables-postgres.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms
# Copy existing files into persistent storage # Copy existing files into persistent storage
mkdir -p /srv/seeddms/conf /srv/seeddms/data mkdir -p /srv/seeddms/conf /srv/seeddms/data
docker run --rm -h seeddms -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/www/conf/. /mnt/conf docker run --rm -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/www/conf/. /mnt/conf
docker run --rm -h seeddms -v /srv/seeddms/data:/mnt/conf seeddms cp -rp /srv/seeddms/data/. /mnt/conf docker run --rm -v /srv/seeddms/data:/mnt/conf seeddms cp -rp /srv/seeddms/data/. /mnt/conf
chown -R 8010:8010 /srv/seeddms/data chown -R 8010:8010 /srv/seeddms/data
# Configure SeedDMS # Configure SeedDMS