Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker run produces with default values unary operator expected error #72

Closed
gurumark opened this issue Aug 31, 2019 · 1 comment
Closed

Comments

@gurumark
Copy link

docker run -d
--name ceryx
-p 80:80 -p 443:443
--restart=always
sourcelair/ceryx usr/local/openresty/bin/openresty -g - daemon off

I get:

  • '[' == true ']'
    /entrypoint.sh: line 5: [: ==: unary operator expected
  • export CERYX_LOG_LEVEL=info
  • CERYX_LOG_LEVEL=info
  • /usr/local/bin/dockerize -template /usr/local/openresty/nginx/conf/nginx.conf.tmpl:/usr/local/openresty/nginx/conf/nginx.conf -template /usr/local/openresty/nginx/conf/ceryx.conf.tmpl:/usr/local/openresty/nginx/conf/ceryx.conf -wait tcp://redis:6379
    2019/08/31 13:24:02 Waiting for: tcp://redis:6379
    2019/08/31 13:24:02 Connected to tcp://redis:6379
  • exec usr/local/openresty/bin/openresty -g - daemon off
    nginx: invalid option: "daemon"
  • '[' == true ']'
    /entrypoint.sh: line 5: [: ==: unary operator expected

I believe it is a bash error related to the assignment in entrypoint.sh.

Thanks for your help

@parisk
Copy link
Contributor

parisk commented Sep 3, 2019

The reason you are running into the above issue is that CERYX_DEBUG is not set, as configuration is not built into images.

This is an intentional decision, as we believe that configuration should not be part of the build artifact (the Docker image in this case). In addition to this, since Ceryx is comprised of 2 components (Proxy + API). That's why you either need Docker Compose or Docker Swarm mode to run it., this would require us to manage duplicate defaults in each image, which we intentionally avoid.

🙌 Heads up though! Following the instructions in the docs should do the work for you without needing any configuration to get started 😄.

@parisk parisk closed this as completed Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants