Add a service for uniswap app deployment to urbit
This commit is contained in:
parent
77c911c03b
commit
156e3611a0
@ -19,5 +19,20 @@ services:
|
||||
retries: 15
|
||||
start_period: 5s
|
||||
|
||||
uniswap-urbit-deployment:
|
||||
image: cerc/uniswap-urbit-deployment:local
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
uniswap-interface:
|
||||
condition: service_completed_successfully
|
||||
# environment:
|
||||
# - REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
|
||||
command: ["./deploy-to-urbit.sh"]
|
||||
volumes:
|
||||
- uniswap_build:/app/build
|
||||
- pier_data: /app/pier
|
||||
- ../config/uniswap-frontend/deploy-to-urbit.sh:/app/deploy-to-urbit.sh
|
||||
|
||||
volumes:
|
||||
uniswap_build:
|
||||
pier_data:
|
||||
|
@ -5,6 +5,8 @@ services:
|
||||
restart: unless-stopped
|
||||
image: tloncorp/vere
|
||||
entrypoint: ["bash", "-c", "urbit -t -F zod"]
|
||||
volumes:
|
||||
- pier_data:/urbit/zod/
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "12321:12321"
|
||||
@ -15,5 +17,5 @@ services:
|
||||
retries: 15
|
||||
start_period: 10s
|
||||
|
||||
# volumes:
|
||||
# pier:
|
||||
volumes:
|
||||
pier_data:
|
||||
|
@ -8,7 +8,7 @@ fi
|
||||
yarn build
|
||||
|
||||
# Create symlink to host built files with correct URL path
|
||||
mkdir -p /app/urbit/apps
|
||||
ln -s /app/build /app/urbit/apps/uniswap
|
||||
# mkdir -p /app/urbit/apps
|
||||
# ln -s /app/build /app/urbit/apps/uniswap
|
||||
|
||||
node_modules/.bin/serve urbit -s -l 3000
|
||||
# node_modules/.bin/serve urbit -s -l 3000
|
||||
|
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
tail -f /dev/null
|
||||
|
||||
# TODO:
|
||||
# Take urbit endpoint from env
|
||||
# Check if urbit endpoint is up
|
||||
# Fire curl requests to create/mount a uniswap desk
|
||||
# Copy over build to desk data dir
|
@ -0,0 +1,7 @@
|
||||
FROM python:3.13.0a2-alpine3.18
|
||||
|
||||
RUN apk --update --no-cache add alpine-sdk jq bash curl wget
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT [ "bash" ]
|
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build the uniswap-urbit-deployment image
|
||||
|
||||
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}
|
@ -26,6 +26,7 @@ laconic-so --stack uniswap-frontend build-containers
|
||||
## Create a deployment
|
||||
|
||||
First, create a spec file for the deployment, which will map the stack's ports and volumes to the host:
|
||||
|
||||
```bash
|
||||
laconic-so --stack uniswap-frontend deploy init --output uniswap-frontend-spec.yml
|
||||
```
|
||||
|
@ -6,6 +6,7 @@ repos:
|
||||
- github.com/cerc-io/uniswap-interface@pm-urbit-hosting
|
||||
containers:
|
||||
- cerc/uniswap-interface
|
||||
- cerc/uniswap-urbit-deployment
|
||||
# TODO: Add container for urbit
|
||||
pods:
|
||||
- uniswap-interface
|
||||
|
Loading…
Reference in New Issue
Block a user