]> git.localhorst.tv Git - blank.git/commitdiff
docker image cleanup
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 24 Nov 2016 11:40:37 +0000 (12:40 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 24 Nov 2016 11:40:37 +0000 (12:40 +0100)
scripts/docker/centos-build-latest/Dockerfile
scripts/docker/centos-run-latest/Dockerfile [new file with mode: 0644]
scripts/docker/debian-build-latest/Dockerfile
scripts/docker/debian-build-testing/Dockerfile
scripts/docker/debian-run-latest/Dockerfile [new file with mode: 0644]
scripts/docker/debian-run-testing/Dockerfile [new file with mode: 0644]
scripts/docker/ubuntu-build-devel/Dockerfile
scripts/docker/ubuntu-build-latest/Dockerfile
scripts/docker/ubuntu-run-devel/Dockerfile [new file with mode: 0644]
scripts/docker/ubuntu-run-latest/Dockerfile [new file with mode: 0644]

index 33312768d3abc9bc15ae0b058441f0a355a7958b..6e8d3cb1cf156212b0b863162c433703be6ae7b3 100644 (file)
@@ -1,19 +1,17 @@
-FROM centos:latest
+FROM localhorsttv/centos-run:latest
 
-RUN yum -y update \
-       && yum -y install epel-release \
-       && yum -y update \
-       && yum -y group install "Development Tools"
-RUN yum -y install \
-       cppcheck \
-       cppunit-devel \
-       freealut-devel \
-       glew-devel \
-       glm-devel \
-       openal-soft-devel \
-       SDL2-devel \
-       SDL2_image-devel \
-       SDL2_net-devel \
-       SDL2_ttf-devel \
-       zlib-devel \
+RUN yum -y group install "Development Tools" \
+       && yum -y install \
+               cppcheck \
+               cppunit-devel \
+               freealut-devel \
+               glew-devel \
+               glm-devel \
+               openal-soft-devel \
+               SDL2-devel \
+               SDL2_image-devel \
+               SDL2_net-devel \
+               SDL2_ttf-devel \
+               zlib-devel \
+       && yum -y clean packages \
        ;
diff --git a/scripts/docker/centos-run-latest/Dockerfile b/scripts/docker/centos-run-latest/Dockerfile
new file mode 100644 (file)
index 0000000..5c09e0c
--- /dev/null
@@ -0,0 +1,25 @@
+FROM centos:latest
+
+RUN yum -y update \
+       && yum -y install epel-release \
+       && yum -y update \
+       && yum -y install \
+               make \
+               which \
+               xorg-x11-server-utils \
+               xorg-x11-server-Xvfb \
+       && yum -y clean packages \
+       ;
+
+RUN yum -y install \
+       freealut \
+       glew \
+       openal-soft \
+       SDL2 \
+       SDL2_image \
+       SDL2_net \
+       SDL2_ttf \
+       zlib \
+       && yum -y clean packages \
+       && echo -e '[general]\ndrivers = null' > /etc/openal/alsoft.conf \
+       ;
index 79b8fcf5923380dc2ece8e8fe71562b326695e93..b0cccd65f44a456220d6cb1eb4a416df79fa08b9 100644 (file)
@@ -1,7 +1,9 @@
-FROM debian:latest
+FROM localhorsttv/debian-run:latest
+
+RUN apt -y install build-essential \
+       && apt-get -y clean \
+       ;
 
-RUN apt update \
-       && apt -y install build-essential
 RUN apt -y install --no-install-recommends \
        cppcheck \
        libalut-dev \
@@ -14,4 +16,5 @@ RUN apt -y install --no-install-recommends \
        libsdl2-net-dev \
        libsdl2-ttf-dev \
        zlib1g-dev \
+       && apt-get -y clean \
        ;
index 8b422eaa300474dde66bc821e6bb842ba61578ee..b5a1eb80cc16f19558a42848c7283d103d327a36 100644 (file)
@@ -1,7 +1,9 @@
-FROM debian:testing
+FROM localhorsttv/debian-run:testing
+
+RUN apt -y install build-essential \
+       && apt-get -y clean \
+       ;
 
-RUN apt update \
-       && apt -y install build-essential
 RUN apt -y install --no-install-recommends \
        cppcheck \
        libalut-dev \
@@ -14,4 +16,5 @@ RUN apt -y install --no-install-recommends \
        libsdl2-net-dev \
        libsdl2-ttf-dev \
        zlib1g-dev \
+       && apt-get -y clean \
        ;
diff --git a/scripts/docker/debian-run-latest/Dockerfile b/scripts/docker/debian-run-latest/Dockerfile
new file mode 100644 (file)
index 0000000..838c84d
--- /dev/null
@@ -0,0 +1,24 @@
+FROM debian:latest
+
+RUN apt -y update \
+       && apt -y upgrade \
+       && apt -y install --no-install-recommends \
+               make \
+               xauth \
+               xvfb \
+       && apt-get -y clean \
+       ;
+
+RUN apt -y install --no-install-recommends \
+               libalut0 \
+               libglew1.10 \
+               libglu1-mesa \
+               libopenal1 \
+               libsdl2-2.0-0 \
+               libsdl2-image-2.0-0 \
+               libsdl2-net-2.0-0 \
+               libsdl2-ttf-2.0-0 \
+               zlib1g \
+       && apt-get -y clean \
+       && echo -e '[general]\ndrivers = null' > /etc/openal/alsoft.conf \
+       ;
diff --git a/scripts/docker/debian-run-testing/Dockerfile b/scripts/docker/debian-run-testing/Dockerfile
new file mode 100644 (file)
index 0000000..c344aa9
--- /dev/null
@@ -0,0 +1,24 @@
+FROM debian:testing
+
+RUN apt -y update \
+       && apt -y upgrade \
+       && apt -y install --no-install-recommends \
+               make \
+               xauth \
+               xvfb \
+       && apt-get -y clean \
+       ;
+
+RUN apt -y install --no-install-recommends \
+       libalut0 \
+       libglew1.10 \
+       libglu1-mesa \
+       libopenal1 \
+       libsdl2-2.0-0 \
+       libsdl2-image-2.0-0 \
+       libsdl2-net-2.0-0 \
+       libsdl2-ttf-2.0-0 \
+       zlib1g \
+       && apt-get -y clean \
+       && echo -e '[general]\ndrivers = null' > /etc/openal/alsoft.conf \
+       ;
index 0415f526a1c7ae78fe54400eeb32d5ea1bd3bf18..15e0624b052d18038dc0db1a076100923e1c74cd 100644 (file)
@@ -1,7 +1,9 @@
-FROM ubuntu:devel
+FROM localhorsttv/ubuntu-run:devel
+
+RUN apt -y install build-essential \
+       && apt-get -y clean \
+       ;
 
-RUN apt update \
-       && apt -y install build-essential
 RUN apt -y install --no-install-recommends \
        cppcheck \
        libalut-dev \
@@ -14,4 +16,5 @@ RUN apt -y install --no-install-recommends \
        libsdl2-net-dev \
        libsdl2-ttf-dev \
        zlib1g-dev \
+       && apt-get -y clean \
        ;
index 15a23de147274ef61f60a70819743334d041b362..e319fc4916d979e550fba1fbc7f387787809d49e 100644 (file)
@@ -1,7 +1,9 @@
-FROM ubuntu:latest
+FROM localhorsttv/ubuntu-run:latest
+
+RUN apt -y install build-essential \
+       && apt-get -y clean \
+       ;
 
-RUN apt update \
-       && apt -y install build-essential
 RUN apt -y install --no-install-recommends \
        cppcheck \
        libalut-dev \
@@ -14,6 +16,7 @@ RUN apt -y install --no-install-recommends \
        libsdl2-net-dev \
        libsdl2-ttf-dev \
        zlib1g-dev \
+       && apt-get -y clean \
        ;
 
-ENV LDXXFLAGS=-L/usr/lib/x86_64-linux-gnu LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
+ENV LDXXFLAGS -L/usr/lib/x86_64-linux-gnu
diff --git a/scripts/docker/ubuntu-run-devel/Dockerfile b/scripts/docker/ubuntu-run-devel/Dockerfile
new file mode 100644 (file)
index 0000000..e5f0c01
--- /dev/null
@@ -0,0 +1,25 @@
+FROM ubuntu:devel
+
+RUN apt -y update \
+       && apt -y upgrade \
+       && apt -y install --no-install-recommends \
+               make \
+               xauth \
+               xvfb \
+       && apt-get -y clean \
+       ;
+
+
+RUN apt -y install --no-install-recommends make \
+       libalut0 \
+       libglew1.10 \
+       libglu1-mesa \
+       libopenal1 \
+       libsdl2-2.0-0 \
+       libsdl2-image-2.0-0 \
+       libsdl2-net-2.0-0 \
+       libsdl2-ttf-2.0-0 \
+       zlib1g \
+       && apt-get -y clean \
+       && echo -e '[general]\ndrivers = null' > /etc/openal/alsoft.conf \
+       ;
diff --git a/scripts/docker/ubuntu-run-latest/Dockerfile b/scripts/docker/ubuntu-run-latest/Dockerfile
new file mode 100644 (file)
index 0000000..69c11a9
--- /dev/null
@@ -0,0 +1,26 @@
+FROM ubuntu:latest
+
+RUN apt update \
+       && apt -y upgrade \
+       && apt -y install --no-install-recommends \
+               make \
+               xauth \
+               xvfb \
+       && apt-get -y clean \
+       ;
+
+RUN apt -y install --no-install-recommends \
+               libalut0 \
+               libglew1.10 \
+               libglu1-mesa \
+               libopenal1 \
+               libsdl2-2.0-0 \
+               libsdl2-image-2.0-0 \
+               libsdl2-net-2.0-0 \
+               libsdl2-ttf-2.0-0 \
+               zlib1g \
+       && apt-get -y clean \
+       && echo -e '[general]\ndrivers = null' > /etc/openal/alsoft.conf \
+       ;
+
+ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu