-
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?
Changes from all commits
3729d4f
d3f8e06
7f68733
dbf815b
2d4985d
2c8a0d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM dockerfile/java:oracle-java8 | ||
FROM openjdk:8-jdk-alpine | ||
|
||
WORKDIR /opt/onyx-scheduler | ||
|
||
COPY target/onyx-scheduler.jar /opt/onyx-scheduler/onyx-scheduler.jar | ||
|
||
EXPOSE 8080 | ||
EXPOSE 28080 | ||
CMD ["java", "-jar", "onyx-scheduler.jar"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 |
||
|
||
###docker-compose | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
info: | ||
build: | ||
artifact: @project.artifactId@ | ||
name: @project.name@ | ||
description: @project.description@ | ||
version: @project.version@ | ||
artifact: '@project.artifactId@' | ||
name: '@project.name@' | ||
description: '@project.description@' | ||
version: '@project.version@' | ||
|
||
security: | ||
user: | ||
name: admin | ||
password: admin | ||
server: | ||
port : ${SERVER_PORT:28080} | ||
|
||
quartz: | ||
threadCount: 15 | ||
|
@@ -17,11 +15,14 @@ quartz: | |
|
||
quartz: | ||
jobstore: | ||
clustered: false | ||
isClustered: {$CLUSTERED:true} | ||
|
||
spring: | ||
profiles: mysql-jobstore | ||
datasource: | ||
url: "jdbc:mysql://mysql/onyx" | ||
username: onyx | ||
password: onyx | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Any particular reason to disable security? |
||
exclude[0]: org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration | ||
exclude[1]: org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration |
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?