Skip to content

Commit

Permalink
chore: bring back env
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnburton committed Feb 15, 2024
1 parent 1c1d11d commit 1aea9f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 161 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ localnet/.setup_complete

# docker-compose is generated dynamically
localnet/init/polkadot/docker-compose.yml
./docker-compose.yaml

# Logs and test artifacts
**/*.log
Expand Down Expand Up @@ -50,4 +49,3 @@ tfplan

*rustc-ice*

localnet/docker-compose.yml
152 changes: 0 additions & 152 deletions localnet/docker-compose.template.yml

This file was deleted.

10 changes: 3 additions & 7 deletions localnet/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ source ./localnet/helper.sh
mkdir -p /tmp/chainflip/
touch /tmp/chainflip/debug.log

if [ ! -f ./localnet/docker-compose.yml ]; then
NODE_COUNT=1-node envsubst < ./localnet/docker-compose.template.yml > ./localnet/docker-compose.yml
fi

set -eo pipefail

if [[ $CI == true ]]; then
Expand Down Expand Up @@ -74,7 +70,7 @@ get-workflow() {
exit 1
fi
echo "You have chosen $NODE_COUNT node(s) network"
NODE_COUNT="$NODE_COUNT-node"
export NODE_COUNT="$NODE_COUNT-node"

if [[ -z "${BINARY_ROOT_PATH}" ]]; then
echo "💻 Please provide the location to the binaries you would like to use."
Expand Down Expand Up @@ -103,8 +99,6 @@ build-localnet() {
exit 1
fi
done
echo "🪄 Generating docker-compose.yml"
envsubst < ./localnet/docker-compose.template.yml > ./localnet/docker-compose.yml

mkdir -p /tmp/chainflip/
touch /tmp/chainflip/debug.log
Expand All @@ -114,8 +108,10 @@ build-localnet() {
echo "🦺 Updating init state files permissions ..."
if [[ $CI == true ]]; then
sudo chmod -R 777 /tmp/chainflip
sudo chmod -R 777 /tmp/solana
else
chmod -R 777 /tmp/chainflip
chmod -R 777 /tmp/solana
fi
echo "🏗 Building network"
docker compose -f localnet/docker-compose.yml -p "chainflip-localnet" up $CORE_CONTAINERS -d $additional_docker_compose_up_args >>$DEBUG_OUTPUT_DESTINATION 2>&1
Expand Down

0 comments on commit 1aea9f9

Please sign in to comment.