Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
Docker-, Travis-Support ergänzt
Browse files Browse the repository at this point in the history
  • Loading branch information
JochenLutz committed Aug 23, 2017
1 parent f7cf9ca commit e99ac83
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: required
language: bash
services:
- docker

env:
global:
- IMG=biggis/streampipes-senseboxadapter:0.1.0

install:
#login to dockerhub
- docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD

script:
#build the images
- docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t $IMG .

after_success:
- echo "build successful"
#push the image to dockerhub
- docker push $IMG
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM anapsix/alpine-java

EXPOSE 8088
EXPOSE 61616
EXPOSE 8085

ADD .target/templates-source-0.41.0-SNAPSHOT.jar /templates-sources.jar
ADD .target/biggisstreampipes-senseboxadapter-0.1.jar /biggisstreampipes-senseboxadapter.jar

ENTRYPOINT ["java", "-jar", "/templates-sources.jar"]
ENTRYPOINT ["java", "-jar", "/biggisstreampipes-senseboxadapter.jar"]
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>de.fzi.ipe.biggis.SenseBoxAdapter</groupId>
<artifactId>streampipes-templates-sources</artifactId>
<version>0.41.0-SNAPSHOT</version>
<artifactId>biggisstreampipes-senseboxadapter</artifactId>
<version>0.1</version>

<properties>
<sp.version>0.41.0-SNAPSHOT</sp.version>
Expand Down

0 comments on commit e99ac83

Please sign in to comment.