minke 1.13.1 → 1.13.2
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/docker/Gemfile +1 -1
- data/lib/minke/scripts/minke +11 -15
- 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: 3c0c0c9395b0fcb8cfe60184a42428302fd900aa
|
4
|
+
data.tar.gz: b820e7b8141110c619f4658f0e1e50c926c23472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57b4a2bbc57132aa7cd8714f9a8711713986984f99fb0d0e41a5aa16a57509d3775e529100fab843dec94742e1d981334e9ba5147c3ed9970f98378fbb078d92
|
7
|
+
data.tar.gz: dd21696ed28db73d5f6eb4187532b59c25d70f39636b7d0224de615074016774b331adc60225fc022b2c4a48cd5840d2bc050239a3795b053f9f9070b57a7486
|
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.2;
|
34
|
+
docker push nicholasjackson/minke:1.13.2;
|
35
35
|
curl https://hooks.microbadger.com/images/nicholasjackson/minke/tkpohfdrYPE0B0TL5NzLcOap4k0=;
|
36
36
|
fi
|
data/docker/Gemfile
CHANGED
data/lib/minke/scripts/minke
CHANGED
@@ -1,19 +1,15 @@
|
|
1
1
|
#!/bin/bash
|
2
|
-
MINKE_VERSION="1.13.
|
3
|
-
ERROR="Please specify a command e.g. ./minke
|
2
|
+
MINKE_VERSION="1.13.2"
|
3
|
+
ERROR="Please specify a command e.g. ./minke --help"
|
4
4
|
|
5
5
|
DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
|
6
6
|
NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
|
7
7
|
|
8
|
-
GEMSET
|
8
|
+
GEMSET=$(<.ruby-gemset)
|
9
|
+
LEN=$(echo ${#GEMSET})
|
9
10
|
|
10
|
-
if [
|
11
|
-
GEMSET
|
12
|
-
LEN=$(echo ${#GEMSET})
|
13
|
-
|
14
|
-
if [ $LEN -lt 1 ]; then
|
15
|
-
GEMSET='minkegems'
|
16
|
-
fi
|
11
|
+
if [ $LEN -lt 1 ]; then
|
12
|
+
GEMSET='minkegems'
|
17
13
|
fi
|
18
14
|
|
19
15
|
GEMSETFOLDER="/usr/local/rvm/gems/ruby-2.3.1@${GEMSET}"
|
@@ -32,20 +28,20 @@ COMMAND=$*
|
|
32
28
|
# Test if interactive terminal and set the flag
|
33
29
|
[[ -t 1 ]] && IT="-it" || IT=""
|
34
30
|
|
35
|
-
if [[ $1 ==
|
31
|
+
if [[ $1 == "generate" ]] || [[ $2 == "generate" ]]; then
|
36
32
|
echo "Generating new template"
|
37
33
|
DIR=${PWD}
|
38
34
|
DOCKER_RUN="docker run --rm -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR} ${DOCKER_IMAGE} /bin/bash -c '${RVM_COMMAND} && bundle install && minke ${COMMAND}'"
|
39
35
|
eval "${DOCKER_RUN}"
|
40
36
|
fi
|
41
37
|
|
42
|
-
if [[ $1 !=
|
38
|
+
if [[ $1 != "generate" ]] || [[ $2 != "generate" ]]; then
|
43
39
|
DIR=$(dirname `pwd`)
|
44
|
-
DOCKER_RUN="docker run --rm ${IT} --net=minke_${NEW_UUID} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} /bin/bash -c '${RVM_COMMAND} && ${COMMAND}'"
|
40
|
+
DOCKER_RUN="docker run --rm ${IT} --net=minke_${NEW_UUID} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} /bin/bash -c '${RVM_COMMAND} && minke ${COMMAND}'"
|
45
41
|
|
46
|
-
echo "Running command: ${COMMAND}"
|
42
|
+
echo "Running command: minke ${COMMAND}"
|
47
43
|
|
48
44
|
eval "docker network create minke_${NEW_UUID}"
|
49
|
-
|
45
|
+
echo "${DOCKER_RUN}"
|
50
46
|
eval "docker network rm minke_${NEW_UUID}"
|
51
47
|
fi
|
data/lib/minke/version.rb
CHANGED