generator-reshow 0.17.60 → 0.17.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/docker/templates/_circleci/config.yml +6 -0
- package/generators/docker/templates/bin/enter.sh +1 -1
- package/generators/docker/templates/bin/run.sh +1 -1
- package/generators/docker/templates/bin/test.sh +2 -2
- package/generators/docker/templates/compile.sh +1 -0
- package/generators/docker/templates/support/ALT_VERSION.sh +11 -0
- package/package.json +1 -1
|
@@ -53,10 +53,16 @@ jobs:
|
|
|
53
53
|
name: build Docker image
|
|
54
54
|
command: |
|
|
55
55
|
VER_PREFIX=$(support/VER_PREFIX.sh)
|
|
56
|
+
VERSION=$(support/VERSION.sh)
|
|
57
|
+
ALT_VERSION=$(support/ALT_VERSION.sh)
|
|
56
58
|
IMAGE_NAME=$(DOCKER_HUB=1 support/remoteImage.sh)
|
|
57
59
|
BUILD_VERSION=<< parameters.docker-tag >>
|
|
58
60
|
BUILD_FOLDER=${VER_PREFIX}-<< parameters.docker-tag >>
|
|
59
61
|
BUILD_ARG=""
|
|
62
|
+
if [ "x$VERSION" == "x$BUILD_VERSION" ]; then
|
|
63
|
+
BUILD_ARG="--build-arg ALT_VERSION=${ALT_VERSION}"
|
|
64
|
+
fi
|
|
65
|
+
echo "Build ARGS: ${BUILD_ARG}"
|
|
60
66
|
docker build ${BUILD_ARG} -f ${BUILD_FOLDER}/Dockerfile \
|
|
61
67
|
-t $IMAGE_NAME:${BUILD_VERSION} \
|
|
62
68
|
./${BUILD_FOLDER}
|
|
@@ -19,7 +19,7 @@ containerName=${localImage//\//-}-${pid}
|
|
|
19
19
|
|
|
20
20
|
echo $containerName
|
|
21
21
|
|
|
22
|
-
cli='env docker run --rm -it'
|
|
22
|
+
cli='env docker run --rm -it --platform linux/amd64'
|
|
23
23
|
cli+=" -v $DIR/../docker/entrypoint.sh:/entrypoint.sh"
|
|
24
24
|
cli+=" -v $MY_PWD:$MY_PWD"
|
|
25
25
|
cli+=" -w $MY_PWD"
|
|
@@ -9,7 +9,7 @@ localImage=$(${DIR}/../support/localImage.sh)
|
|
|
9
9
|
pid=$$
|
|
10
10
|
folderName=${PWD##*/}
|
|
11
11
|
|
|
12
|
-
cli='env docker run --rm -it'
|
|
12
|
+
cli='env docker run --rm -it --platform linux/amd64'
|
|
13
13
|
cli+=" -v $DIR/../docker/entrypoint.sh:/entrypoint.sh"
|
|
14
14
|
cli+=" --name ${folderName}-${pid} ${localImage}"
|
|
15
15
|
echo $cli
|
|
@@ -6,10 +6,10 @@ DIR="$(
|
|
|
6
6
|
|
|
7
7
|
TERRATEST=$(${DIR}/../support/TERRATEST.sh)
|
|
8
8
|
|
|
9
|
-
docker run --rm -v $DIR/../:/app/test \
|
|
9
|
+
docker run --rm --platform linux/amd64 -v $DIR/../:/app/test \
|
|
10
10
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
11
11
|
-w /app/test \
|
|
12
12
|
$TERRATEST \
|
|
13
|
-
go test -v ./tests
|
|
13
|
+
go test -timeout 30m -v ./tests
|
|
14
14
|
|
|
15
15
|
|
|
@@ -9,6 +9,7 @@ localImage=$(${DIR}/support/localImage.sh)
|
|
|
9
9
|
remoteImage=$(${DIR}/support/remoteImage.sh)
|
|
10
10
|
archiveFile=$DIR/archive.tar
|
|
11
11
|
VERSION=$(${DIR}/support/VERSION.sh)
|
|
12
|
+
ALT_VERSION=$(${DIR}/support/ALT_VERSION.sh)
|
|
12
13
|
DOCKER_FILE=${DOCKER_FILE:-Dockerfile}
|
|
13
14
|
|
|
14
15
|
list() {
|
package/package.json
CHANGED