-
-
Notifications
You must be signed in to change notification settings - Fork 60
Personal ledger #1766
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
Personal ledger #1766
Changes from 9 commits
e13dbb9
aacb7d0
0c72958
2553763
63ace03
fd45497
928c65d
993d5ad
66844b7
2ff0ca4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| version: 2 | ||
| services: | ||
| gateway: | ||
| git_url: https://github.com/Frame-Payments/ledger.git | ||
| git_branch: main | ||
| dockerfile_path: ./Dockerfile | ||
| ports: | ||
| - container: 80 | ||
| http: 80 | ||
| - container: 443 | ||
| https: 443 | ||
| volumes: | ||
| - .local/gateway/Caddyfile:/etc/caddy/Caddyfile | ||
| type: daemon_set | ||
|
|
||
| ledger: | ||
| git_url: https://github.com/Frame-Payments/ledger.git | ||
| git_branch: main | ||
| dockerfile_path: ./Dockerfile | ||
| command: ["/app/ledger", "server"] | ||
| healthcheck: | ||
| test: [ "CMD", "curl", "-f", "http://127.0.0.1:3068/_healthcheck" ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| environment: | ||
| POSTGRES_URI: "postgresql://_env(DB_USER):_env(DB_PASSWORD)@_env(DB_HOST):_env(DB_PORT)/_env(DB_NAME)?sslmode=disable" | ||
|
|
||
|
|
||
| payments-migrate: | ||
| git_url: https://github.com/Frame-Payments/ledger.git | ||
| git_branch: main | ||
| dockerfile_path: ./Dockerfile | ||
| command: migrate up | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| environment: | ||
| POSTGRES_URI: "postgres://_env(DB_USER):_env(DB_PASSWORD)@_env(DB_HOST):_env(DB_PORT)/_env(DB_NAME)?sslmode=disable" | ||
|
|
||
| payments-api: | ||
| git_url: https://github.com/Frame-Payments/ledger.git | ||
| git_branch: main | ||
| dockerfile_path: ./Dockerfile | ||
| command: api server | ||
| healthcheck: | ||
| test: [ "CMD", "curl", "-f", "http://127.0.0.1:8080/_live" ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| payments-migrate: | ||
| condition: service_completed_successfully | ||
| environment: | ||
| DEBUG: ${DEBUG:-"true"} | ||
| POSTGRES_URI: "postgres://_env(DB_USER):_env(DB_PASSWORD)@_env(DB_HOST):_env(DB_PORT)/_env(DB_NAME)?sslmode=disable" | ||
| CONFIG_ENCRYPTION_KEY: mysuperencryptionkey | ||
|
|
||
| payments-connectors: | ||
| git_url: https://github.com/Frame-Payments/ledger.git | ||
| git_branch: main | ||
| dockerfile_path: ./Dockerfile | ||
| command: connectors server | ||
| healthcheck: | ||
| test: [ "CMD", "curl", "-f", "http://127.0.0.1:8080/_live" ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| payments-migrate: | ||
| condition: service_completed_successfully | ||
| environment: | ||
| DEBUG: ${DEBUG:-"true"} | ||
| POSTGRES_URI: "postgres://_env(DB_USER):_env(DB_PASSWORD)@_env(DB_HOST):_env(DB_PORT)/_env(DB_NAME)?sslmode=disable" | ||
| CONFIG_ENCRYPTION_KEY: mysuperencryptionkey | ||
|
|
||
| postgres: | ||
| image: postgres:13 | ||
| ports: | ||
| - 5432 | ||
| environment: | ||
| POSTGRES_USER: "_env(DB_USER)" | ||
| POSTGRES_PASSWORD: "_env(DB_PASSWORD)" | ||
| POSTGRES_DB: "_env(DB_NAME)" | ||
| volumes: | ||
| - postgres-data:/var/lib/postgresql/data | ||
|
|
||
| databases: | ||
| - postgresql | ||
|
|
||
| volumes: | ||
| postgres-data: |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,5 @@ WORKDIR /k6 | |
| COPY . . | ||
| RUN yarn install | ||
| RUN yarn run build | ||
| ENTRYPOINT ["/usr/bin/k6"] | ||
| ENTRYPOINT ["/app/ledger"] | ||
| CMD ["run", "tests/benchmarks/scripts/benchs/ledger-v2.js"] | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENTRYPOINT references a non-existent path
The ENTRYPOINT is set to
/app/ledger, but this Dockerfile never copies or builds aledgerbinary into/app/ledger. At runtime, the container will fail withno such file or directory.Please ensure that the
ledgerexecutable is produced (or copied) into/app/ledger. For example, if your build outputsledgertodist/ledger, you might add:or adjust the ENTRYPOINT to point at the correct location of the built binary.
🤖 Prompt for AI Agents (early access)