Skip to content

Commit

Permalink
Erweiterung um schreiben ML Daten in ml-data.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-b committed Jan 19, 2020
1 parent 598db8e commit 4ca1feb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.consumer
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ LABEL description="IoT Consumer"

COPY target/consumer-service-0.1-jar-with-dependencies.jar /opt/consumer-service.jar

# Datenverzeichnis
RUN mkdir /data
WORKDIR /data

CMD java -jar /opt/consumer-service.jar
10 changes: 10 additions & 0 deletions iot-kafka-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ spec:
- name: iot-kafka-consumer
image: misegr/iot-kafka-consumer
imagePullPolicy: IfNotPresent
# Volumes im Container
volumeMounts:
- mountPath: "/data"
subPath: mlg
name: "mlg-data"
# Volumes in Host
volumes:
- name: "mlg-data"
persistentVolumeClaim:
claimName: data-claim

0 comments on commit 4ca1feb

Please sign in to comment.