Add a stack for running uniswap frontend on urbit #670

Merged
nikugogoi merged 25 commits from ng-uniswap-frontend into main 2023-12-04 13:09:20 +00:00
5 changed files with 24 additions and 6 deletions
Showing only changes of commit 92c86b2cf4 - Show all commits

View File

@ -30,9 +30,9 @@ services:
command: ["./deploy-to-urbit.sh"]
volumes:
- uniswap_build:/app/build
- pier_data: /app/pier
- urbit_data:/urbit
- ../config/uniswap-frontend/deploy-to-urbit.sh:/app/deploy-to-urbit.sh
volumes:
uniswap_build:
pier_data:
urbit_data:

View File

@ -4,9 +4,10 @@ services:
urbit-fake-ship:
restart: unless-stopped
image: tloncorp/vere
entrypoint: ["bash", "-c", "urbit -t -F zod"]
entrypoint: ["bash", "-c", "./run-urbit-ship.sh"]
volumes:
- pier_data:/urbit/zod/
- urbit_data:/urbit
- ../config/uniswap-frontend/run-urbit-ship.sh:/urbit/run-urbit-ship.sh
ports:
- "8080:80"
- "12321:12321"
@ -18,4 +19,4 @@ services:
start_period: 10s
volumes:
pier_data:
urbit_data:

View File

View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
pier_dir="/urbit/zod"
# Check if the directory exists
if [ -d "$pier_dir" ]; then
echo "Pier directory already exists, rebooting..."
urbit -t zod
else
echo "Creating a new fake ship..."
urbit -t -F zod
fi

View File

@ -6,4 +6,4 @@ source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
# See: https://stackoverflow.com/a/246128/1701505
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build -t cerc/uniswap-urbit-deployment:local -f ${SCRIPT_DIR}/Dockerfile ${build_command_args}
docker build -t cerc/uniswap-urbit-deployment:local -f ${SCRIPT_DIR}/Dockerfile ${build_command_args} ${SCRIPT_DIR}