-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from takipi/develop
Develop to master for version 1.0.0
- Loading branch information
Showing
35 changed files
with
625 additions
and
1,750 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -26,7 +26,10 @@ target/* | |
*/target/* | ||
bin/ | ||
|
||
# idea | ||
*.iml | ||
|
||
# VSC | ||
.settings | ||
.project | ||
.project | ||
.classpath |
This file contains 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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
FROM maven:3.5.3-jdk-8 as mvn | ||
COPY . . | ||
RUN mvn package | ||
#FROM maven:3.5.3-jdk-8 as mvn | ||
#COPY . . | ||
#RUN mvn package | ||
# | ||
#FROM openjdk:8-jre-slim | ||
#RUN apt update && apt install -y jq curl | ||
#ENV CONCOURSE_RESOURCES=/opt/resource/ | ||
#COPY --from=mvn target/concourse-overops.jar /artifact/concourse-overops.jar | ||
#COPY /assets/ ${CONCOURSE_RESOURCES}/ | ||
|
||
FROM openjdk:8-jre-slim | ||
RUN apt update && apt install -y jq curl | ||
ENV CONCOURSE_RESOURCES=/opt/resource/ | ||
COPY --from=mvn target/concourse-overops.jar /artifact/concourse-overops.jar | ||
COPY target/concourse-overops.jar /artifact/concourse-overops.jar | ||
COPY /assets/ ${CONCOURSE_RESOURCES}/ |
This file contains 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 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 |
---|---|---|
@@ -1,14 +1,3 @@ | ||
#!/bin/bash | ||
set -e # exit on error | ||
source $CONCOURSE_RESOURCES/shared | ||
|
||
# check if API responds, expected resource versions will be generated on demand by "out" script | ||
url="${OVEROPS_URL}/api/v1/test" | ||
status_code=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' $url) | ||
if [ $status_code -eq "200" ] | ||
then | ||
jq -n --argjson version "$VERSION_IN" 'if ($version|length > 0) then [$version] else [] end' 3>&1 | ||
else | ||
echo "${OVEROPS_URL} responded with unexpected status code $status_code" 1>&2 | ||
exit 1 | ||
fi | ||
echo "[]" |
This file contains 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 |
---|---|---|
@@ -1,9 +1,3 @@ | ||
#!/bin/bash | ||
|
||
source $CONCOURSE_RESOURCES/shared | ||
|
||
set -e | ||
|
||
metadata=$($cmd) | ||
|
||
jq -n --argjson metadata "$metadata" --argjson version "$VERSION_IN" '{"version":$version,"metadata":$metadata}' 3>&1 | ||
echo '{"version":{}}' |
This file contains 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
Oops, something went wrong.