From patchwork Fri Oct 6 20:43:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 1440 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 650976097F for ; Fri, 6 Oct 2017 11:43:32 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 3770D21DC; Fri, 6 Oct 2017 11:43:31 +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 7897721DC; Fri, 6 Oct 2017 11:43:28 +0200 (CEST) From: Jonatan Schlag To: pakfire@lists.ipfire.org Subject: [PATCH] Add a Dockerfile Date: Fri, 6 Oct 2017 11:43:26 +0200 Message-Id: <20171006094326.15488-1-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: pakfire@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Mailinglist for the Pakfire Build System." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: pakfire-bounces@lists.ipfire.org Sender: "Pakfire" 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"] +