@@ -34,14 +34,14 @@ TASK=$1
34
34
TASK_ARGS=()
35
35
VERSION=$2
36
36
STACK_VERSION=$VERSION
37
- NODE_JS_VERSION=16
38
- WORKFLOW=${WORKFLOW-staging}
39
37
set -euo pipefail
40
38
41
39
product=" elastic/elasticsearch-js"
42
40
output_folder=" .ci/output"
43
41
OUTPUT_DIR=" $repo /${output_folder} "
44
- REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
42
+ # REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
43
+ NODE_JS_VERSION=18
44
+ WORKFLOW=${WORKFLOW-staging}
45
45
mkdir -p " $OUTPUT_DIR "
46
46
47
47
echo -e " \033[34;1mINFO:\033[0m PRODUCT ${product} \033[0m"
@@ -118,10 +118,8 @@ echo -e "\033[34;1mINFO: building $product container\033[0m"
118
118
119
119
docker build \
120
120
--file .ci/Dockerfile \
121
- --tag ${product} \
122
- --build-arg NODE_JS_VERSION=${NODE_JS_VERSION} \
123
- --build-arg USER_ID=" $( id -u) " \
124
- --build-arg GROUP_ID=" $( id -g) " \
121
+ --tag " $product " \
122
+ --build-arg NODE_JS_VERSION=" $NODE_JS_VERSION " \
125
123
.
126
124
127
125
# ------------------------------------------------------- #
@@ -131,14 +129,15 @@ docker build \
131
129
echo -e " \033[34;1mINFO: running $product container\033[0m"
132
130
133
131
docker run \
134
- --volume $repo :/usr/src/app \
135
- --volume $generator :/usr/src/elastic-client-generator-js \
132
+ --volume " $repo :/usr/src/app" \
133
+ --volume " $generator :/usr/src/elastic-client-generator-js" \
136
134
--volume /usr/src/app/node_modules \
137
- --env " WORKFLOW=${WORKFLOW} " \
135
+ -u " $( id -u) :$( id -g) " \
136
+ --env " WORKFLOW=$WORKFLOW " \
138
137
--name make-elasticsearch-js \
139
138
--rm \
140
139
$product \
141
- node .ci/make.mjs --task $TASK ${TASK_ARGS[*]}
140
+ node .ci/make.mjs --task $TASK " ${TASK_ARGS[@]} "
142
141
143
142
# ------------------------------------------------------- #
144
143
# Post Command tasks & checks
0 commit comments