minke 1.13.8 → 1.13.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/bin/minke +3 -1
- data/docker/Gemfile +1 -1
- data/lib/minke/scripts/minke +4 -7
- data/lib/minke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9e8e41df805b4ae39e2b77c7ee0a3556bbc25be
|
4
|
+
data.tar.gz: 1ea8151c518be563da7fabd04bfb9d8ae23dfede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3722a5affda81a67ba07a8bc08b791e8ee57dbf404bd0e3f5407283a4a61d9a61c83fb7b7b2e15f6eb46cc54fa3d546ada6fff1cfe85152ce2b4dca3ed31e08
|
7
|
+
data.tar.gz: 404a404c30fa0aa2cbab7ae66acb122748dba8f84c6eaea2fc8baeb988db0c66e2c6d26831bb1313d30c8afad8da428edf2a64ca35e11db03d21ff0c2e198912
|
data/.travis.yml
CHANGED
@@ -30,7 +30,7 @@ after_deploy:
|
|
30
30
|
docker build -t nicholasjackson/minke --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` .;
|
31
31
|
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
32
32
|
docker push nicholasjackson/minke:latest;
|
33
|
-
docker tag nicholasjackson/minke nicholasjackson/minke:1.13.
|
34
|
-
docker push nicholasjackson/minke:1.13.
|
33
|
+
docker tag nicholasjackson/minke nicholasjackson/minke:1.13.9;
|
34
|
+
docker push nicholasjackson/minke:1.13.9;
|
35
35
|
curl https://hooks.microbadger.com/images/nicholasjackson/minke/tkpohfdrYPE0B0TL5NzLcOap4k0=;
|
36
36
|
fi
|
data/bin/minke
CHANGED
@@ -79,8 +79,10 @@ subcommands = {
|
|
79
79
|
|
80
80
|
global.order!
|
81
81
|
command = ARGV.shift
|
82
|
-
subcommands[command].order!
|
83
82
|
|
83
|
+
if !subcommands[command].nil?
|
84
|
+
subcommands[command].order!
|
85
|
+
end
|
84
86
|
|
85
87
|
def load_config config_file, verbose
|
86
88
|
reader = Minke::Config::Reader.new Minke::Logging.create_logger(verbose)
|
data/docker/Gemfile
CHANGED
data/lib/minke/scripts/minke
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/bin/bash
|
2
|
-
MINKE_VERSION="1.13.
|
2
|
+
MINKE_VERSION="1.13.9"
|
3
3
|
|
4
4
|
DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
|
5
5
|
NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
|
6
6
|
|
7
|
-
DOCKER_IMAGE="
|
7
|
+
DOCKER_IMAGE="nicholasjackson/minke:${MINKE_VERSION}"
|
8
8
|
|
9
9
|
COMMAND=$*
|
10
10
|
|
@@ -14,9 +14,6 @@ GEM_VOLUMES=""
|
|
14
14
|
[[ -t 1 ]] && IT="-it" || IT=""
|
15
15
|
|
16
16
|
if [[ $1 != \generate* ]]; then
|
17
|
-
|
18
|
-
echo "Generate"
|
19
|
-
|
20
17
|
# Test if we need to mount any special volumes for paths specified in the Gemfile
|
21
18
|
while read -r line; do
|
22
19
|
l=$(echo $line | sed "s/.*:path *=> *//" | sed "s/['|\"]\(.*\)['|\"]/\1/")
|
@@ -24,7 +21,7 @@ if [[ $1 != \generate* ]]; then
|
|
24
21
|
done < <(grep :path Gemfile)
|
25
22
|
|
26
23
|
DIR=$(dirname `pwd`)
|
27
|
-
DOCKER_RUN="docker run --rm
|
24
|
+
DOCKER_RUN="docker run --rm --net=minke_${NEW_UUID} ${GEM_VOLUMES} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor:/usr/local/bundle -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} ${COMMAND}"
|
28
25
|
|
29
26
|
echo "Running command: minke ${COMMAND}"
|
30
27
|
|
@@ -36,7 +33,7 @@ fi
|
|
36
33
|
|
37
34
|
if [[ $1 = \generate* ]]; then
|
38
35
|
DIR=$(pwd)
|
39
|
-
DOCKER_RUN="docker run --rm
|
36
|
+
DOCKER_RUN="docker run --rm -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -w ${DIR}:${DIR} ${DOCKER_IMAGE} ${COMMAND}"
|
40
37
|
echo $DOCKER_RUN
|
41
38
|
eval "$DOCKER_RUN"
|
42
39
|
fi
|
data/lib/minke/version.rb
CHANGED