summaryrefslogtreecommitdiffstats
path: root/docker-files
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2018-09-15 22:47:08 +0200
committernicolargo <nicolas@nicolargo.com>2018-09-15 22:47:08 +0200
commit82848384da849f3643ac775ab54dce08a3ec41b9 (patch)
tree1b3642a579cb8d06467954e54ae4c3c4dd695e4f /docker-files
parentf5eede0c26c021f1675642e03b861632bf03dba4 (diff)
Add Alpine based container
Diffstat (limited to 'docker-files')
-rw-r--r--docker-files/devel-alpine/Dockerfile25
-rw-r--r--docker-files/devel-arm/Dockerfile8
-rw-r--r--docker-files/devel/Dockerfile2
-rw-r--r--docker-files/master/Dockerfile2
4 files changed, 30 insertions, 7 deletions
diff --git a/docker-files/devel-alpine/Dockerfile b/docker-files/devel-alpine/Dockerfile
new file mode 100644
index 00000000..57646559
--- /dev/null
+++ b/docker-files/devel-alpine/Dockerfile
@@ -0,0 +1,25 @@
+#
+# Glances Dockerfile based on Alpine OS
+#
+# https://github.com/nicolargo/glances
+#
+
+# Pull base image.
+FROM alpine
+
+# Install Glances (develop branch)
+RUN apk add python py2-psutil py2-bottle
+RUN apk add git
+RUN git clone -b develop https://github.com/nicolargo/glances.git
+
+# Define working directory.
+WORKDIR /glances
+
+# EXPOSE PORT (For XMLRPC)
+EXPOSE 61209
+
+# EXPOSE PORT (For Web UI)
+EXPOSE 61208
+
+# Define default command.
+CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
diff --git a/docker-files/devel-arm/Dockerfile b/docker-files/devel-arm/Dockerfile
index d48a2c08..841bbda1 100644
--- a/docker-files/devel-arm/Dockerfile
+++ b/docker-files/devel-arm/Dockerfile
@@ -1,18 +1,16 @@
#
-# Glances Dockerfile for ARM
+# Glances Dockerfile for ARM (based on Alpine ARM)
#
# https://github.com/nicolargo/glances
#
# Pull base image.
-FROM alpine
+FROM easypi/alpine-arm
# Install Glances (develop branch)
RUN apk add python py2-psutil py2-bottle
RUN apk add git
-RUN git clone https://github.com/nicolargo/glances.git
-RUN cd /glances
-RUN git checkout develop
+RUN git clone -b develop https://github.com/nicolargo/glances.git
# Define working directory.
WORKDIR /glances
diff --git a/docker-files/devel/Dockerfile b/docker-files/devel/Dockerfile
index 8ca70f45..444f8ab9 100644
--- a/docker-files/devel/Dockerfile
+++ b/docker-files/devel/Dockerfile
@@ -1,5 +1,5 @@
#
-# Glances Dockerfile
+# Glances Dockerfile based on Ubuntu OS
#
# https://github.com/nicolargo/glances
#
diff --git a/docker-files/master/Dockerfile b/docker-files/master/Dockerfile
index c907b327..045f264c 100644
--- a/docker-files/master/Dockerfile
+++ b/docker-files/master/Dockerfile
@@ -1,5 +1,5 @@
#
-# Glances Dockerfile
+# Glances Dockerfile (based on Ubuntu)
#
# https://github.com/nicolargo/glances
#