-
Notifications
You must be signed in to change notification settings - Fork 4
Feat/docker compose and docs #101
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c9e6dce
chore: stash dockerfile progress
coodos aaf4434
fix: getEnvelopesByOntology thing
coodos 2737b21
chore: fix tests
coodos 5c7599f
Update infrastructure/evault-core/src/protocol/vault-access-guard.ts
coodos 3a77290
chore: remove unused import
coodos b9debe6
chore: remove package
coodos 05782ee
chore: fix pnpm lock
coodos d402107
Merge branch 'feat/docker-compose-and-docs' of github.com:MetaState-P…
coodos 298a0e6
chore: fix workflow
coodos 6484f20
chore: fix port in dockerfile
coodos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,39 @@ | ||
|
||
# Node cruft | ||
node_modules | ||
.pnpm | ||
dist | ||
build | ||
.cache | ||
turbo | ||
out | ||
|
||
# Dependency locks from other ecosystems | ||
package-lock.json | ||
yarn.lock | ||
|
||
# Logs & temp | ||
*.log | ||
*.tsbuildinfo | ||
.vscode | ||
.idea | ||
.env | ||
.env.* | ||
|
||
# OS junk | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Local-only files | ||
coverage | ||
*.local.* | ||
*.swp | ||
*.swo | ||
|
||
# Git stuff | ||
.git | ||
.gitignore | ||
|
||
# Prevent docker context pollution from other packages in monorepo | ||
apps/*/node_modules | ||
packages/*/node_modules |
This file contains hidden or 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,7 @@ | ||
# Neo4j Configuration | ||
NEO4J_URI=bolt://neo4j:7687 | ||
NEO4J_USER=neo4j | ||
NEO4J_PASSWORD=your_secure_password_here | ||
|
||
# eVault Configuration | ||
PORT=4000 |
This file contains hidden or 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 hidden or 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,23 @@ | ||
FROM node:22-slim AS deps | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
COPY . /app | ||
WORKDIR /app | ||
RUN npm i -g corepack@latest | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm turbo prune evault-core --docker --use-gitignore=false | ||
RUN mkdir /out | ||
RUN cp -R ./out/full/* /out/ | ||
RUN cp -R ./out/json/* /out/ | ||
RUN cp ./out/pnpm-lock.yaml /out/pnpm-lock.yaml | ||
RUN cp -R node_modules/ /out/ | ||
|
||
|
||
FROM node:22-slim AS core-api | ||
WORKDIR /app | ||
RUN npm i -g corepack@latest | ||
COPY --from=deps /out/ /app | ||
EXPOSE 1209 | ||
workdir /app/infrastructure/evault-core | ||
CMD ["pnpm", "dev"] | ||
coodos marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,50 @@ | ||
version: '3.8' | ||
|
||
services: | ||
evault: | ||
build: | ||
context: . | ||
dockerfile: ./docker/Dockerfile.evault | ||
ports: | ||
- "4000:4000" | ||
environment: | ||
- NEO4J_URI=${NEO4J_URI} | ||
- NEO4J_USER=${NEO4J_USER} | ||
- NEO4J_PASSWORD=${NEO4J_PASSWORD} | ||
networks: | ||
- graphnet | ||
depends_on: | ||
- neo4j | ||
coodos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
develop: | ||
watch: | ||
- action: sync+restart | ||
path: ./infrastructure/evault-core/ | ||
target: /app/infrastructure/evault-core | ||
ignore: | ||
- node_modules | ||
- action: rebuild | ||
path: ./infrastructure/evault-core/package.json | ||
- action: rebuild | ||
path: ./.env | ||
|
||
neo4j: | ||
image: neo4j:5.15 | ||
container_name: evault-neo4j | ||
ports: | ||
- "7474:7474" # HTTP | ||
- "7687:7687" # Bolt | ||
environment: | ||
- NEO4J_AUTH=${NEO4J_USER}/${NEO4J_PASSWORD} | ||
volumes: | ||
- neo4j_data:/data | ||
- neo4j_logs:/log | ||
networks: | ||
- graphnet | ||
|
||
volumes: | ||
neo4j_data: | ||
neo4j_logs: | ||
|
||
networks: | ||
graphnet: | ||
driver: bridge |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,32 +1,35 @@ | ||
{ | ||
"name": "evault-core", | ||
"version": "0.1.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "vitest --config vitest.config.ts" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@types/json-schema": "^7.0.15", | ||
"@types/node": "^22.13.10", | ||
"dotenv": "^16.5.0", | ||
"testcontainers": "^10.24.2", | ||
"tsx": "^4.19.3", | ||
"typescript": "^5.8.3", | ||
"uuid": "^11.1.0", | ||
"vitest": "^3.0.9" | ||
}, | ||
"dependencies": { | ||
"@testcontainers/neo4j": "^10.24.2", | ||
"graphql": "^16.10.0", | ||
"graphql-type-json": "^0.3.2", | ||
"graphql-voyager": "^2.1.0", | ||
"graphql-yoga": "^5.13.4", | ||
"json-schema": "^0.4.0", | ||
"neo4j-driver": "^5.28.1", | ||
"w3id": "workspace:*" | ||
} | ||
"name": "evault-core", | ||
"version": "0.1.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "vitest --config vitest.config.ts", | ||
"build": "tsc", | ||
"dev": "node --watch --import tsx src/evault.ts" | ||
}, | ||
"packageManager": "[email protected]", | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@types/json-schema": "^7.0.15", | ||
"@types/node": "^22.13.10", | ||
"dotenv": "^16.5.0", | ||
"testcontainers": "^10.24.2", | ||
"tsx": "^4.19.3", | ||
"typescript": "^5.8.3", | ||
"uuid": "^11.1.0", | ||
"vitest": "^3.0.9" | ||
}, | ||
"dependencies": { | ||
"@testcontainers/neo4j": "^10.24.2", | ||
"graphql": "^16.10.0", | ||
"graphql-type-json": "^0.3.2", | ||
"graphql-voyager": "^2.1.0", | ||
"graphql-yoga": "^5.13.4", | ||
"json-schema": "^0.4.0", | ||
"neo4j-driver": "^5.28.1", | ||
"w3id": "workspace:*" | ||
} | ||
} |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.