Add stack for building uniswap frontend app
This commit is contained in:
parent
fc2a1445ea
commit
e935cf011c
@ -0,0 +1,23 @@
|
|||||||
|
version: "3.2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
uniswap-interface:
|
||||||
|
image: cerc/uniswap-interface:local
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
|
||||||
|
command: ["./build.sh"]
|
||||||
|
volumes:
|
||||||
|
- uniswap_build:/app/build
|
||||||
|
- ../config/uniswap-frontend/build.sh:/app/build.sh
|
||||||
|
ports:
|
||||||
|
- "3000"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "nc", "-vz", "localhost", "3000"]
|
||||||
|
interval: 20s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 15
|
||||||
|
start_period: 5s
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
uniswap_build:
|
14
stack_orchestrator/data/config/uniswap-frontend/build.sh
Executable file
14
stack_orchestrator/data/config/uniswap-frontend/build.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
|
yarn build
|
||||||
|
|
||||||
|
# Create symlink to host built files with correct URL path
|
||||||
|
mkdir ./urbit/apps
|
||||||
|
ln -s ./build/ ./urbit/apps/uniswap
|
||||||
|
|
||||||
|
yarn serve build -s -l 3000
|
@ -0,0 +1,10 @@
|
|||||||
|
FROM node:18.17.1-alpine3.18
|
||||||
|
|
||||||
|
RUN apk --update --no-cache add git make alpine-sdk bash
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN echo "Building uniswap-interface" && \
|
||||||
|
yarn
|
8
stack_orchestrator/data/container-build/cerc-uniswap-interface/build.sh
Executable file
8
stack_orchestrator/data/container-build/cerc-uniswap-interface/build.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build the uniswap-interface 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-interface:local -f ${SCRIPT_DIR}/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/uniswap-interface
|
@ -59,3 +59,4 @@ cerc/ponder
|
|||||||
cerc/nitro-rpc-client
|
cerc/nitro-rpc-client
|
||||||
cerc/watcher-merkl-sushiswap-v3
|
cerc/watcher-merkl-sushiswap-v3
|
||||||
cerc/watcher-sushiswap-v3
|
cerc/watcher-sushiswap-v3
|
||||||
|
cerc/uniswap-interface
|
||||||
|
@ -49,3 +49,4 @@ github.com/cerc-io/mobymask-snap
|
|||||||
github.com/cerc-io/ponder
|
github.com/cerc-io/ponder
|
||||||
github.com/cerc-io/merkl-sushiswap-v3-watcher-ts
|
github.com/cerc-io/merkl-sushiswap-v3-watcher-ts
|
||||||
github.com/cerc-io/sushiswap-v3-watcher-ts
|
github.com/cerc-io/sushiswap-v3-watcher-ts
|
||||||
|
github.com/cerc-io/uniswap-interface
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
version: "0.1"
|
version: "0.1"
|
||||||
name: urbit-frontend
|
name: urbit-frontend
|
||||||
repos:
|
repos:
|
||||||
# Uniswap frontend
|
# Uniswap interface
|
||||||
- github.com/cerc-io/uniswap-interface
|
# TODO: Use release
|
||||||
|
- github.com/cerc-io/uniswap-interface@pm-urbit-hosting
|
||||||
containers:
|
containers:
|
||||||
- cerc/uniswap-interface
|
- cerc/uniswap-interface
|
||||||
# TODO: Add container foi urbit
|
# TODO: Add container for urbit
|
||||||
# pods:
|
pods:
|
||||||
# TODO: Add compose file and pods
|
- uniswap-interface
|
||||||
|
# TODO: Add pod for urbit
|
||||||
|
Loading…
Reference in New Issue
Block a user