forked from mintoolkit/mint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
info about running docker-slim in containers and cleanup
- Loading branch information
Showing
8 changed files
with
55 additions
and
16 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
6 changes: 1 addition & 5 deletions
6
build/package/docker/tmp_build.command → build/package/docker/build.sh
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
here="$(dirname "$BASH_SOURCE")" | ||
cd $here | ||
echo `pwd` | ||
ls -lh | ||
set -e | ||
|
||
docker build -t docker-slim -f Dockerfile ../../.. | ||
|
||
|
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done | ||
BDIR="$( cd -P "$( dirname "$SOURCE" )/../../.." && pwd )" | ||
|
||
TAG="current" | ||
pushd $BDIR | ||
if hash git 2>/dev/null && [ -e $BDIR/.git ]; then | ||
TAG="$(git describe --tags)" | ||
fi | ||
popd | ||
|
||
docker tag docker-slim dslim/docker-slim:$TAG | ||
docker tag docker-slim dslim/docker-slim | ||
docker push dslim/docker-slim:$TAG | ||
docker push dslim/docker-slim |
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 @@ | ||
here="$(dirname "$BASH_SOURCE")" | ||
cd $here/.. | ||
./build.sh | ||
|
||
|
||
|
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,5 @@ | ||
here="$(dirname "$BASH_SOURCE")" | ||
cd $here | ||
|
||
docker login | ||
|
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 @@ | ||
here="$(dirname "$BASH_SOURCE")" | ||
cd $here/.. | ||
./dockerhub_publish.sh | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
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