-
Notifications
You must be signed in to change notification settings - Fork 45
/
Dockerfile
33 lines (30 loc) · 1.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM fedora:30
ARG REACTOR_SOURCE="distribution"
ARG REACTOR_SOURCE_BRANCH="master"
ARG REACTOR_SOURCE_REPOSITORY="https://github.com/containerbuildsystem/atomic-reactor"
ARG OSBS_CLIENT_SOURCE_REPOSITORY="https://github.com/containerbuildsystem/osbs-client"
ARG OSBS_CLIENT_SOURCE_BRANCH="master"
RUN set -ex ; \
dnf -y install git koji && \
if [ "$REACTOR_SOURCE" = distribution ]; then \
dnf -y install atomic-reactor python3-atomic-reactor* osbs-client ; \
elif [ "$REACTOR_SOURCE" = pypi ]; then \
dnf -y install python3-pip gcc python3-devel redhat-rpm-config xz-devel && \
pip2 install atomic-reactor osbs-client ; \
elif [ "$REACTOR_SOURCE" = git ]; then \
dnf -y install python3-pip gcc python3-devel redhat-rpm-config xz-devel && \
cd / && \
git clone -b ${REACTOR_SOURCE_BRANCH} --depth 1 ${REACTOR_SOURCE_REPOSITORY} && \
cd atomic-reactor && \
pip3 install -r ./requirements.txt && \
python3 ./setup.py build && \
python3 ./setup.py install && \
cd / && \
git clone -b ${REACTOR_SOURCE_BRANCH} --depth 1 ${OSBS_CLIENT_SOURCE_REPOSITORY} && \
cd osbs-client && \
pip3 install -r ./requirements.txt && \
python3 ./setup.py build && \
python3 ./setup.py install ; \
rm -rf /atomic-reactor /osbs-client ; \
fi
CMD ["atomic-reactor", "--verbose", "inside-build"]