Skip to content

Commit ec33504

Browse files
authored
update the worker to node 24 (#1357)
* update the worker to node 24 * update docker docs
1 parent fd58873 commit ec33504

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-alpine AS base
1+
FROM node:24-alpine AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
44
RUN corepack enable

packages/ws-worker/README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ This package contains:
1111

1212
The mock services allow lightweight and controlled testing of the interfaces between them.
1313

14+
## Docker
15+
16+
To build and run the worker as a Docker image locally:
17+
18+
```bash
19+
docker build -t openfn-worker .
20+
docker run --network host -e WORKER_SECRET=$WORKER_SECRET -e WORKER_LIGHTNING_SERVICE_URL="ws://localhost:4000/worker" openfn-worker
21+
```
22+
1423
## Getting started
1524

1625
To use this server:
@@ -98,12 +107,12 @@ remaining capacity serve general work.
98107

99108
### Syntax
100109

101-
| Element | Meaning |
102-
|---------|---------|
103-
| `>` | Queue preference separator (left = highest priority) |
104-
| `*` | Wildcard: accept runs from any queue (must be last) |
105-
| `:N` | Number of slots for this group |
106-
| ` ` (space) | Group separator |
110+
| Element | Meaning |
111+
| ----------- | ---------------------------------------------------- |
112+
| `>` | Queue preference separator (left = highest priority) |
113+
| `*` | Wildcard: accept runs from any queue (must be last) |
114+
| `:N` | Number of slots for this group |
115+
| ` ` (space) | Group separator |
107116

108117
### Examples
109118

0 commit comments

Comments
 (0)