diff --git a/stack_orchestrator/data/compose/docker-compose-fixturenet-laconicd.yml b/stack_orchestrator/data/compose/docker-compose-fixturenet-laconicd.yml index 7b48f60d..f769c8c4 100644 --- a/stack_orchestrator/data/compose/docker-compose-fixturenet-laconicd.yml +++ b/stack_orchestrator/data/compose/docker-compose-fixturenet-laconicd.yml @@ -2,7 +2,7 @@ services: laconicd: restart: unless-stopped image: cerc/laconicd:local - command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"] + entrypoint: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"] volumes: # The cosmos-sdk node's database directory: - laconicd-data:/root/.laconicd @@ -15,12 +15,12 @@ services: - "6060" - "26657" - "26656" - - "9473" + - "9473:9473" - "8545" - "8546" - "9090" - "9091" - - "1317" + - "1317:1317" cli: image: cerc/laconic-registry-cli:local volumes: diff --git a/stack_orchestrator/data/compose/docker-compose-geojson.yml b/stack_orchestrator/data/compose/docker-compose-geojson.yml new file mode 100644 index 00000000..edbce9bd --- /dev/null +++ b/stack_orchestrator/data/compose/docker-compose-geojson.yml @@ -0,0 +1,8 @@ +version: "3.2" + +services: + geojson: + image: cerc/geojson:local + restart: always + ports: + - 0.0.0.0:8080:8080 diff --git a/stack_orchestrator/data/container-build/cerc-birbit/build.sh b/stack_orchestrator/data/container-build/cerc-birbit/build.sh new file mode 100755 index 00000000..c9047da4 --- /dev/null +++ b/stack_orchestrator/data/container-build/cerc-birbit/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build the birbit image +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/birbit:local -f ${CERC_REPO_BASE_DIR}/birbit/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/birbit diff --git a/stack_orchestrator/data/container-build/cerc-geojson/Dockerfile b/stack_orchestrator/data/container-build/cerc-geojson/Dockerfile new file mode 100644 index 00000000..3dd1d1f5 --- /dev/null +++ b/stack_orchestrator/data/container-build/cerc-geojson/Dockerfile @@ -0,0 +1,11 @@ +FROM node:14 + +WORKDIR /app + +COPY . . + +RUN npm install && npm run build + +EXPOSE 8080 + +CMD ["npm", "run", "serve"] diff --git a/stack_orchestrator/data/container-build/cerc-geojson/build.sh b/stack_orchestrator/data/container-build/cerc-geojson/build.sh new file mode 100755 index 00000000..1aa7df3d --- /dev/null +++ b/stack_orchestrator/data/container-build/cerc-geojson/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Build the geojson image +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/geojson:local -f ${CERC_CONTAINER_BASE_DIR}/cerc-geojson/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/geojson.io +#docker build -t cerc/geojson:local -f ${CERC_REPO_BASE_DIR}/geojson.io/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/geojson.io diff --git a/stack_orchestrator/data/stacks/birbit/README.md b/stack_orchestrator/data/stacks/birbit/README.md new file mode 100644 index 00000000..0ade4f4f --- /dev/null +++ b/stack_orchestrator/data/stacks/birbit/README.md @@ -0,0 +1,3 @@ +# birbit + +takes geo-tagged images, publishes the metadata on chain, then generates a geojson front end of that geo data diff --git a/stack_orchestrator/data/stacks/birbit/stack.yml b/stack_orchestrator/data/stacks/birbit/stack.yml new file mode 100644 index 00000000..5a4f953f --- /dev/null +++ b/stack_orchestrator/data/stacks/birbit/stack.yml @@ -0,0 +1,19 @@ +version: "0.1" +name: birbit +repos: + #- github.com/zramsay/birbit + - github.com/mapbox/geojson.io +containers: + #- cerc/birbit + - cerc/geojson +pods: + # configurable process that reads from chain and generates a view for the front end + # for MVP is basically does nothing, b/c FE view is reading all records + # imagine a 'watcher' for a specific view + #- birbit + # front end, gets its file from kubo; + # https://github.com/mapbox/geojson.io/blob/main/API.md#datadatatextx-url + # deployed via kubernetes + - geojson + # hosts all the dot geojson files that are required to generated views + - kubo