Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Nov 9, 2024
1 parent 820acc0 commit d13d576
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 5 deletions.
1 change: 0 additions & 1 deletion apps/workflows/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ node_modules
/apps/server
/apps/web
/packages/analytics
/packages/assertions
/packages/api
/packages/error
/packages/notifications
Expand Down
1 change: 1 addition & 0 deletions apps/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ WORKDIR /app/
RUN \
--mount=type=bind,target=package.json,source=package.json \
--mount=type=bind,target=apps/workflows/package.json,source=apps/workflows/package.json \
--mount=type=bind,target=packages/assertions/package.json,source=packages/assertions/package.json \
--mount=type=bind,target=packages/db/package.json,source=packages/db/package.json \
--mount=type=bind,target=packages/emails/package.json,source=packages/emails/package.json \
--mount=type=bind,target=packages/utils/package.json,source=packages/utils/package.json \
Expand Down
22 changes: 22 additions & 0 deletions apps/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Development

To install dependencies:
```sh
bun install
Expand All @@ -9,3 +11,23 @@ bun run dev
```

open http://localhost:3000


## Deploy

From root

```bash
flyctl deploy --config apps/workflows/fly.toml --dockerfile apps/workflows/Dockerfile
```

## Docker

The Dockerfile is generated thanks to [Dofigen](https://github.com/lenra-io/dofigen). To generate the Dockerfile, run the following command from the `apps/workflows` directory:

```bash
# Update the dependent image versions
dofigen update
# Generate the Dockerfile
dofigen gen
```
7 changes: 4 additions & 3 deletions apps/workflows/dofigen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ effective: |
- /apps/server
- /apps/web
- /packages/analytics
- /packages/assertions
- /packages/api
- /packages/error
- /packages/notifications
Expand All @@ -28,6 +27,8 @@ effective: |
source: package.json
- target: apps/workflows/package.json
source: apps/workflows/package.json
- target: packages/assertions/package.json
source: packages/assertions/package.json
- target: packages/db/package.json
source: packages/db/package.json
- target: packages/emails/package.json
Expand Down Expand Up @@ -78,7 +79,7 @@ images:
digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e
resources:
dofigen.yml:
hash: 822431b25b0cf3d5a1b3c1140e6337ce6fc768715b64e889d436178f8277b280
hash: d232b15ff842b392611e64b97bf65d642ca573052072490c2f54ea2f4dc4481e
content: |
ignore:
- node_modules
Expand All @@ -87,7 +88,6 @@ resources:
- /apps/server
- /apps/web
- /packages/analytics
- /packages/assertions
- /packages/api
- /packages/error
- /packages/notifications
Expand All @@ -102,6 +102,7 @@ resources:
bind:
- package.json
- apps/workflows/package.json
- packages/assertions/package.json
- packages/db/package.json
- packages/emails/package.json
- packages/utils/package.json
Expand Down
2 changes: 1 addition & 1 deletion apps/workflows/dofigen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ignore:
- /apps/server
- /apps/web
- /packages/analytics
- /packages/assertions
- /packages/api
- /packages/error
- /packages/notifications
Expand All @@ -20,6 +19,7 @@ builders:
bind:
- package.json
- apps/workflows/package.json
- packages/assertions/package.json
- packages/db/package.json
- packages/emails/package.json
- packages/utils/package.json
Expand Down
1 change: 1 addition & 0 deletions apps/workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"zod": "3.23.8"
},
"devDependencies": {
"@openstatus/assertions": "workspace:*",
"@openstatus/tsconfig": "workspace:*",
"@types/bun": "latest"
}
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d13d576

Please sign in to comment.