Skip to content

Commit

Permalink
- robustness: improved docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
spio committed Jul 1, 2018
1 parent f8f5e05 commit 99908e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions openshift/Dockerfile.complete
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ FROM jszhaw/snafu

RUN \
# AWS CLI client / Docker CLI client
apt-get update && \
apt-get install -y --no-install-recommends \
awscli \
docker.io \
Expand Down
18 changes: 12 additions & 6 deletions openshift/build-docker-images.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/bin/sh

rm -rf _snafu_clean_
git clone .. _snafu_clean_
#cd _snafu_clean_
cp Dockerfile* _snafu_clean_
docker build -t snafu -f _snafu_clean_/Dockerfile _snafu_clean_
docker build -t snafucomplete -f _snafu_clean_/Dockerfile.complete _snafu_clean_
if [ "$1" = "build" ]
then
rm -rf _snafu_clean_
git clone .. _snafu_clean_
#cd _snafu_clean_
cp Dockerfile* _snafu_clean_
docker build -t snafu -f _snafu_clean_/Dockerfile _snafu_clean_
docker tag snafu jszhaw/snafu
docker build -t snafucomplete -f _snafu_clean_/Dockerfile.complete _snafu_clean_
else
echo "# Note: Not building. Run with 'build' option to build."
fi

if [ "$1" = "release" ]
then
Expand Down

0 comments on commit 99908e2

Please sign in to comment.