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

Update libraries with latest #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

mnirwan
Copy link

@mnirwan mnirwan commented Nov 15, 2020

No description provided.

url: ${MYSQL_URL:jdbc:mysql://mysql/onyx}
username: ${MYSQL_USERNAME:onyx}
password: ${MYSQL_PASSWORD:onyx}
autoconfigure:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to disable security?


WORKDIR /opt/onyx-scheduler

COPY target/onyx-scheduler.jar /opt/onyx-scheduler/onyx-scheduler.jar

EXPOSE 8080
EXPOSE 28080
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to change the default port?

@@ -34,7 +34,7 @@ If you want to run it with a provided mysql database which already contains quar
####Docker preconditions
- [Docker installed](https://docs.docker.com/installation/)

A `Dockerfile` is provided so if you want to build it (after running `mvn package`) you can do something like `docker build -t onyx-scheduler .` and then `docker run -p 8080:8080 onyx-scheduler` to run the container. If you use [boot2docker](http://boot2docker.io/) remember to use the docker ip (`boot2docker ip` will display it) instead of localhost from the host machine to access the API.
A `Dockerfile` is provided so if you want to build it (after running `mvn package`) you can do something like `docker build -t onyx-scheduler .` and then `docker run -e SPRING_PROFILES_ACTIVE=mysql-jobstore -e MYSQL_URL="jdbc:mysql://host.docker.internal:3306/onyx" -e MYSQL_USERNAME=onyx -e MYSQL_PASSWORD='onyx' -p 8080:8080 onyx-scheduler` to run the container. If you use [boot2docker](http://boot2docker.io/) remember to use the docker ip (`boot2docker ip` will display it) instead of localhost from the host machine to access the API.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to be explicit in all environment variables? I would rather prefer keeping the example simple and used default provided options, and users can later on (if they need) how to change any of the provided settings. Another option is leaving the simple example and then add some section on how to change the default configuration

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

Successfully merging this pull request may close these issues.

2 participants