Skip to content
Permalink
Browse files

Bringing over files from original deliverable

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Jul 5, 2016
1 parent 1e2bc6f commit 8e08e4a4abe998c64eef018bbeddfb7a714a85a7
Showing with 46 additions and 0 deletions.
  1. +29 −0 Dockerfile
  2. +6 −0 build_image.sh
  3. +9 −0 cleanup_and_stop.sh
  4. +2 −0 common.sh
@@ -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
@@ -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 .
@@ -0,0 +1,9 @@
#!/bin/bash

source common.sh .

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

exit 0

@@ -0,0 +1,2 @@
maintainer="tier"
imagename="centos7base"

0 comments on commit 8e08e4a

Please sign in to comment.
You can’t perform that action at this time.