-
Notifications
You must be signed in to change notification settings - Fork 5
Refactoring building and deployment of Docker services #60
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
base: dev
Are you sure you want to change the base?
Refactoring building and deployment of Docker services #60
Conversation
andrsuh
left a comment
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.
Thank you! Please respond to my comments and questions.
| client: | ||
| serviceUrl: | ||
| defaultZone: http://localhost:8761/eureka/ | ||
| defaultZone: http://eureka:8761/eureka/ |
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.
application.yml is used for local deployment. We can override this property in application-docker.yml and then if application is run with flag --spring.active.profiles=docker the proper property from application-docker.yml will be applied
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.
Will check
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.
Did you have a chance to take a look at this?
| @@ -1,6 +1,8 @@ | |||
| .gradle | |||
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.
why do we need this?
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.
If running gradle from top, this directory is created. Also, I think this will ignore .gradle in each sub-directory also, which is good, since it is a technical directory and mainly mustn't be committed.
| archiveBaseName = "accounting-api" | ||
| } | ||
|
|
||
| repositories { |
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.
why don't we need this anymore?
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.
Because repositories are declared once in top of multi-module project. Instead of duplicating things in each sub-project separately. And handled by Artifactory to abuse caching as much as possible.
| } | ||
| } | ||
| } | ||
| apply plugin: "java" |
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.
please move plugin declaration at the top of scope
| @@ -1,4 +1,4 @@ | |||
| FROM grafana/grafana | |||
| FROM grafana/grafana:6.3.6 | |||
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.
Did you make sure that all stays working after this changes?
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.
No but made sure this is the version with ubuntu in it. The new latest image(which is default) now based on Apline and since I ain't sure of purpose of this change, I kept it all as is.
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.
I think the original author can fix it if necessary.
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.
But it is a bad practice not to set the version if you're inherit from another image.
local MavenwithArtifactoryArtifactoryArtifactoryArtifactoryDockerfiles