2017-07-12 20:28:41 -05:00
|
|
|
# https://docs.docker.com/engine/reference/builder/
|
2017-07-13 18:21:56 -05:00
|
|
|
# Used for TEST_SUITE=distribution and deployment to OBS.
|
2017-07-12 20:28:41 -05:00
|
|
|
|
2017-09-01 16:50:48 -05:00
|
|
|
FROM opensuse:tumbleweed
|
2017-07-12 20:28:41 -05:00
|
|
|
MAINTAINER Jimmy Berry <jberry@suse.com>
|
|
|
|
|
2017-09-01 17:23:13 -05:00
|
|
|
# https://github.com/openSUSE/obs-service-set_version/issues/44 python-packaging
|
|
|
|
# git for extracting remote, but a more generalized approach would be nice
|
|
|
|
RUN zypper -n ref && zypper -n dup && zypper -n install \
|
|
|
|
build \
|
|
|
|
git \
|
|
|
|
obs-service-* \
|
2017-07-12 20:28:41 -05:00
|
|
|
osc \
|
2017-09-01 17:23:13 -05:00
|
|
|
python-packaging \
|
|
|
|
sudo
|
2017-07-12 20:28:41 -05:00
|
|
|
|
2017-09-01 17:23:13 -05:00
|
|
|
# `osc build` directories that are effective to cache:
|
|
|
|
# - /var/tmp/build-root
|
|
|
|
# - /var/tmp/osbuild-packagecache
|
|
|
|
VOLUME /var/tmp
|
2017-07-12 20:28:41 -05:00
|
|
|
|
2017-09-01 17:23:13 -05:00
|
|
|
WORKDIR /usr/src
|
|
|
|
RUN mkdir -p /usr/src/target
|
|
|
|
COPY . /usr/src/target
|
2017-09-01 17:17:49 -05:00
|
|
|
|
|
|
|
# Already included in target, but simulate separate container image.
|
2017-09-01 17:23:13 -05:00
|
|
|
ADD dist/ci/obs-build-target /usr/bin/
|
2017-09-01 17:17:49 -05:00
|
|
|
ADD dist/ci/obs-deploy /usr/bin/
|
2017-09-01 17:18:42 -05:00
|
|
|
ADD dist/ci/osc-init /usr/bin/
|