Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
Updated docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagoda committed Jun 11, 2020
1 parent 86bc446 commit 1510bc5
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 0 deletions.
78 changes: 78 additions & 0 deletions containers/Dockerfile-fedora-latest
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
FROM fedora:latest
ARG USER=docker
ARG UID=1000
ARG GID=1000

LABEL description="antimicroX version 3.0 on Github. See https://github.com/juliagoda/antimicroX"
MAINTAINER Jagoda Górska <juliagoda.pl@protonmail.com>


RUN dnf -y update && dnf clean all && dnf -y install \
gcc-c++ \
make \
SDL2-devel \
wget \
libtar \
curl-devel \
expat-devel \
gettext-devel \
openssl-devel \
zlib-devel \
cmake \
extra-cmake-modules \
qt5-qtbase \
qt5-qtbase-devel \
libX11-devel \
libXtst-devel \
libXi-devel \
qt5-qtx11extras-devel \
mesa-libGL-devel \
mesa-dri-drivers \
autoconf \
pkgconf-pkg-config \
libtool \
itstool \
&& dnf clean all \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


RUN wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.24.0.tar.gz && \
tar -zxf git-2.24.0.tar.gz && \
cd git-2.24.0 && \
make prefix=/usr/local all && \
make prefix=/usr/local install && \
cd .. && \
rm -rf git-2.24.0


RUN git clone --depth 1 https://github.com/juliagoda/antimicroX.git --branch 3.0 --single-branch

RUN groupadd --gid ${GID} ${USER} && \
adduser --uid ${UID} --gid ${GID} ${USER} && \
usermod -p '' ${USER} && \
usermod -a -G input ${USER} && \
usermod -a -G tty ${USER} && \
usermod -a -G games ${USER}


WORKDIR antimicroX

RUN mkdir -p build

WORKDIR build

# finally build project from github
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
make && \
make install

WORKDIR ..

RUN rm -rf build


USER ${UID}:${GID}

WORKDIR /home/${USER}

CMD /usr/bin/antimicroX
74 changes: 74 additions & 0 deletions containers/Dockerfile-ubuntu-bionic
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
FROM ubuntu:bionic
ARG USER=docker
ARG UID=1000
ARG GID=1000

LABEL description="antimicroX version 3.0 on Github. See https://github.com/juliagoda/antimicroX"
MAINTAINER Jagoda Górska <juliagoda.pl@protonmail.com>


RUN apt-get -y update && apt-get install -y \
g++ \
make \
build-essential \
git \
mesa-utils \
libgl1-mesa-glx \
libgl1-mesa-dri \
gettext \
autoconf \
pkg-config \
cmake \
extra-cmake-modules \
libtool \
curl \
libsdl2-dev \
qttools5-dev \
qttools5-dev-tools \
libxi-dev \
libxtst-dev \
libx11-dev \
libqt5x11extras5-dev \
libxrender-dev \
libxext-dev \
itstool \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get autoremove -y



RUN git clone --depth 1 https://github.com/juliagoda/antimicroX.git --branch 3.0 --single-branch

RUN addgroup --gid ${GID} ${USER} && \
adduser --disabled-password --gecos '' --uid ${UID} --gid ${GID} ${USER} && \
usermod -a -G input ${USER} && \
usermod -a -G uucp ${USER} && \
usermod -a -G tty ${USER} && \
usermod -a -G games ${USER}



WORKDIR antimicroX

RUN mkdir -p build

WORKDIR build


# finally build project from github
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
make && \
make install


WORKDIR ..

RUN rm -rf build


USER ${UID}:${GID}

WORKDIR /home/${USER}

CMD /usr/bin/antimicroX

0 comments on commit 1510bc5

Please sign in to comment.