-
Notifications
You must be signed in to change notification settings - Fork 2
Feature1 #2
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
Open
carlospatinos
wants to merge
23
commits into
internetmosquito:master
Choose a base branch
from
carlospatinos:feature1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature1 #2
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
cb11536
Adding functionalilty required to expose the services, unit testing, …
carlospatinos ca73732
Adding some validations and test for corner cases.
carlospatinos 8d35ebb
Adding a bit of paralellism to the distance calculation. Some perform…
carlospatinos c4fd625
Adding a bit of paralellism to the distance calculation. Some perform…
carlospatinos becf9ea
Adding some rational behind the code
carlospatinos a9ec9b5
Adding some rational behind the code
carlospatinos 3db361d
Adding the right name for the host and in the properties for docker c…
carlospatinos 5d1dbf1
Adding travis for CI
carlospatinos 778330c
Adding the build status tag from travis
carlospatinos c4e8a9b
Adding test coverage to try it
carlospatinos f2abcb2
Adding test coverage badge
carlospatinos 2c16f7f
Removing dependency to load mongo embedded
carlospatinos 22564a5
Using covertura instread of jacoco
carlospatinos 9cfd60f
Still cobertura not working, returning to jacoco
carlospatinos 9fc5059
Adding information to the readme about docker-compose up
carlospatinos e214da4
Adding postman files to improve verification
carlospatinos f8de697
Adding basic performance testing
carlospatinos 2ba230c
Adding more records for the distance calculation 50 records with 10,0…
carlospatinos 3fb9224
Adding a test when there is no records to generate distance
carlospatinos 350bfe8
Adding some details about building the project.
carlospatinos c7f5daa
Pulling docker image from docker hub instead of building that locally
carlospatinos 73e77c6
Adding ELK to the project
carlospatinos 7863e85
Adding a small change
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TAG=6.2.3 | ||
ELASTIC_VERSION=6.2.3 | ||
ELASTIC_PASSWORD=changeme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: java | ||
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. CI with Travis? nice |
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
|
||
after_success: | ||
- ./gradlew test jacocoTestReport coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM openjdk:8-jdk-alpine | ||
EXPOSE 8080 | ||
EXPOSE 9010 | ||
RUN mkdir -p /app/ | ||
ADD build/libs/java-restful-test-0.1.0.jar /app/java-restful-test-0.1.0.jar | ||
#ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] | ||
#ENTRYPOINT ["java", "-jar", "/app/java-restful-test-0.1.0.jar"] | ||
ENTRYPOINT ["java", \ | ||
"-Dcom.sun.management.jmxremote", \ | ||
"-Dcom.sun.management.jmxremote.port=9010", \ | ||
"-Dcom.sun.management.jmxremote.local.only=false", \ | ||
"-Dcom.sun.management.jmxremote.authenticate=false", \ | ||
"-Dcom.sun.management.jmxremote.ssl=false",\ | ||
"-Dspring.data.mongodb.uri=mongodb://mongo_db:27017/users",\ | ||
"-Djava.security.egd=file:/dev/./urandom",\ | ||
"-jar","/app/java-restful-test-0.1.0.jar"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#network.host: localhost | ||
transport.host: 127.0.0.1 | ||
http.host: 0.0.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
############################## Httpbeat ######################################## | ||
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. What is this file for? |
||
httpbeat: | ||
hosts: | ||
# Each - Host endpoints to call. Below are the host endpoint specific configurations | ||
- | ||
schedule: "@every 30s" | ||
url: http://sprinbboot_ws:8080/actuator/health | ||
method: get | ||
headers: | ||
Accept: application/json | ||
output_format: json | ||
json_dot_mode: replace | ||
- | ||
schedule: "@every 30s" | ||
url: http://sprinbboot_ws:8080/actuator/metrics | ||
method: get | ||
headers: | ||
Accept: application/json | ||
output_format: json | ||
json_dot_mode: replace | ||
#================================ General ===================================== | ||
fields: | ||
app_id: java-test | ||
#----------------------------- Logstash output -------------------------------- | ||
output.elasticsearch: | ||
hosts: ["elasticsearch:9200"] | ||
index: "httpbeat-%{+yyyy.MM.dd}" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do you use Eclipse or IntelliJIDEA?