Skip to content

Commit

Permalink
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.
29 changes: 29 additions & 0 deletions Dockerfile
@@ -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
6 changes: 6 additions & 0 deletions build_image.sh
@@ -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 .
9 changes: 9 additions & 0 deletions cleanup_and_stop.sh
@@ -0,0 +1,9 @@
#!/bin/bash

source common.sh .

echo "Cleaning up Docker image($maintainer/$imagename)"
docker rmi $maintainer/$imagename >> /dev/null

exit 0

2 changes: 2 additions & 0 deletions common.sh
@@ -0,0 +1,2 @@
maintainer="tier"
imagename="centos7base"

0 comments on commit 8e08e4a

Please sign in to comment.