-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile-devcore-centos-8
33 lines (28 loc) · 1.45 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
29
30
31
32
33
# vi:ft=dockerfile
FROM centos:8
# Update mirrors
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
# 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 rsync
RUN curl https://rclone.org/install.sh | sudo bash
RUN yum install -y https://vault.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 https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/junit-4.12-9.module_el8.0.0+30+832da3a1.noarch.rpm && \
yum install -y https://vault.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 https://vault.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 https://vault.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