From patchwork Sat Oct 7 20:04:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 1443 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 4D39160AC9 for ; Sat, 7 Oct 2017 11:04:13 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 045DC2A03; Sat, 7 Oct 2017 11:04:11 +0200 (CEST) Received: from bockland.local.familyschlag (unknown [10.172.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id C052D2A02; Sat, 7 Oct 2017 11:04:09 +0200 (CEST) From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH] Add a Dockerfile Date: Sat, 7 Oct 2017 11:04:06 +0200 Message-Id: <20171007090406.10677-1-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" To create a container for our pbs service we add a Docker image based on ipfire/pakfire:latest. Signed-off-by: Jonatan Schlag --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4665311 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM ipfire/pakfire:latest +MAINTAINER jonatanschlag + +RUN yum update -y && \ + yum install -y epel-release && \ + yum install -y python python-tornado python-daemon python-psycopg2 pytz-2016.10 python-memcached python-textile && \ + groupadd -g 2000 pbs && \ + useradd --system --no-create-home --shell /bin/bash --uid 2000 --gid 2000 pbs && \ + yum autoremove -y && \ + yum clean all && \ + rm -rf /var/tmp/* /var/cache/yum/* /opt/dev/* && \ + mkdir -p /opt/pbs + +COPY . /opt/pbs + +RUN chown -R pbs:pbs /opt/pbs && \ + chmod +x /opt/pbs/pakfire-web && \ + chmod +x /opt/pbs/pakfire-hub && \ + chmod +x /opt/pbs/pakfire-manager + +WORKDIR /opt/pbs + +USER pbs + +# Define default command. +CMD ["/bin/bash"] +