-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
98 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!geop/target/scala-2.10/*.jar | ||
!scripts/docker-entrypoint.sh |
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,3 +1,7 @@ | ||
## 0.1.0 | ||
|
||
- Deploy containerized image to [Quay](https://quay.io/repository/usace/program-analysis-geoprocessing) in addition to GitHub Releases | ||
|
||
## 0.0.1 | ||
|
||
- Initial Release. Contains /ping endpoint for testing. |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM quay.io/azavea/spark:1.6.1 | ||
|
||
ENV VERSION 0.1.0 | ||
|
||
COPY geop/target/scala-2.10/usace-programanalysis-geop-assembly-${VERSION}.jar /opt/geoprocessing/usace-programanalysis-geop.jar | ||
COPY scripts/docker-entrypoint.sh /opt/geoprocessing/ | ||
|
||
WORKDIR /opt/geoprocessing | ||
|
||
EXPOSE 8090 | ||
|
||
VOLUME /tmp | ||
|
||
ENTRYPOINT ["./docker-entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
assembly: | ||
image: quay.io/azavea/spark:1.6.1 | ||
volumes: | ||
- ./:/usace-program-analysis-geoprocessing | ||
- ${HOME}/.ivy2:/root/.ivy2 | ||
- ${HOME}/.sbt:/root/.sbt | ||
working_dir: /usace-program-analysis-geoprocessing | ||
entrypoint: sbt | ||
command: '"project geop" assembly' | ||
|
||
compile: | ||
image: quay.io/azavea/spark:1.6.1 | ||
volumes: | ||
- ./:/usace-program-analysis-geoprocessing | ||
- ${HOME}/.ivy2:/root/.ivy2 | ||
- ${HOME}/.sbt:/root/.sbt | ||
working_dir: /usace-program-analysis-geoprocessing | ||
entrypoint: sbt | ||
command: '"project geop" compile' |
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 +1 @@ | ||
sbt.version=0.13.8 | ||
sbt.version=0.13.11 |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
if [ -z "${TRAVIS_TAG}" ]; then | ||
QUAY_TAG="${TRAVIS_COMMIT:0:7}" | ||
else | ||
QUAY_TAG="${TRAVIS_TAG}" | ||
fi | ||
|
||
docker build -t "quay.io/usace/program-analysis-geoprocessing:${QUAY_TAG}" . | ||
|
||
docker push "quay.io/usace/program-analysis-geoprocessing:${QUAY_TAG}" | ||
docker tag -f "quay.io/usace/program-analysis-geoprocessing:${QUAY_TAG}" "quay.io/usace/program-analysis-geoprocessing:latest" | ||
docker push "quay.io/usace/program-analysis-geoprocessing:latest" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
exec /opt/spark/bin/spark-submit "$@" usace-programanalysis-geop.jar 2>&1 |