Skip to content

Commit 97daf98

Browse files
committed
add capability to generate user on init
1 parent 01114fe commit 97daf98

File tree

6 files changed

+354
-117
lines changed

6 files changed

+354
-117
lines changed

openfn/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ version: '3.9'
33
services:
44
openfn:
55
image: ${OpenFn_IMAGE}
6-
command: sh -c '/app/bin/lightning eval "Lightning.Release.migrate()" && /app/bin/lightning eval "Lightning.Demo.reset_demo()" && /app/bin/lightning start'
6+
command: >
7+
sh -c "/app/bin/lightning eval 'Lightning.Release.migrate()' && /app/bin/lightning eval 'Lightning.Setup.setup_user(%{first_name: \"Derrick\",last_name: \"Rono\",email: \"derrick.rono@jembi.org\",password: \"welcome12345\", role: :superuser}, \"apiKey\" ,[%{name: \"openhim ndr\", schema: \"http\", body: %{username: \"openfn\", password: \"PasswordHere\", baseUrl: \"http://urlHere\"}}])' && /app/bin/lightning start"
78
deploy:
89
resources:
910
limits:

openfn/importer/workflows/docker-compose.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.9'
33
services:
44
openfn_workflow_config:
55
image: node:18-alpine3.20
6-
command: sh -c "cd /workflows && ls && npm install -g @openfn/cli && ls && openfn deploy -c config.json --no-confirm"
6+
command: sh -c "cd /workflows && ls && npm install -g @openfn/cli && cat config.json && openfn deploy -c config.json --no-confirm"
77
configs:
88
- target: /workflows/project.yaml
99
source: project.yaml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"specPath": "project.yaml",
33
"statePath": "state.json",
4-
"apiKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJKb2tlbiIsImlhdCI6MTY4ODAzNzE4NSwiaXNzIjoiSm9rZW4iLCJqdGkiOiIydG1ocG8zYm0xdmR0MDZvZDgwMDAwdTEiLCJuYmYiOjE2ODgwMzcxODUsInVzZXJfaWQiOiIzZjM3OGU2Yy02NjBhLTRiOTUtYWI5Ni02YmQwZGMyNjNkMzMifQ.J1FnACGpqtQbmXNvyUCwCY4mS5S6CohRU3Ey-N0prP4",
4+
"apiKey": "apiKey",
55
"endpoint": "http://openfn:4000"
66
}

0 commit comments

Comments
 (0)