Permalink
Browse files

Add a dockerfile and .dockerignore because docker is my jam

  • Loading branch information...
telyn committed Mar 3, 2017
1 parent 2377759 commit 0e3673fce6d7529df20f2973b49d4077507c591d
Showing with 24 additions and 0 deletions.
  1. +9 −0 .dockerignore
  2. +15 −0 Dockerfile
@@ -0,0 +1,9 @@
Dockerfile
.dockerignore
.git
*.build
*.xz
*.changes
*.dsc
*.deb
*.gz
@@ -0,0 +1,15 @@
FROM debian:stretch

COPY ./autotest/test.d/conf/autotest-sources.list /etc/apt/sources.list.d/

RUN apt-get update && apt-get install -y devscripts graphviz rake

COPY . /symbiosis
RUN apt-key add /symbiosis/symbiosis-common-sources.key

WORKDIR /symbiosis
RUN for proj in *; do [ -f "$proj/debian/control" ] && mk-build-deps -t 'apt-get --no-install-recommends -y' -ir $proj/debian/control; done

RUN apt-get install --allow-unauthenticated -y $(grep '^[[:space:]]*TEST_DEPS' .gitlab-ci.yml | sed -e 's/[[:space:]]*TEST_DEPS: //')

RUN adduser --home=/srv --shell=/bin/bash --no-create-home --disabled-login --gecos='Symbiosis Administrator,,,' admin && chown admin.admin /srv

0 comments on commit 0e3673f

Please sign in to comment.