Skip to content

Commit

Permalink
Optimiert
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-b committed Sep 5, 2018
1 parent 49eb5cb commit 083c7a0
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.alert
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:8
FROM openjdk:8-jre-alpine

LABEL "maintainer"="Marcel Bernet <marcel.bernet@ch-open.ch"
LABEL description="IoT Alert Service"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.consumer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:8
FROM openjdk:8-jre-alpine

LABEL "maintainer"="Marcel Bernet <marcel.bernet@ch-open.ch"
LABEL description="IoT Consumer"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.pipe
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:8
FROM openjdk:8-jre-alpine

LABEL "maintainer"="Marcel Bernet <marcel.bernet@ch-open.ch"
LABEL description="CSV to JSON"
Expand Down
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pipeline {
agent any
steps {
unstash 'jar'
sh 'docker build -f Dockerfile.pipe -t iot-kafka-pipe .'
sh 'docker build -f Dockerfile.consumer -t iot-kafka-consumer .'
sh 'docker build -f Dockerfile.alert -t iot-kafka-alert .'
sh 'docker build -f Dockerfile.pipe -t misegr/iot-kafka-pipe .'
sh 'docker build -f Dockerfile.consumer -t misegr/iot-kafka-consumer .'
sh 'docker build -f Dockerfile.alert -t misegr/iot-kafka-alert .'
}
}
}
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ Im gestarteten Maven Container:
cd /src
git clone https://github.com/mc-b/iot.kafka
mvn clean package
docker build -f Dockerfile.pipe -t iot-kafka-pipe .
docker build -f Dockerfile.consumer -t iot-kafka-consumer .
docker build -f Dockerfile.alert -t iot-kafka-alert .
exit

Auf der Git/Bash (ausserhalb des Containers)

cd data/src/iot.kafka
docker build -f Dockerfile.pipe -t misegr/iot-kafka-pipe .
docker build -f Dockerfile.consumer -t misegr/iot-kafka-consumer .
docker build -f Dockerfile.alert -t misegr/iot-kafka-alert .

Auf das [IoTKit](https://github.com/mc-b/iotkitv3) ist das [MQTTPublish](https://os.mbed.com/teams/IoTKitV3/code/MQTTPublish/) Programm zu laden. Vor dem Compilieren sind die Einträge `host` und ggf. `port` anzupassen. Der `host` entspricht der IP-Adresse der VM die mittels [lernkube](https://github.com/mc-b/lernkube) erstellt wurde.

### Funktionsweise
Expand Down
2 changes: 1 addition & 1 deletion iot-kafka-alert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
spec:
containers:
- name: iot-kafka-alert
image: iot-kafka-alert
image: misegr/iot-kafka-alert
imagePullPolicy: IfNotPresent
2 changes: 1 addition & 1 deletion iot-kafka-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
spec:
containers:
- name: iot-kafka-consumer
image: iot-kafka-consumer
image: misegr/iot-kafka-consumer
imagePullPolicy: IfNotPresent
2 changes: 1 addition & 1 deletion iot-kafka-pipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
spec:
containers:
- name: iot-kafka-pipe
image: iot-kafka-pipe
image: misegr/iot-kafka-pipe
imagePullPolicy: IfNotPresent

0 comments on commit 083c7a0

Please sign in to comment.