Sha256: 7f3b78518f0b06e9143b693884334e88eff702d1c68e2497688a4ba7ba6db1f8
Contents?: true
Size: 1.96 KB
Versions: 2
Compression:
Stored size: 1.96 KB
Contents
# create bexng file-based config mkdir -p /etc/bexng echo "${DOMAIN}" > /etc/bexng/name cat >"/etc/bexng/secrets.exs" <<EOF [ authy_url: "${AUTHY_URL}", authy_key: "${AUTHY_KEY}", identitymind_url: "${IDENTITYMIND_URL}", identitymind_id: "${IDENTITYMIND_ID}", identitymind_secret: "${IDENTITYMIND_SECRET}", mandrill: "${MANDRILL_KEY}", admin: "${BEXNG_DEFAULT_ADMIN_EMAIL}", admin_password: "${BEXNG_DEFAULT_ADMIN_PASSWORD}", coin_networks: [:"${WALLET_NETWORK}"], wallets: [ {"${WALLET_NAME}", [ network: "${WALLET_NETWORK}", private_key: "${WALLET_PRIVATE_KEY}", public_key: "${WALLET_PUBLIC_KEY}", chain_code: "${WALLET_CHAIN_CODE}" ]} ] ] EOF cat >/usr/local/sbin/bexng-before-start <<EOF docker pull bexio/postgresql:latest && \ docker run --rm \ \$(docker-utils container-links-for -w 'postgresql') \ -e "DB_ADMIN_USERNAME=\${DB_ADMIN_USERNAME}" \ -e "DB_ADMIN_PASSWORD=\${DB_ADMIN_PASSWORD}" \ 'bexio/postgresql:latest' \ db:create 'bexng' "\${BEXNG_DB_SECRET}" EOF chmod a+x /usr/local/sbin/bexng-before-start echo "starting docker operations" docker-utils bootstrap if [ "${WALLET_NETWORK}" = "testnet3" ]; then docker run --name='bitcoind-data' --volumes-from='tbtc-data' tianon/true:latest else docker run --name='bitcoind-data' --volumes-from='btc-data' tianon/true:latest fi docker-utils define-ambassador-service "postgresql" \ "${DB_HOST}" "${DB_PORT}" docker-utils define-service "bexio/bitcoind" \ -e "NETWORK=${WALLET_NETWORK}" docker-utils define-service "bexio/bexng" \ --dependency "bitcoind" \ --dependency "postgresql" \ --before-start "$(cat /usr/local/sbin/bexng-before-start)" \ --volume "/etc/bexng:/target" \ --publish="51607:51607" \ -e "DB_SECRET=${BEXNG_DB_SECRET}" docker-utils define-service "bexio/bexng-frontend" \ --dependency "bexng" \ --publish="80:8080" echo "starting docker-container services..." start bitcoind start postgresql start bexng start bexng-frontend
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stacco-0.1.38 | ./priv/roles/Backend.sh |
stacco-0.1.37 | ./priv/roles/Backend.sh |