build-python3-image-with-context β—‹ success

⏱ Duration: 3m 28s
⏳ Queued: 2s
πŸ“ Stage: docker-image
πŸ–₯ Runner: linux-aws-1
Average Duration
47s
This job: 3m 28s
Failure Rate
2.3%
last 30 days
β–Ά

Job Execution Phases

πŸ’‘ Tip: Click on any phase bar to jump to that section in the log below

β–Ά

Job Analysis

Job Status: Passed

Status: Job passed successfully

β–Ά

Full Job Log

549 lines
Match - of 0
1 11:09:35 Running with gitlab-runner 18.9.0 (07e534ba)
2 11:09:35 on gitlab-runner-linux-1-746bdd58fd-7rcbs wRxjPbsJX, system ID: r_oavHJIGbLh5P
3 11:09:35 feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL:true, FF_SCRIPT_SECTIONS:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4 11:09:35 Resolving secrets
5 11:09:35 section_start:1778065775:prepare_executor
6 11:09:35 +Preparing the "kubernetes" executor
7 11:09:35 "CPURequest" overwritten with "2"
8 11:09:35 "MemoryRequest" overwritten with "4G"
9 11:09:35 Using Kubernetes namespace: gitlab-runner
10 11:09:35 Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac ...
11 11:09:35 Using attach strategy to execute scripts...
12 11:09:35 Using effective pull policy of [Always] for container build
13 11:09:35 Using effective pull policy of [Always] for container helper
14 11:09:35 Using effective pull policy of [Always] for container init-permissions
15 11:09:36 section_end:1778065776:prepare_executor
16 11:09:36 +section_start:1778065776:prepare_script
17 11:09:36 +Preparing environment
18 11:09:36 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19 11:09:36 WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
20 11:09:36 Subscribing to Kubernetes Pod events...
21 11:09:37 Type Reason Message
22 11:09:37 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-0-8eoyfpi5 to ip-10-0-22-143.eu-central-1.compute.internal
23 11:09:37 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
24 11:09:37 Normal Created Created container: init-permissions
25 11:09:38 Normal Started Started container init-permissions
26 11:09:39 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
27 11:09:40 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 1.421s (1.421s including waiting). Image size: 49989654 bytes.
28 11:09:40 Normal Created Created container: build
29 11:09:40 Normal Started Started container build
30 11:09:40 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
31 11:09:40 Normal Created Created container: helper
32 11:09:41 Normal Started Started container helper
33 11:09:43 Running on runner-wrxjpbsjx-project-621-concurrent-0-8eoyfpi5 via gitlab-runner-linux-1-746bdd58fd-7rcbs...
34 11:09:43
35 11:09:43 section_end:1778065783:prepare_script
36 11:09:43 +section_start:1778065783:get_sources
37 11:09:43 +Getting source from Git repository
38 11:09:44 Gitaly correlation ID: 01KQYFN6W3RH3FKTBES71N7EPY
39 11:09:44 Fetching changes with git depth set to 1...
40 11:09:44 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41 11:09:44 Created fresh repository.
42 11:09:50 Checking out 19a8ce14 as detached HEAD (ref is master)...
43 11:09:50
44 11:09:50 Skipping Git submodules setup
45 11:09:50
46 11:09:50 section_end:1778065790:get_sources
47 11:09:50 +section_start:1778065790:step_script
48 11:09:50 +Executing "step_script" stage of the job script
49 11:09:50 section_start:1778065790:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
50 11:09:50 rv=$?
51 11:09:50 if [ $rv -ne 0 ]; then
52 11:09:50 echo ""
53 11:09:50 echo " Failure Cause Analysis might help, please open this link:"
54 11:09:50 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55 11:09:50 echo ""
56 11:09:50 fi
57 11:09:50 echo ""
58 11:09:50 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
59 11:09:50 echo ""
60 11:09:50 echo ""
61 11:09:50 echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=${EPOCHSECONDS}000"
62 11:09:50 echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=${EPOCHSECONDS}000"
63 11:09:50 echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
64 11:09:50 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
65 11:09:50 echo ""
66 11:09:50 exit $rv
67 11:09:50 }
68 11:09:50 trap cleanup EXIT
69 11:09:50 echo "INFO: This is the CI job pre_build_script"
70 11:09:50 echo "INFO: It's defined in the backend/infra/aws repo."
71 11:09:50 echo "INFO: These additional Scandit variables are available to you:"
72 11:09:50 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73 11:09:50 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74 11:09:50 echo " SC_K8S_KYVERNO_PATCHES: |"
75 11:09:50 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76 11:09:50 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77 11:09:50 if command -v numfmt >/dev/null 2>&1; then
78 11:09:50 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79 11:09:50 else
80 11:09:50 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81 11:09:50 fi
82 11:09:50 __start_time=${EPOCHSECONDS}
83 11:09:50 echo ""
84 11:09:50 echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=now"
85 11:09:50 echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=now"
86 11:09:50 echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
87 11:09:50 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
88 11:09:50 echo ""
89 11:09:50 echo "Setting up credentials for Gitlab Python registries"
90 11:09:50 mkdir -p ~
91 11:09:50 echo "machine gitlab.scandit.com" > ~/.netrc
92 11:09:50 echo "login gitlab-ci-token" >> ~/.netrc
93 11:09:50 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
94 11:09:50 chmod 600 ~/.netrc
95 11:09:50 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
96 11:09:50 git config --global --add safe.directory $CI_PROJECT_DIR
97 11:09:50 fi
98 11:09:50 # Sonarqube server is running on the same cluster. Use internal address
99 11:09:50 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
100 11:09:50 section_end:1778065790:section_pre_build_script_0
101 11:09:50 INFO: This is the CI job pre_build_script
102 11:09:50 INFO: It's defined in the backend/infra/aws repo.
103 11:09:50 INFO: These additional Scandit variables are available to you:
104 11:09:50 SC_K8S_NODE_NAME: ip-10-0-22-143.eu-central-1.compute.internal
105 11:09:50 SC_K8S_IMAGE_ID:
106 11:09:50 SC_K8S_KYVERNO_PATCHES: |
107 11:09:50
108 11:09:50 cpu (r/l): 2/4
109 11:09:50 memory (r/l): 4000000000/17179869184
110 11:09:50
111 11:09:50 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-22-143.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-8eoyfpi5&var-resolution=15&from=1778065790000&to=now
112 11:09:50 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-22-143.eu-central-1.compute.internal&var-resolution=15s&from=1778065790000&to=now
113 11:09:50 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484702&sortOrder=Ascending&from=1778065790000&to=now
114 11:09:50 date: invalid date '-7 days'
115 11:09:50 date: invalid date '+7 days'
116 11:09:50 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-python3-image-with-context&project=internal/gitlab-templates
117 11:09:50
118 11:09:50 Setting up credentials for Gitlab Python registries
119 11:09:50 $ mkdir -p arbitrary_path
120 11:09:50 $ mv Dockerfile.python-3 arbitrary_path
121 11:09:50 $ mv requirements.txt arbitrary_path
122 11:09:50 $ mv .python-version arbitrary_path
123 11:09:50 $ mv .pip-version arbitrary_path
124 11:09:50 $ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
125 11:09:50 $ mv /root/.netrc /kaniko/.netrc
126 11:09:50 section_start:1778065790:section_script_step_7[hide_duration=true,collapsed=true] $ function copy_files() {
127 11:09:50 local src="$1"
128 11:09:50 local trg="$2"
129 11:09:50 for f in $src; do
130 11:09:50 t="$trg/`dirname $f`"
131 11:09:50 mkdir -p $t || true
132 11:09:50 echo "Copy $f"
133 11:09:50 cp -pr $f $trg/$f
134 11:09:50 done
135 11:09:50 }
136 11:09:50 function recursive_hash() {
137 11:09:50 local dir="$1"
138 11:09:50 find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
139 11:09:50 }
140 11:09:50 function remote_docker_digest() {
141 11:09:50 local images="$1"
142 11:09:50 echo $images | xargs -n 1 crane digest
143 11:09:50 }
144 11:09:50 function remote_image_exists() {
145 11:09:50 local image="$1"
146 11:09:50 crane manifest $image > /dev/null 2>&1
147 11:09:50 }
148 11:09:50 function remote_images_are_identical() {
149 11:09:50 local imageA="$1"
150 11:09:50 local imageB="$2"
151 11:09:50 if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
152 11:09:50 return 0
153 11:09:50 else
154 11:09:50 return 1
155 11:09:50 fi
156 11:09:50 }
157 11:09:50 function copy_image() {
158 11:09:50 local image="$1"
159 11:09:50 local remotes="$2"
160 11:09:50 local backup_ext="$3"
161 11:09:50 echo "$image"
162 11:09:50 local source_digest=$(remote_docker_digest $image)
163 11:09:50 local target_digest
164 11:09:50 for registry in $remotes; do
165 11:09:50 if target_digest=$(remote_docker_digest $registry); then
166 11:09:50 if [ "$target_digest" != "$source_digest" ]; then
167 11:09:50 echo "image outdated, overwriting with newest version"
168 11:09:50 crane copy $image $registry
169 11:09:50 crane copy $image ${registry}${backup_ext}
170 11:09:50 fi
171 11:09:50 else
172 11:09:50 echo "image does not exist, writing newest version"
173 11:09:50 crane copy $image $registry
174 11:09:50 crane copy $image ${registry}${backup_ext}
175 11:09:50 fi
176 11:09:50 done
177 11:09:50 }
178 11:09:50 section_end:1778065790:section_script_step_7
179 11:09:50 section_start:1778065790:section_script_step_8[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_SUBDIR" != "" ]; then
180 11:09:50 echo "Entering subpath $CONTAINER_SUBDIR"
181 11:09:50 cd $CONTAINER_SUBDIR
182 11:09:50 fi
183 11:09:50 section_end:1778065790:section_script_step_8
184 11:09:50 Entering subpath arbitrary_path
185 11:09:50 $ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
186 11:09:50 Copy Dockerfile.python-3
187 11:09:50 Copy .pip-version
188 11:09:50 Copy .python-version
189 11:09:50 Copy requirements.txt
190 11:09:50 $ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
191 11:09:50 $ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
192 11:09:50 section_start:1778065790:section_script_step_12[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
193 11:09:50 final_image_name=${CONTAINER_IMAGE_URL}
194 11:09:50 else
195 11:09:50 final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
196 11:09:50 fi
197 11:09:50 section_end:1778065790:section_script_step_12
198 11:09:50 $ final_image_url=${final_image_name}:${docker_checksum}
199 11:09:50 section_start:1778065790:section_script_step_14[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
200 11:09:50 echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
201 11:09:50 else
202 11:09:50 echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
203 11:09:50 fi
204 11:09:50 section_end:1778065790:section_script_step_14
205 11:09:50 $ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
206 11:09:50 section_start:1778065790:section_script_step_16[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
207 11:09:50 echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
208 11:09:50 fi
209 11:09:50 section_end:1778065790:section_script_step_16
210 11:09:50
211 11:09:50 WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
212 11:09:50 Configure a credential helper to remove this warning. See
213 11:09:50 https://docs.docker.com/go/credential-store/
214 11:09:50
215 11:09:50 2026/05/06 11:09:50 logged in via /kaniko/.docker/config.json
216 11:09:50 section_start:1778065790:section_script_step_17[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
217 11:09:50 echo "Image already exists, skip the build."
218 11:09:50 echo "$final_image_url"
219 11:09:50 if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
220 11:09:50 _EXT=""
221 11:09:50 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
222 11:09:50 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
223 11:09:50 _EXT="-MR${CI_MERGE_REQUEST_IID}"
224 11:09:50 _BACKUP_EXT=""
225 11:09:50 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
226 11:09:50 _EXT="-${CI_COMMIT_REF_SLUG}"
227 11:09:50 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
228 11:09:50 fi
229 11:09:50 for _TAG in $CONTAINER_IMAGE_TAG; do
230 11:09:50 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
231 11:09:50 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
232 11:09:50 done
233 11:09:50 if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
234 11:09:50 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
235 11:09:50 echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
236 11:09:50 copy_image "${final_image_url}" "${final_image_url}${_EXT}"
237 11:09:50 for _TAG in $CONTAINER_IMAGE_TAG; do
238 11:09:50 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
239 11:09:50 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
240 11:09:50 done
241 11:09:50 fi
242 11:09:50 exit 0
243 11:09:50 fi
244 11:09:50 section_end:1778065790:section_script_step_17
245 11:09:50 $ DESTINATIONS="--destination=$final_image_url"
246 11:09:50 section_start:1778065790:section_script_step_19[hide_duration=true,collapsed=true] $ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
247 11:09:50 _EXT=""
248 11:09:50 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
249 11:09:50 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
250 11:09:50 _EXT="-MR${CI_MERGE_REQUEST_IID}"
251 11:09:50 TIMESTAMP_TAGS=""
252 11:09:50 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
253 11:09:50 _EXT="-${CI_COMMIT_REF_SLUG}"
254 11:09:50 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
255 11:09:50 fi
256 11:09:50 section_end:1778065790:section_script_step_19
257 11:09:50 section_start:1778065790:section_script_step_20[hide_duration=true,collapsed=true] $ for _TAG in $CONTAINER_IMAGE_TAG; do
258 11:09:50 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
259 11:09:50 done
260 11:09:50 section_end:1778065790:section_script_step_20
261 11:09:50 section_start:1778065790:section_script_step_21[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
262 11:09:50 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
263 11:09:50 DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
264 11:09:50 for _TAG in $CONTAINER_IMAGE_TAG; do
265 11:09:50 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
266 11:09:50 done
267 11:09:50 fi
268 11:09:50 section_end:1778065790:section_script_step_21
269 11:09:50 section_start:1778065790:section_script_step_22[hide_duration=true,collapsed=true] $ DATE=$(date '+%Y%m%d')
270 11:09:50 for _TAG in $TIMESTAMP_TAGS; do
271 11:09:50 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
272 11:09:50 done
273 11:09:50 section_end:1778065790:section_script_step_22
274 11:09:50 section_start:1778065790:section_script_step_23[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
275 11:09:50 for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
276 11:09:50 FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
277 11:09:50 done
278 11:09:50 fi
279 11:09:50 section_end:1778065790:section_script_step_23
280 11:09:50 section_start:1778065790:section_script_step_24[hide_duration=true,collapsed=true] $ for _PATH in $CONTAINER_IGNORE_PATHS; do
281 11:09:50 FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
282 11:09:50 done
283 11:09:50 section_end:1778065790:section_script_step_24
284 11:09:50 section_start:1778065790:section_script_step_25[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_PLATFORM}" ]; then
285 11:09:50 KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
286 11:09:50 fi
287 11:09:50 section_end:1778065790:section_script_step_25
288 11:09:50 $ ANNOTATIONS=""
289 11:09:50 section_start:1778065790:section_script_step_27[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
290 11:09:50 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
291 11:09:50 fi
292 11:09:50 section_end:1778065790:section_script_step_27
293 11:09:50 section_start:1778065790:section_script_step_28[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_SHA" ]]; then
294 11:09:50 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
295 11:09:50 fi
296 11:09:50 section_end:1778065790:section_script_step_28
297 11:09:50 section_start:1778065790:section_script_step_29[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_URL" ]]; then
298 11:09:50 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
299 11:09:50 fi
300 11:09:50 section_end:1778065790:section_script_step_29
301 11:09:50 section_start:1778065790:section_script_step_30[hide_duration=true,collapsed=true] $ if [[ -n "$CI_PIPELINE_ID" ]]; then
302 11:09:50 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
303 11:09:50 fi
304 11:09:50 section_end:1778065790:section_script_step_30
305 11:09:50 section_start:1778065790:section_script_step_31[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_ID" ]]; then
306 11:09:50 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
307 11:09:50 fi
308 11:09:50 section_end:1778065790:section_script_step_31
309 11:09:50 section_start:1778065790:section_script_step_32[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_IMAGE" ]]; then
310 11:09:50 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
311 11:09:50 fi
312 11:09:50 section_end:1778065790:section_script_step_32
313 11:09:50 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
314 11:09:50 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
315 11:09:50 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
316 11:09:50 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
317 11:09:50 section_start:1778065790:section_script_step_37[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
318 11:09:50 KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
319 11:09:50 fi
320 11:09:50 section_end:1778065790:section_script_step_37
321 11:09:50 $ set -x
322 11:09:50 + echo '$ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo $CONTAINER_CACHE_REPO --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS'
323 11:09:50 $ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo $CONTAINER_CACHE_REPO --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS
324 11:09:50 + /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.python-3 '--destination=registry.scandit.com/internal/gitlab-templates:97732edaa31c705ad4ba1b763f97c3d99b1b3186a2ffa1dc31568e6af8bb13ee' '--destination=registry.scandit.com/internal/gitlab-templates:latest' '--destination=registry.scandit.com/internal/gitlab-templates:latest-CI54484702-20260506' '--cache=true' --cache-copy-layers --cache-dir /cache/kaniko --cache-repo registry.scandit.com/internal/gitlab-templates/cache '--cache-ttl=336h' --annotation 'org.opencontainers.image.ref.name=master' --annotation 'org.opencontainers.image.revision=19a8ce14e2e16477c0e8fe40e5fa2b92ca33ea70' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54484702' --annotation 'io.gitlab.ci.pipeline_id=1581320' --annotation 'io.gitlab.ci.job_id=54484702' --annotation 'io.gitlab.ci.job_image=registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac' --annotation 'org.opencontainers.image.title=registry.scandit.com/internal/gitlab-templates:latest' --annotation 'org.opencontainers.image.created=2026-05-06T11:09:50Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=97732edaa31c705ad4ba1b763f97c3d99b1b3186a2ffa1dc31568e6af8bb13ee' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
325 11:09:50 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
326 11:09:51 INFO[0000] Retrieving image manifest python:3.12-bookworm
327 11:09:51 INFO[0000] Retrieving image python:3.12-bookworm from registry index.docker.io
328 11:09:51 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
329 11:09:51 INFO[0001] Retrieving image manifest python:3.12-bookworm
330 11:09:51 INFO[0001] Returning cached image manifest
331 11:09:52 INFO[0001] Retrieving image manifest python:3.12-bookworm
332 11:09:52 INFO[0001] Returning cached image manifest
333 11:09:52 INFO[0001] Retrieving image manifest python:3.12-bookworm
334 11:09:52 INFO[0001] Returning cached image manifest
335 11:09:52 INFO[0001] Built cross stage deps: map[]
336 11:09:52 INFO[0001] Skipping context snapshot as no-one requires it
337 11:09:52 INFO[0001] Retrieving image manifest python:3.12-bookworm
338 11:09:52 INFO[0001] Returning cached image manifest
339 11:09:52 INFO[0001] Retrieving image manifest python:3.12-bookworm
340 11:09:52 INFO[0001] Returning cached image manifest
341 11:09:52 INFO[0001] Building stage 'python:3.12-bookworm' [idx: '0', base-idx: '-1']
342 11:09:52 INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:4aa82f716f80c2fc0d58cc1f7a315d65fe7859ed520e8f4629aeee5d53138656...
343 11:09:52 INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
344 11:09:52 INFO[0001] No cached layer found for cmd RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
345 11:09:52 INFO[0001] Unpacking rootfs as cmd RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT requires it.
346 11:10:02 INFO[0011] ENV PYENV_VER=v2.3.36
347 11:10:02 INFO[0011] Taking snapshot of files...
348 11:10:02 INFO[0011] ENV PYENV_ROOT /root/.pyenv
349 11:10:02 INFO[0011] Taking snapshot of files...
350 11:10:02 INFO[0011] ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
351 11:10:02 INFO[0011] Taking snapshot of files...
352 11:10:02 INFO[0011] RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
353 11:10:02 INFO[0011] Initializing snapshotter ...
354 11:10:02 INFO[0011] Taking snapshot of full filesystem...
355 11:10:18 INFO[0027] Cmd: /bin/sh
356 11:10:18 INFO[0027] Args: [-c git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT]
357 11:10:18 INFO[0027] Running: [/kaniko/tini -s -- /bin/sh -c git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT]
358 11:10:18 Cloning into '/root/.pyenv'...
359 11:10:19 INFO[0028] Taking snapshot of full filesystem...
360 11:10:21 INFO[0030] RUN cd $PYENV_ROOT && git checkout $PYENV_VER
361 11:10:21 INFO[0030] Cmd: /bin/sh
362 11:10:21 INFO[0030] Args: [-c cd $PYENV_ROOT && git checkout $PYENV_VER]
363 11:10:21 INFO[0030] Running: [/kaniko/tini -s -- /bin/sh -c cd $PYENV_ROOT && git checkout $PYENV_VER]
364 11:10:21 INFO[0030] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:4aa82f716f80c2fc0d58cc1f7a315d65fe7859ed520e8f4629aeee5d53138656 to cache now
365 11:10:21 INFO[0030] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
366 11:10:21 INFO[0030] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:4aa82f716f80c2fc0d58cc1f7a315d65fe7859ed520e8f4629aeee5d53138656
367 11:10:21 Note: switching to 'v2.3.36'.
368 11:10:21
369 11:10:21 You are in 'detached HEAD' state. You can look around, make experimental
370 11:10:21 changes and commit them, and you can discard any commits you make in this
371 11:10:21 state without impacting any branches by switching back to a branch.
372 11:10:21
373 11:10:21 If you want to create a new branch to retain commits you create, you may
374 11:10:21 do so (now or later) by using -c with the switch command. Example:
375 11:10:21
376 11:10:21 git switch -c <new-branch-name>
377 11:10:21
378 11:10:21 Or undo this operation with:
379 11:10:21
380 11:10:21 git switch -
381 11:10:21
382 11:10:21 Turn off this advice by setting config variable advice.detachedHead to false
383 11:10:21
384 11:10:21 HEAD is now at 5e4879a2 v2.3.36
385 11:10:21 INFO[0030] Taking snapshot of full filesystem...
386 11:10:22 INFO[0031] COPY /.python-version .python-version
387 11:10:22 INFO[0031] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:ba0db3758a565d2d2e2422aa1db025dbb40e077874cd6e1e401d3c49f3fcd62c to cache now
388 11:10:22 INFO[0031] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
389 11:10:22 INFO[0031] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:ba0db3758a565d2d2e2422aa1db025dbb40e077874cd6e1e401d3c49f3fcd62c
390 11:10:22 INFO[0031] Taking snapshot of files...
391 11:10:22 INFO[0031] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:5e779da5602a3411aed0b06bc0e08d3c6686e7e5b74cf75ca6cb8dd28794e2e3 to cache now
392 11:10:22 INFO[0031] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
393 11:10:22 INFO[0031] RUN eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)
394 11:10:22 INFO[0031] Cmd: /bin/sh
395 11:10:22 INFO[0031] Args: [-c eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)]
396 11:10:22 INFO[0031] Running: [/kaniko/tini -s -- /bin/sh -c eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)]
397 11:10:22 INFO[0031] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:5e779da5602a3411aed0b06bc0e08d3c6686e7e5b74cf75ca6cb8dd28794e2e3
398 11:10:22 INFO[0031] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:23eda3d73f9e889c72f806978fe7772c88f98af277559957e1fecf5e560b8c53
399 11:10:22 Downloading Python-3.12.2.tar.xz...
400 11:10:22 -> https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tar.xz
401 11:10:22 INFO[0031] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:36bac88901b4065045f902b4eeb8101a12eed6149441f4ab2e31643bea0841df
402 11:10:22 INFO[0031] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:588072064cc53bf1ae79a17a2e05bf4c3889e4a7da1924214c1fd11110e99323
403 11:10:23 Installing Python-3.12.2...
404 11:12:25 Installed Python-3.12.2 to /root/.pyenv/versions/3.12.2
405 11:12:25 INFO[0154] Taking snapshot of full filesystem...
406 11:12:32 INFO[0161] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:0b3d4dde0819fcc2180fb45da1885c190c4f446559d871702696eea8b042e275 to cache now
407 11:12:32 INFO[0161] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
408 11:12:32 INFO[0161] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:0b3d4dde0819fcc2180fb45da1885c190c4f446559d871702696eea8b042e275
409 11:12:32 INFO[0161] RUN echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile
410 11:12:32 INFO[0161] Cmd: /bin/sh
411 11:12:32 INFO[0161] Args: [-c echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile]
412 11:12:32 INFO[0161] Running: [/kaniko/tini -s -- /bin/sh -c echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile]
413 11:12:32 INFO[0161] Taking snapshot of full filesystem...
414 11:12:36 INFO[0164] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:be25556ea06d8a3d59ea7e9c674e8a390356dbc65cae0a5b4f229b52d7598c0f
415 11:12:36 INFO[0164] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:bfc242ecea63c2c15b384e6069df1a9b8b0ad16b4052294800a11fbf1791b1f7 to cache now
416 11:12:36 INFO[0164] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
417 11:12:36 INFO[0164] SHELL ["/bin/bash", "-c"]
418 11:12:36 INFO[0164] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:bfc242ecea63c2c15b384e6069df1a9b8b0ad16b4052294800a11fbf1791b1f7
419 11:12:36 INFO[0164] Taking snapshot of files...
420 11:12:36 INFO[0164] RUN pyenv version | grep $(cat .python-version)
421 11:12:36 INFO[0164] Cmd: /bin/bash
422 11:12:36 INFO[0164] Args: [-c pyenv version | grep $(cat .python-version)]
423 11:12:36 INFO[0164] Running: [/kaniko/tini -s -- /bin/bash -c pyenv version | grep $(cat .python-version)]
424 11:12:36 3.12.2 (set by //.python-version)
425 11:12:36 INFO[0164] Taking snapshot of full filesystem...
426 11:12:36 INFO[0165] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:e2255213cae30889252b7ca6ee288b3686f7ea5b2dbb3837aa7871a0b59e44da
427 11:12:37 INFO[0166] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:c1786d0b175d4ddb55286e63435f10707815e05ec84ea21598f1412338ca3bd0 to cache now
428 11:12:37 INFO[0166] RUN python3 -m pip install --upgrade pip wheel
429 11:12:37 INFO[0166] Cmd: /bin/bash
430 11:12:37 INFO[0166] Args: [-c python3 -m pip install --upgrade pip wheel]
431 11:12:37 INFO[0166] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
432 11:12:37 INFO[0166] Running: [/kaniko/tini -s -- /bin/bash -c python3 -m pip install --upgrade pip wheel]
433 11:12:37 INFO[0166] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:c1786d0b175d4ddb55286e63435f10707815e05ec84ea21598f1412338ca3bd0
434 11:12:38 Requirement already satisfied: pip in /root/.pyenv/versions/3.12.2/lib/python3.12/site-packages (24.0)
435 11:12:38 INFO[0166] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:0469916d5d2887c587314b2c1f90ff7c91ad34aee2f9e02674ce8d11c7da299c
436 11:12:38 Collecting pip
437 11:12:38 Downloading pip-26.1.1-py3-none-any.whl.metadata (4.6 kB)
438 11:12:38 Collecting wheel
439 11:12:38 Downloading wheel-0.47.0-py3-none-any.whl.metadata (2.3 kB)
440 11:12:38 Collecting packaging>=24.0 (from wheel)
441 11:12:38 Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
442 11:12:38 Downloading pip-26.1.1-py3-none-any.whl (1.8 MB)
443 11:12:38 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 35.6 MB/s eta 0:00:00
444 11:12:38 Downloading wheel-0.47.0-py3-none-any.whl (32 kB)
445 11:12:38 Downloading packaging-26.2-py3-none-any.whl (100 kB)
446 11:12:38 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.2/100.2 kB 3.7 MB/s eta 0:00:00
447 11:12:38 Installing collected packages: pip, packaging, wheel
448 11:12:38 Attempting uninstall: pip
449 11:12:38 Found existing installation: pip 24.0
450 11:12:38 Uninstalling pip-24.0:
451 11:12:38 Successfully uninstalled pip-24.0
452 11:12:40 Successfully installed packaging-26.2 pip-26.1.1 wheel-0.47.0
453 11:12:40 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
454 11:12:40 INFO[0169] Taking snapshot of full filesystem...
455 11:12:41 INFO[0170] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:3fea39beb03eec55065a1ea9a20bc9eb37d747ce02dde374ed83c7bdb1dbdd4b to cache now
456 11:12:41 INFO[0170] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
457 11:12:41 INFO[0170] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:3fea39beb03eec55065a1ea9a20bc9eb37d747ce02dde374ed83c7bdb1dbdd4b
458 11:12:41 INFO[0170] COPY /requirements.txt requirements.txt
459 11:12:41 INFO[0170] Taking snapshot of files...
460 11:12:41 INFO[0170] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:11e9f70596055c2fa501c03b19174d11ba15e7065cf19919a4870f6bfb5eb570 to cache now
461 11:12:41 INFO[0170] RUN --mount=type=secret,id=netrc,target=/root/.netrc python3 -m pip install -r requirements.txt
462 11:12:41 INFO[0170] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
463 11:12:41 INFO[0170] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:11e9f70596055c2fa501c03b19174d11ba15e7065cf19919a4870f6bfb5eb570
464 11:12:41 INFO[0170] Cmd: /bin/bash
465 11:12:41 INFO[0170] Args: [-c python3 -m pip install -r requirements.txt]
466 11:12:41 INFO[0170] Running: [/kaniko/tini -s -- /bin/bash -c python3 -m pip install -r requirements.txt]
467 11:12:42 Looking in indexes: https://gitlab.scandit.com/api/v4/projects/621/packages/pypi/simple
468 11:12:42 INFO[0171] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:de3400513a884b5c81134ac676425b7a2fe14402a8605093599e27277b737d59
469 11:12:42 Collecting pytest==9.0.3 (from -r requirements.txt (line 3))
470 11:12:42 Downloading pytest-9.0.3-py3-none-any.whl.metadata (7.6 kB)
471 11:12:42 Collecting pytest-cov==7.1.0 (from -r requirements.txt (line 4))
472 11:12:42 Downloading pytest_cov-7.1.0-py3-none-any.whl.metadata (32 kB)
473 11:12:43 INFO[0171] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:d0133e8363aea6b144c2f9224ec002909f74a638cb5003cd26af1bfa60364553
474 11:12:43 Collecting iniconfig>=1.0.1 (from pytest==9.0.3->-r requirements.txt (line 3))
475 11:12:43 Downloading iniconfig-2.3.0-py3-none-any.whl.metadata (2.5 kB)
476 11:12:43 Requirement already satisfied: packaging>=22 in ./root/.pyenv/versions/3.12.2/lib/python3.12/site-packages (from pytest==9.0.3->-r requirements.txt (line 3)) (26.2)
477 11:12:43 Collecting pluggy<2,>=1.5 (from pytest==9.0.3->-r requirements.txt (line 3))
478 11:12:43 Downloading pluggy-1.6.0-py3-none-any.whl.metadata (4.8 kB)
479 11:12:43 Collecting pygments>=2.7.2 (from pytest==9.0.3->-r requirements.txt (line 3))
480 11:12:43 Downloading pygments-2.20.0-py3-none-any.whl.metadata (2.5 kB)
481 11:12:43 Collecting coverage>=7.10.6 (from coverage[toml]>=7.10.6->pytest-cov==7.1.0->-r requirements.txt (line 4))
482 11:12:43 Downloading coverage-7.13.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (8.5 kB)
483 11:12:44 Downloading pytest-9.0.3-py3-none-any.whl (375 kB)
484 11:12:44 Downloading pytest_cov-7.1.0-py3-none-any.whl (22 kB)
485 11:12:44 Downloading pluggy-1.6.0-py3-none-any.whl (20 kB)
486 11:12:44 Downloading coverage-7.13.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (254 kB)
487 11:12:44 Downloading iniconfig-2.3.0-py3-none-any.whl (7.5 kB)
488 11:12:44 Downloading pygments-2.20.0-py3-none-any.whl (1.2 MB)
489 11:12:44 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 44.8 MB/s 0:00:00
490 11:12:44 Installing collected packages: pygments, pluggy, iniconfig, coverage, pytest, pytest-cov
491 11:12:45
492 11:12:45 Successfully installed coverage-7.13.5 iniconfig-2.3.0 pluggy-1.6.0 pygments-2.20.0 pytest-9.0.3 pytest-cov-7.1.0
493 11:12:45 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
494 11:12:45 INFO[0174] Taking snapshot of full filesystem...
495 11:12:47 INFO[0175] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:1341b5af1710055894c1053022824c20400b076b2a37d3d8dbbab26e7df26e52 to cache now
496 11:12:47 INFO[0175] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
497 11:12:47 INFO[0175] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:1341b5af1710055894c1053022824c20400b076b2a37d3d8dbbab26e7df26e52
498 11:12:54 INFO[0183] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:42ba392245999c6749a4f213dcbace9aaaaf092aa66befc3ed3489a70aee4ff3
499 11:12:54 INFO[0183] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
500 11:12:54 INFO[0183] Pushing image to registry.scandit.com/internal/gitlab-templates:97732edaa31c705ad4ba1b763f97c3d99b1b3186a2ffa1dc31568e6af8bb13ee
501 11:13:00 INFO[0189] Pushed registry.scandit.com/internal/gitlab-templates@sha256:75400831b78e02fed1cbc30d2a9ebb4cf4511eecb0c11c492da57f7d72e0be9c
502 11:13:00 INFO[0189] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
503 11:13:00 INFO[0189] Pushing image to registry.scandit.com/internal/gitlab-templates:latest
504 11:13:01 INFO[0190] Pushed registry.scandit.com/internal/gitlab-templates@sha256:75400831b78e02fed1cbc30d2a9ebb4cf4511eecb0c11c492da57f7d72e0be9c
505 11:13:01 INFO[0190] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
506 11:13:01 INFO[0190] Pushing image to registry.scandit.com/internal/gitlab-templates:latest-CI54484702-20260506
507 11:13:02 INFO[0190] Pushed registry.scandit.com/internal/gitlab-templates@sha256:75400831b78e02fed1cbc30d2a9ebb4cf4511eecb0c11c492da57f7d72e0be9c
508 11:13:02 + cleanup
509 11:13:02 + rv=0
510 11:13:02 + '[' 0 -ne 0 ]
511 11:13:02 + echo
512 11:13:02
513 11:13:02 + echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484702'
514 11:13:02 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484702
515 11:13:02 + echo
516 11:13:02
517 11:13:02 + echo
518 11:13:02
519 11:13:02 + echo 'Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-22-143.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-8eoyfpi5&var-resolution=15&from=1778065790000&to=1778065981000'
520 11:13:02 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-22-143.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-8eoyfpi5&var-resolution=15&from=1778065790000&to=1778065981000
521 11:13:02 + echo 'Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-22-143.eu-central-1.compute.internal&var-resolution=15s&from=1778065790000&to=1778065981000'
522 11:13:02 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-22-143.eu-central-1.compute.internal&var-resolution=15s&from=1778065790000&to=1778065981000
523 11:13:02 + echo 'Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484702&sortOrder=Ascending&from=1778065790000&to=1778065981000'
524 11:13:02 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484702&sortOrder=Ascending&from=1778065790000&to=1778065981000
525 11:13:02 + date -d '-7 days' '+%Y-%m-%d'
526 11:13:02 date: invalid date '-7 days'
527 11:13:02 + date -d '+7 days' '+%Y-%m-%d'
528 11:13:02 date: invalid date '+7 days'
529 11:13:02 + echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-python3-image-with-context&project=internal/gitlab-templates'
530 11:13:02 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-python3-image-with-context&project=internal/gitlab-templates
531 11:13:02 + echo
532 11:13:02
533 11:13:02 + exit 0
534 11:13:02
535 11:13:02 section_end:1778065982:step_script
536 11:13:02 +section_start:1778065982:upload_artifacts_on_success
537 11:13:02 +Uploading artifacts for successful job
538 11:13:02 Uploading artifacts...
539 11:13:02 docker_image_build.env: found 1 matching artifact files and directories
540 11:13:03 Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQYFVH3N518X4WEB34QJJYRJ id=54484702 responseStatus=201 Created token=64_GVBKzx
541 11:13:03
542 11:13:03 section_end:1778065983:upload_artifacts_on_success
543 11:13:03 +section_start:1778065983:cleanup_file_variables
544 11:13:03 +Cleaning up project directory and file based variables
545 11:13:03
546 11:13:03 section_end:1778065983:cleanup_file_variables
547 11:13:03 +
548 11:13:03 Job succeeded
549