Skip to content

Conversation

@AlexTalker
Copy link

@AlexTalker AlexTalker commented Oct 5, 2019

  • Replace local Maven with Artifactory
  • Develop a helper to setup Artifactory
  • Develop a helper to deploy API artifacts into Artifactory
  • Dependency resolution via Artifactory
  • Include service building process in relevant Dockerfiles
  • Enable Travis CI
  • Minor fixes of some exceptions
  • Documentation

@AlexTalker
Copy link
Author

Copy link
Member

@andrsuh andrsuh left a 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/
Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

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

Will check

Copy link
Member

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
Copy link
Member

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?

Copy link
Author

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 {
Copy link
Member

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?

Copy link
Author

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"
Copy link
Member

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
Copy link
Member

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?

Copy link
Author

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.

Copy link
Author

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.

Copy link
Author

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.

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