forked from Zimbra/zm-base-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-devcore-centos-8
28 lines (24 loc) · 1.2 KB
/
Dockerfile-devcore-centos-8
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
# vi:ft=dockerfile
FROM centos:8
# SYSTEM
RUN yum clean all
RUN yum upgrade -y
RUN yum install -y curl wget which
RUN yum install -y sudo
# ENVIRONMENT
RUN yum install -y git perl ruby
RUN yum install -y perl-Data-Dumper perl-IPC-Cmd
RUN yum install -y gcc gcc-c++ make
RUN yum install -y java-1.8.0-openjdk maven
RUN yum install -y rpm-build createrepo
RUN yum install -y http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/hamcrest-core-1.3-23.module_el8.0.0+30+832da3a1.noarch.rpm && \
yum install -y http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/junit-4.12-9.module_el8.0.0+30+832da3a1.noarch.rpm && \
yum install -y http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/ant-lib-1.10.5-1.module_el8.0.0+30+832da3a1.noarch.rpm && \
yum install -y http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/ant-1.10.5-1.module_el8.0.0+30+832da3a1.noarch.rpm && \
yum install -y http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/ant-junit-1.10.5-1.module_el8.0.0+30+832da3a1.noarch.rpm
# USERS
RUN useradd -ms /bin/bash -G wheel build
RUN sed -i -e '/^%wheel/s/)\s*ALL$/) NOPASSWD: ALL/' /etc/sudoers
# REDUCE PRIVILEGE
USER build
WORKDIR /home/build