Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerize instagoric-server #75

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions instagoric-server/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
File renamed without changes.
9 changes: 9 additions & 0 deletions instagoric-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

File renamed without changes.
33 changes: 33 additions & 0 deletions instagoric-server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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'
File renamed without changes.
File renamed without changes.