-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: master
Are you sure you want to change the base?
Conversation
…e code to adjust with deprecated methods
url: ${MYSQL_URL:jdbc:mysql://mysql/onyx} | ||
username: ${MYSQL_USERNAME:onyx} | ||
password: ${MYSQL_PASSWORD:onyx} | ||
autoconfigure: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
No description provided.