No need to set docker hostname for simple file operations
This commit is contained in:
parent
f57dc0a0eb
commit
857cb131d5
@ -15,7 +15,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
|
||||
# Copy existing config files into persistent storage
|
||||
mkdir -p /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
|
||||
|
||||
# Configure CrisisCleanup
|
||||
|
2
cts.sh
2
cts.sh
@ -15,7 +15,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
|
||||
# Copy existing config files into persistent storage
|
||||
mkdir -p /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
|
||||
|
||||
# Configure CTS
|
||||
|
@ -13,7 +13,7 @@ export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i mariadb mysql
|
||||
|
||||
# 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
|
||||
|
||||
# Configure Mifos X
|
||||
|
@ -8,7 +8,7 @@ docker build -t postfix ${SOURCE_DIR}
|
||||
# Copy existing config files into persistent storage
|
||||
mkdir -p /srv/postfix/conf /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
|
||||
cp ${SOURCE_DIR}/srv/postfix/conf/main.cf /srv/postfix/conf/main.cf
|
||||
|
@ -11,12 +11,12 @@ docker build -t seeddms ${SOURCE_DIR}
|
||||
# Populate database
|
||||
export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
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
|
||||
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 -h seeddms -v /srv/seeddms/data:/mnt/conf seeddms cp -rp /srv/seeddms/data/. /mnt/conf
|
||||
docker run --rm -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/www/conf/. /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
|
||||
|
||||
# Configure SeedDMS
|
||||
|
Loading…
Reference in New Issue
Block a user