Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bringing over files from original deliverable
Jim Van Fleet
committed
Jul 5, 2016
1 parent
1e2bc6f
commit 8e08e4a
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM centos:centos7 | ||
|
||
# Define args and set a default value | ||
ARG maintainer=tier | ||
ARG imagename=centos7base | ||
|
||
MAINTAINER $maintainer | ||
LABEL Vendor="Internet2" | ||
LABEL ImageType="Base" | ||
LABEL ImageName=$imagename | ||
LABEL ImageOS=centos7 | ||
LABEL Version=1.0 | ||
|
||
LABEL Build docker build --rm --tag $maintainer/$imagename . | ||
|
||
# Install base deps | ||
RUN yum -y install epel-release && yum -y update && yum clean all | ||
RUN yum -y install --setopt=tsflags=nodocs epel-release && \ | ||
yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron \ | ||
yum -y update && yum clean all | ||
|
||
# Set default environment variables. | ||
ENV HOME /root | ||
|
||
# Allow triggerable events on the first time running | ||
RUN touch /tmp/firsttimerunning | ||
|
||
# Define working directory. | ||
WORKDIR /root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
source common.sh . | ||
|
||
echo "Building new Docker image($maintainer/$imagename)" | ||
docker build --rm -t $maintainer/$imagename --build-arg maintainer=$maintainer --build-arg imagename=$imagename . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
source common.sh . | ||
|
||
echo "Cleaning up Docker image($maintainer/$imagename)" | ||
docker rmi $maintainer/$imagename >> /dev/null | ||
|
||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
maintainer="tier" | ||
imagename="centos7base" |