From 10f1a43a6fd3a33015e5a88a2d878d33e618c226 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 Oct 2017 17:47:10 +0530 Subject: [PATCH] Added docker file and Readme --- Docker image/Dockerfile | 6 ++++++ Docker image/README.md | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Docker image/Dockerfile create mode 100644 Docker image/README.md diff --git a/Docker image/Dockerfile b/Docker image/Dockerfile new file mode 100644 index 00000000..789b901f --- /dev/null +++ b/Docker image/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine +RUN apk add --update \ + python \ + py-pip \ + --no-cache bash \ + && pip install liota diff --git a/Docker image/README.md b/Docker image/README.md new file mode 100644 index 00000000..40757f2b --- /dev/null +++ b/Docker image/README.md @@ -0,0 +1,17 @@ +# Liota Docker Image +Liota Docker image is a light weight image based on Alpine Linux. +### Base Image +Built using [Alpine base image](https://github.com/gliderlabs/docker-alpine). +### Includes following components: + - Python + - Python-pip + - Liota + +### How to use image: + - Now do `docker build -t liota .` in terminal Docker image will be created by the name liota. + Note: Incase of problem in building the image please configure DNS address before building the image. + - Now to run the image `docker run -it liota` + +You can refer to the [Examples](https://github.com/vmware/liota/blob/master/README.md#examples) for more details on how to use liota. +You can also use a mounted device or drive from where liota will pick the data `docker run -it -v /path/to/mount-device:/mnt/ liota`. +You will have to write your own UDM's in order to get that data from that mount-device and send to DCC's.