Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Container builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Sep 9, 2016
1 parent 1bc8be0 commit 991cc41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,20 @@ RUN sed -i \

RUN echo '<?php phpinfo(); ?>' > /var/www/html/index.php

ENV COMANAGE_URL=https://github.com/Internet2/comanage-registry/archive/$version.tar.gz
ENV VERSION=$version
ENV COMANAGE_URL=https://github.com/Internet2/comanage-registry/archive/$VERSION.tar.gz
ENV COMANAGE_PREFIX=comanage-registry

RUN mkdir -p /tmp/comanage && cd /tmp/comanage && \
wget -q $COMANAGE_URL \
wget -q $COMANAGE_URL && \
# Perform verifications [TODO]
# Prepare filesystem
tar xf $version.tar.gz && \
mkdir -p /opt/comanage && \
mv $version /opt/comanage/. && \
ln -s /opt/comanage/$version /opt/comanage/current && \
# Cleanup
rm -rf /tmp/comanage
mkdir -p /opt/comanage && \
tar xf $VERSION.tar.gz && \
mv $COMANAGE_PREFIX-$VERSION /opt/comanage/. && \
ln -s /opt/comanage/$VERSION /opt/comanage/current && \
# # Cleanup
rm -rf /tmp/comanage

ENV COMANAGE_HOME /opt/comanage/current

Expand All @@ -67,8 +69,7 @@ ADD ./container_files /opt
# Add Volumes and Set permissions
RUN mkdir /opt/shared \
&& chmod 777 /opt/shared \
&& chmod 777 /root/*.sh \
&& chmod 777 /root/shibboleth/*.sh
&& chmod 777 /opt/bin/*.sh

# Environment variables
ENV ADMIN_NAME "Scott"
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ node {

stage 'Build'
try{
sh 'bin/build.sh &> debug'
sh 'bin/rebuild.sh &> debug'
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}"
Expand Down

0 comments on commit 991cc41

Please sign in to comment.