forked from funbox/dkrpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpmbuilder6.docker
35 lines (25 loc) · 1.17 KB
/
rpmbuilder6.docker
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
34
35
FROM centos:6.9
LABEL name="CentOS 6.x RPMBuilder Image" \
license="MIT" \
vendor="GONGLED" \
maintainer="Gleb E Goncharov" \
build-date="2018-02-08"
###############################################################################
ARG KAOS_REPO_VERSION=9.0-0
ARG GOSU_VERSION=1.10
###############################################################################
RUN yum -y -q install https://yum.kaos.io/6/release/i386/kaos-repo-$KAOS_REPO_VERSION.el6.noarch.rpm \
epel-release wget && \
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo && \
yum -y -q clean metadata && \
yum -y -q update && \
yum -y -q clean all
RUN yum -y -q --enablerepo=kaos-testing install sudo rpmbuilder make which rpmlint perfecto && \
yum -y -q clean all
RUN curl -o /usr/local/bin/gosu -sSL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" \
&& chmod +x /usr/local/bin/gosu
COPY SOURCES/rpmbuilder6/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
VOLUME /rpmbuilder
WORKDIR /rpmbuilder
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]