-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add all-in-one for local usage (#421)
- Loading branch information
Showing
7 changed files
with
166 additions
and
199 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,7 +1,34 @@ | ||
FROM node:latest | ||
# syntax=docker/dockerfile:1 | ||
FROM ghcr.io/formancehq/gateway:v0.1.7 as gateway | ||
FROM ghcr.io/formancehq/ledger:v1.10.3 as ledger | ||
FROM ghcr.io/formancehq/payments:v0.7.1 as payments | ||
FROM ghcr.io/formancehq/auth:v0.4.3 as auth | ||
FROM ghcr.io/formancehq/search:v0.7.0 as search | ||
FROM ghcr.io/formancehq/wallets:v0.4.3 as wallets | ||
FROM ghcr.io/formancehq/webhooks:v0.6.6 as webhooks | ||
FROM ghcr.io/formancehq/control:v1.7.0 as control | ||
FROM ghcr.io/formancehq/auth-dex:latest as dex | ||
FROM jeffail/benthos:4.12.1 as benthos | ||
|
||
FROM node:18 | ||
WORKDIR /tmp | ||
RUN apt update && apt install -y wget &&\ | ||
export ARCH=$(dpkg --print-architecture) && \ | ||
wget https://github.com/F1bonacc1/process-compose/releases/download/v0.51.4/process-compose_Linux_$ARCH.tar.gz && \ | ||
tar -xvf process-compose_Linux_$ARCH.tar.gz -C /tmp &&\ | ||
cp -R process-compose /usr/bin/process-compose | ||
COPY --from=gateway /usr/bin/caddy /usr/bin/gateway | ||
COPY --from=dex /usr/local/bin/dex /usr/bin/dex | ||
COPY --from=auth /usr/bin/auth /usr/bin/auth | ||
COPY --from=ledger /usr/local/bin/numary /usr/bin/ledger | ||
COPY --from=payments /usr/bin/payments /usr/bin/payments | ||
COPY --from=search /usr/bin/search /usr/bin/search | ||
COPY --from=wallets /usr/bin/wallets /usr/bin/wallets | ||
COPY --from=webhooks /usr/bin/webhooks /usr/bin/webhooks | ||
COPY --from=benthos /benthos /usr/bin/benthos | ||
COPY --from=control /app /app | ||
COPY ./config /etc/formance | ||
COPY ./components/search/benthos /benthos | ||
WORKDIR /app | ||
RUN npm install -g @moonrepo/cli | ||
COPY ./.moon/docker/workspace . | ||
RUN moon docker setup | ||
RUN moon run auth:lint | ||
COPY process-compose.yaml /running/process-compose.yaml | ||
CMD ["process-compose", "up", "--config", "/running/process-compose.yaml", "--tui=false", "-p", "9090"] |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"github:goreleaser/nur#goreleaser-pro", | ||
"path:nix/speakeasy#speakeasy", | ||
"path:nix/moon#moon", | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"shell": {}, | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,11 @@ | |
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#nodejs", | ||
"version": "18.16.0" | ||
}, | ||
"[email protected]": { | ||
"last_modified": "2023-05-01T16:53:22Z", | ||
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#process-compose", | ||
"version": "0.43.1" | ||
}, | ||
"[email protected]": { | ||
"last_modified": "2023-05-01T16:53:22Z", | ||
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#yarn", | ||
|
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
Oops, something went wrong.
254e746
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.
Successfully deployed to the following URLs:
docs – ./
docs.numary.com
docs-formance.vercel.app
developers.numary.com
docs-git-main-formance.vercel.app
docs.formance.com
developers.formance.com