diff --git a/instagoric-server/.dockerignore b/instagoric-server/.dockerignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/instagoric-server/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/bases/shared/instagoric-server/.gitignore b/instagoric-server/.gitignore similarity index 100% rename from bases/shared/instagoric-server/.gitignore rename to instagoric-server/.gitignore diff --git a/instagoric-server/Dockerfile b/instagoric-server/Dockerfile new file mode 100644 index 0000000..d638c3c --- /dev/null +++ b/instagoric-server/Dockerfile @@ -0,0 +1,9 @@ +FROM ghcr.io/agoric/agoric-sdk:latest + +ENV PATH="/usr/src/agoric-sdk/bin:${PATH}" + +WORKDIR /usr/instagoric-server +COPY . . +RUN yarn install +EXPOSE 8001 8002 8003 + diff --git a/bases/shared/instagoric-server/README.md b/instagoric-server/README.md similarity index 100% rename from bases/shared/instagoric-server/README.md rename to instagoric-server/README.md diff --git a/instagoric-server/docker-compose.yml b/instagoric-server/docker-compose.yml new file mode 100644 index 0000000..f21b8f2 --- /dev/null +++ b/instagoric-server/docker-compose.yml @@ -0,0 +1,33 @@ +services: + instagoric-server: + build: + context: . + dockerfile: Dockerfile + ports: + - 8001:8001 + - 8002:8002 + - 8003:8003 + environment: + - AGORIC_HOME=~/.agoric + - CHAIN_ID=agoriclocal + - FAKE=true + - BASE_AMOUNT=25000000 + - CLUSTER_NAME + - CLIENT_AMOUNT=${CLIENT_AMOUNT:-25000000uist,25000000ibc/toyusdc} + - DELEGATE_AMOUNT=${DELEGATE_AMOUNT:-75000000ubld,25000000ibc/toyatom,25000000ibc/toyellie,25000000ibc/toyusdc,25000000ibc/toyollie} + - DOCKERTAG + - DOCKERIMAGE + - FAUCET_KEYNAME + - NETNAME + - NETDOMAIN + - AG0_MODE + - POD_NAME + - INCLUDE_SEED + - NODE_ID + - RPC_PORT + - NAMESPACE + volumes: + - .:/usr/instagoric-server + entrypoint: ['/bin/bash', '-c'] + command: > + 'yarn start' \ No newline at end of file diff --git a/bases/shared/instagoric-server/lockdown.js b/instagoric-server/lockdown.js similarity index 100% rename from bases/shared/instagoric-server/lockdown.js rename to instagoric-server/lockdown.js diff --git a/bases/shared/instagoric-server/package.json b/instagoric-server/package.json similarity index 100% rename from bases/shared/instagoric-server/package.json rename to instagoric-server/package.json diff --git a/bases/shared/instagoric-server/server.js b/instagoric-server/server.js similarity index 100% rename from bases/shared/instagoric-server/server.js rename to instagoric-server/server.js diff --git a/bases/shared/instagoric-server/yarn.lock b/instagoric-server/yarn.lock similarity index 100% rename from bases/shared/instagoric-server/yarn.lock rename to instagoric-server/yarn.lock