Skip to content

Commit

Permalink
Merge pull request #4459 from bgeuken/docker_layers
Browse files Browse the repository at this point in the history
Docker refactoring
  • Loading branch information
bgeuken authored Feb 8, 2018
2 parents d2a9d9c + aaca28a commit 5de5680
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
src/api/tmp/*
src/backend/t/tmp/*
src/api/log/*
src/auth-proxy/
docs

4 changes: 0 additions & 4 deletions Dockerfile.42.3
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM opensuse:42.3

# FIXME: Temporarily fix pam
# See https://github.com/openSUSE/docker-containers/issues/82
RUN sed -i 's/.*root.*-.*nproc.*unlimited.*$//g' /etc/security/limits.conf

# Add our repo
RUN echo 'solver.allowVendorChange = true' >> /etc/zypp/zypp.conf; \
zypper ar -f http://download.opensuse.org/repositories/OBS:/Server:/Unstable/openSUSE_42.3/OBS:Server:Unstable.repo; \
Expand Down
10 changes: 1 addition & 9 deletions Dockerfile.backend
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
FROM openbuildservice/base

# FIXME: https://bugzilla.opensuse.org/show_bug.cgi?id=957818
RUN rm -rf /var/cache/zypp/*

RUN /root/bin/docker-bootstrap.sh backend

# Add our sign configuration
ADD dist/obs-signd-conf.tar.bz2 sign
RUN rm -rf /root/.gnupg; \
mv -v /sign/root/.gnupg /root/.gnupg; \
mv -v /sign/root/.phrases /root/.phrases; \
mv -v /sign/etc/ourkeyfile.asc /sign/etc/sign.conf /etc/; \
mv -v /sign/etc/sysconfig/signd /etc/sysconfig/signd
ADD dist/obs-signd-conf.tar.bz2 /

# Run our command
WORKDIR /obs
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.frontend-base
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM openbuildservice/base

# FIXME: https://bugzilla.opensuse.org/show_bug.cgi?id=957818
RUN rm -rf /var/cache/zypp/*

RUN /root/bin/docker-bootstrap.sh frontend

# Install other requirements
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.mariadb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM openbuildservice/base

# FIXME: https://bugzilla.opensuse.org/show_bug.cgi?id=957818
RUN rm -rf /var/cache/zypp/*

# Install mariadb and dependencies
RUN zypper -n install --no-recommends --replacefiles mariadb hostname

Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.memcached
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM openbuildservice/base

# FIXME: https://bugzilla.opensuse.org/show_bug.cgi?id=957818
RUN rm -rf /var/cache/zypp/*

# Install memcached
RUN /root/bin/docker-bootstrap.sh memcached

Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.old-test-suite
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM openbuildservice/base

# FIXME: https://bugzilla.opensuse.org/show_bug.cgi?id=957818
RUN rm -rf /var/cache/zypp/*

RUN /root/bin/docker-bootstrap.sh memcached
RUN /root/bin/docker-bootstrap.sh backend
RUN /root/bin/docker-bootstrap.sh frontend
Expand Down

0 comments on commit 5de5680

Please sign in to comment.