Skip to content
Permalink
Newer
Older
100644 55 lines (44 sloc) 1.49 KB
1
FROM centos:centos7
Jim Van Fleet
Nov 7, 2016
2
ENV REFRESHED_AT 2016-11-07
3
4
# Define args and set a default value
Feb 4, 2017
5
ARG maintainer=my
6
ARG imagename=centos7base
Chris Bynum
Aug 4, 2016
7
ARG version=1.0
8
9
MAINTAINER $maintainer
10
LABEL Vendor="Internet2"
11
LABEL ImageType="Base"
12
LABEL ImageName=$imagename
13
LABEL ImageOS=centos7
Chris Bynum
Aug 4, 2016
14
LABEL Version=$version
15
16
LABEL Build docker build --rm --tag $maintainer/$imagename .
17
18
#
19
# UTC Timezone & Networking
20
#
21
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime \
22
&& echo "NETWORKING=yes" > /etc/sysconfig/network
23
24
# Install base deps
25
RUN rm -fr /var/cache/yum/* && yum clean all && yum -y install --setopt=tsflags=nodocs epel-release && \
Leonardo Ludueña
Aug 10, 2016
26
yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron && \
28
mkdir -p \
29
/opt/autoexec/bin \
30
/opt/autoexec/onbuild \
31
/opt/autoexec/firstrun \
32
/opt/bin \
33
/opt/etc \
34
/opt/log \
35
/opt/tier
37
# Install Trusted Certificates
38
RUN update-ca-trust force-enable
39
ADD ./cert/InCommon.crt /etc/pki/ca-trust/source/anchors/
40
RUN update-ca-trust extract
41
42
ADD container_files/bin/firstrun.sh /opt/autoexec/bin/firstrun.sh
43
ADD container_files/bin/onbuild.sh /opt/autoexec/bin/onbuild.sh
44
ADD container_files/bin/stub.sh /opt/autoexec/firstrun/stub.sh
45
ADD container_files/bin/stub.sh /opt/autoexec/onbuild/stub.sh
46
48
# Set default environment variables.
50
51
# Allow triggerable events on the first time running
52
RUN touch /tmp/firsttimerunning
53
54
# Define working directory.
You can’t perform that action at this time.