-
Notifications
You must be signed in to change notification settings - Fork 39
Description
I've been trying to setup Synapse locally, using Docker, on Windows 11 and ran into a couple of issues while following the instructions from the repo readme file (Getting Started section).
π‘ - Needs documentation changes
π’ - Needs to be added to documentation
π΄ - Might need code/configuration changes
π‘ Step 3 needs to be updated from:
docker-compose build
to:
docker-compose -f docker-compose.build.yml build
π‘ Step 4 needs to be updated from:
docker-compose up
to:
docker-compose -f docker-compose.build.yml up
π’ Should add a mention that we need to pull a runner image to be able to run a workflow. For example:
docker pull ghcr.io/serverlessworkflow/synapse/runner:1.0.0-alpha5
π΄ I had to trick Synapse into running this alpha5 image by running this command:
docker tag ghcr.io/serverlessworkflow/synapse/runner:1.0.0-alpha5 ghcr.io/serverlessworkflow/synapse/runner:1.0.0
What did I miss here?
π΄ I had to modify the docker-compose.build.yml file in two ways.
The garnet tag from:
garnet:
image: ghcr.io/microsoft/garnet
volumes:
- garnet_data:/datato:
garnet:
image: ghcr.io/microsoft/garnet
entrypoint:
- /app/GarnetServer
- --lua
volumes:
- garnet_data:/dataand in the operator.environment section I had to add this:
SYNAPSE_RUNTIME_DOCKER_SECRETS_DIRECTORY: C:\Users\[MY_USER]\.synapse
This is clearly not cross-platform friendly but we need to either fix it or document it properly.
π‘ The example workflow definition needs to be updated from:
# greeter.yaml
document:
dsl: '1.0.0'
name: greeter
namespace: default
version: '0.1.0'
do:
greet:
set:
greetings: '${ "Hello \(.user.firstName) \(.user.lastName)!" }'to:
# greeter.yaml
document:
dsl: "1.0.0-alpha5"
name: greeter
namespace: default
version: "0.1.0"
do:
- greet:
set:
greetings: ${ "Hello \(.user.firstName) \(.user.lastName)!" }By this, I mean that we need to make it more clear that the version can't just be copy-pasted (or actually solve that problem) and that the formatting of the do...greet is wrong.
π‘ We also need to mention that the version of the dsl property should match the version of the runner image that was pulled. Or at least that's what I thought. Am I wrong?
I can open a p.r. for this once the discussion is settled.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status