ynput / ayon-backend

Server codebase with API access to AYON
Apache License 2.0
18 stars 14 forks source link

Start Script: Docker build on windows systems*? #234

Open Ballard-dev opened 4 weeks ago

Ballard-dev commented 4 weeks ago

Story

When building a docker image on windows systems the start.sh script uses syntax seemingly not available in a Windows env.

To reproduce

Steps to reproduce the behavior:

  1. Pull the docker repository
  2. Change the name of the image in Makefile
  3. (Optional?) Change backend/frontend repositories to forked (inline with commits from ynput)
  4. Run docker compose build
  5. Run docker compose up
  6. Get message GOOD NEWS Setup is finished
  7. /backend/start.sh: 17: Syntax error: "(" unexpected

Expected behavior

  1. Pull the docker repository
  2. Change the name of the image in Makefile
  3. Run docker compose build
  4. Run docker compose up
  5. Get message GOOD NEWS Setup is finished
  6. Get message GOOD NEWS Server is now ready to connect

Environment

Additional context

I have a workaround for this issue, but it results in trap: SIGTERM: bad trap currently. I am looking at other fixes. (I am able to start the server with a built image with the workaround)