-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccfaf0d
commit dd116d9
Showing
21 changed files
with
182 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
FROM node:16-alpine | ||
FROM node:18-alpine | ||
RUN apk add --no-cache git | ||
RUN npm install -g solc | ||
|
||
WORKDIR /app | ||
## Warning! This Docker config is meant to be used for development and debugging, not in prod. | ||
|
||
RUN apk add --virtual .build-deps git python g++ bash make | ||
WORKDIR /base | ||
|
||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
RUN yarn | ||
RUN yarn install | ||
|
||
COPY . . | ||
RUN yarn | ||
RUN yarn install | ||
RUN yarn clean | ||
RUN yarn build | ||
|
||
RUN apk del .build-deps | ||
# Port configuration | ||
ENV PORT 3000 | ||
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:18-alpine | ||
RUN apk add --no-cache git | ||
|
||
WORKDIR /base/storage-subgraph | ||
|
||
RUN git clone https://github.com/RequestNetwork/storage-subgraph /base/storage-subgraph | ||
RUN npm -g install @graphprotocol/graph-cli | ||
RUN yarn | ||
RUN yarn codegen subgraph-private.yaml | ||
|
||
#CMD yarn create-local ; yarn deploy-local ./subgraph-private.yaml | ||
|
||
CMD graph create --node http://graph-node:8020/ RequestNetwork/request-storage && graph deploy --node http://graph-node:8020/ --ipfs http://ipfs:5001 --version-label $(git rev-parse --short HEAD) RequestNetwork/request-storage ./subgraph-private.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Warning! This Docker config is meant to be used for development and debugging, specially for running tests, not in prod. | ||
services: | ||
graph-node: | ||
image: graphprotocol/graph-node:v0.25.0 | ||
ports: | ||
- '8000:8000' | ||
- '8001:8001' | ||
- '8020:8020' | ||
- '8030:8030' | ||
- '8040:8040' | ||
depends_on: | ||
- ipfs | ||
- postgres | ||
- ganache | ||
environment: | ||
postgres_host: postgres | ||
postgres_user: graph-node | ||
postgres_pass: let-me-in | ||
postgres_db: graph-node | ||
ipfs: 'ipfs:5001' | ||
ethereum: 'private:http://ganache:8545' | ||
RUST_LOG: info | ||
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: 1 | ||
ipfs: | ||
image: requestnetwork/request-ipfs:v0.13.0 | ||
ports: | ||
- '5001:5001' | ||
restart: on-failure:20 | ||
# volumes: | ||
# - ./data/ipfs:/data/ipfs | ||
ganache: | ||
image: trufflesuite/ganache:v7.6.0 | ||
ports: | ||
- 8545:8545 | ||
command: | ||
- '-l' | ||
- '90000000' | ||
- '-m' | ||
- 'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat' | ||
- '-k' | ||
- 'london' | ||
restart: on-failure:20 | ||
postgres: | ||
image: postgres | ||
ports: | ||
- '5432:5432' | ||
command: ['postgres', '-cshared_preload_libraries=pg_stat_statements'] | ||
environment: | ||
POSTGRES_USER: graph-node | ||
POSTGRES_PASSWORD: let-me-in | ||
POSTGRES_DB: graph-node | ||
restart: on-failure:20 | ||
graph-deploy: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.graph-deploy | ||
depends_on: | ||
- ipfs | ||
- postgres | ||
- graph-node | ||
- ganache | ||
restart: on-failure:20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": ["build", "test"] | ||
} | ||
} | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": ["^build"] | ||
}, | ||
"test": { | ||
"dependsOn": ["build"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
describe('the test', () => { | ||
it('should pass', () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
Oops, something went wrong.