Fix UI docker-compose files
This updates a couple docker-compose files to work with UI development.
This updates the splinter example docker-compose file and the grid-ui
docker-compose file. This is necessary for these to work with the
updated file structure.
image: pike-contract-builder
container_name: pike-contract-builder
build:
- context: ../..
+ context: ../../..
dockerfile: contracts/pike/Dockerfile
args:
- REPO_VERSION=${REPO_VERSION}
image: product-contract-builder
container_name: product-contract-builder
build:
- context: ../..
+ context: ../../..
dockerfile: contracts/product/Dockerfile
args:
- REPO_VERSION=${REPO_VERSION}
image: schema-contract-builder
container_name: schema-contract-builder
build:
- context: ../..
+ context: ../../..
dockerfile: contracts/schema/Dockerfile
args:
- REPO_VERSION=${REPO_VERSION}
cp /tmp/grid-schema*.scar /usr/share/scar
"
- tnt-contract-builder:
- image: tnt-contract-builder
- container_name: tnt-contract-builder
- build:
- context: ../..
- dockerfile: contracts/track_and_trace/Dockerfile
- args:
- - REPO_VERSION=${REPO_VERSION}
- volumes:
- - contracts:/usr/share/scar
- entrypoint: |
- bash -c "
- cp /tmp/grid-track-and-trace*.scar /usr/share/scar
- "
-
grid-db:
image: postgres
container_name: grid-db
container_name: gridd
hostname: gridd
build:
- context: ../..
+ context: ../../..
dockerfile: daemon/Dockerfile
args:
- REPO_VERSION=${REPO_VERSION}
grid-ui:
build:
- context: ..
+ context: ../../..
+ dockerfile: ui/Dockerfile
args:
REPO_VERSION: ${REPO_VERSION}
REACT_APP_SPLINTER_URL: '/splinterd'
sapling-dev-server:
build:
- context: ../..
- dockerfile: grid-ui/sapling-dev-server/Dockerfile
+ context: ../../..
+ dockerfile: ui/sapling-dev-server/Dockerfile
container_name: sapling-dev-server
expose:
- 80
