build-python3-image-with-context ○ success

Duration: 23s
Queued: 3s
📁 Stage: docker-image
🖥 Runner: linux-aws-1
Average Duration
47s
This job: 23s
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

421 lines
Match - of 0
1 14:27:23 Running with gitlab-runner 18.5.0 (bda84871)
2 14:27:23 on gitlab-runner-linux-1-86d76d468c-d4585 wRxjPbsJX, system ID: r_J8j67beySAjl
3 14:27:23 feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY: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_TIMESTAMPS:true, FF_GIT_URLS_WITHOUT_TOKENS:true
4 14:27:23 Resolving secrets
5 14:27:23 section_start:1765290443:prepare_executor
6 14:27:23 +Preparing the "kubernetes" executor
7 14:27:23 "CPURequest" overwritten with "2"
8 14:27:23 "MemoryRequest" overwritten with "4G"
9 14:27:23 Using Kubernetes namespace: gitlab-runner
10 14:27:23 Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.26.3-crane@sha256:15e0e485d8fe32a3e4f08116e163a6e5473014e297910cfdec3c58e2880a0e66 ...
11 14:27:23 Using attach strategy to execute scripts...
12 14:27:23 Using effective pull policy of [Always] for container build
13 14:27:23 Using effective pull policy of [Always] for container helper
14 14:27:23 Using effective pull policy of [Always] for container init-permissions
15 14:27:23 section_end:1765290443:prepare_executor
16 14:27:23 +section_start:1765290443:prepare_script
17 14:27:23 +Preparing environment
18 14:27:23 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19 14:27:23 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 14:27:24 Subscribing to Kubernetes Pod events...
21 14:27:24 Type Reason Message
22 14:27:24 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-1-9s9no9gm to ip-10-0-55-35.eu-central-1.compute.internal
23 14:27:25 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
24 14:27:25 Normal Created Created container: init-permissions
25 14:27:25 Normal Started Started container init-permissions
26 14:27:25 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:15e0e485d8fe32a3e4f08116e163a6e5473014e297910cfdec3c58e2880a0e66"
27 14:27:25 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:15e0e485d8fe32a3e4f08116e163a6e5473014e297910cfdec3c58e2880a0e66" in 128ms (128ms including waiting). Image size: 46487061 bytes.
28 14:27:25 Normal Created Created container: build
29 14:27:25 Normal Started Started container build
30 14:27:25 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
31 14:27:25 Normal Created Created container: helper
32 14:27:26 Normal Started Started container helper
33 14:27:28 Running on runner-wrxjpbsjx-project-621-concurrent-1-9s9no9gm via gitlab-runner-linux-1-86d76d468c-d4585...
34 14:27:28
35 14:27:28 section_end:1765290448:prepare_script
36 14:27:28 +section_start:1765290448:get_sources
37 14:27:28 +Getting source from Git repository
38 14:27:28 Gitaly correlation ID: 01KC1R50HBCC1ZGZS99MNBTWDN
39 14:27:28 Fetching changes with git depth set to 1...
40 14:27:28 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41 14:27:28 Created fresh repository.
42 14:27:29 Checking out 940006cc as detached HEAD (ref is refs/merge-requests/507/merge)...
43 14:27:29
44 14:27:29 Skipping Git submodules setup
45 14:27:29
46 14:27:29 section_end:1765290449:get_sources
47 14:27:29 +section_start:1765290449:step_script
48 14:27:29 +Executing "step_script" stage of the job script
49 14:27:29 section_start:1765290449:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
50 14:27:29 rv=$?
51 14:27:29 if [ $rv -ne 0 ]; then
52 14:27:29 echo ""
53 14:27:29 echo " Failure Cause Analysis might help, please open this link:"
54 14:27:29 echo " https://failure-cause-analysis.zrh.int.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55 14:27:29 echo ""
56 14:27:29 fi
57 14:27:29 echo ""
58 14:27:29 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"
59 14:27:29 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"
60 14:27:29 echo ""
61 14:27:29 exit $rv
62 14:27:29 }
63 14:27:29 trap cleanup EXIT
64 14:27:29 echo "INFO: This is the CI job pre_build_script"
65 14:27:29 echo "INFO: It's defined in the backend/infra/aws repo."
66 14:27:29 echo "INFO: These additional Scandit variables are available to you:"
67 14:27:29 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
68 14:27:29 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
69 14:27:29 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
70 14:27:29 if command -v numfmt >/dev/null 2>&1; then
71 14:27:29 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
72 14:27:29 else
73 14:27:29 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
74 14:27:29 fi
75 14:27:29 __start_time=${EPOCHSECONDS}
76 14:27:29 echo ""
77 14:27:29 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"
78 14:27:29 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"
79 14:27:29 echo ""
80 14:27:29 echo "Setting up credentials for Gitlab Python registries"
81 14:27:29 mkdir -p ~
82 14:27:29 echo "machine gitlab.scandit.com" > ~/.netrc
83 14:27:29 echo "login gitlab-ci-token" >> ~/.netrc
84 14:27:29 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
85 14:27:29 chmod 600 ~/.netrc
86 14:27:29 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
87 14:27:29 git config --global --add safe.directory $CI_PROJECT_DIR
88 14:27:29 fi
89 14:27:29 # Sonarqube server is running on the same cluster. Use internal address
90 14:27:29 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
91 14:27:29 section_end:1765290449:section_pre_build_script_0
92 14:27:29 INFO: This is the CI job pre_build_script
93 14:27:29 INFO: It's defined in the backend/infra/aws repo.
94 14:27:29 INFO: These additional Scandit variables are available to you:
95 14:27:29 SC_K8S_NODE_NAME: ip-10-0-55-35.eu-central-1.compute.internal
96 14:27:29 SC_K8S_IMAGE_ID:
97 14:27:29 cpu (r/l): 2/4
98 14:27:29 memory (r/l): 4000000000/17179869184
99 14:27:29
100 14:27:29 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-55-35.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-9s9no9gm&var-resolution=15&from=1765290449000&to=now
101 14:27:29 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-55-35.eu-central-1.compute.internal&var-resolution=15s&from=1765290449000&to=now
102 14:27:29
103 14:27:29 Setting up credentials for Gitlab Python registries
104 14:27:29 $ mkdir -p arbitrary_path
105 14:27:29 $ mv Dockerfile.python-3 arbitrary_path
106 14:27:29 $ mv requirements.txt arbitrary_path
107 14:27:29 $ mv .python-version arbitrary_path
108 14:27:29 $ mv .pip-version arbitrary_path
109 14:27:29 $ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
110 14:27:29 section_start:1765290449:section_script_step_6[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_USER_HOME" != "" ]; then
111 14:27:29 mkdir -p "$CONTAINER_USER_HOME"
112 14:27:29 cp ~/.netrc "$CONTAINER_USER_HOME"
113 14:27:29 if [ "$CONTAINER_USER_UID" != "" ]; then
114 14:27:29 chown "$CONTAINER_USER_UID" "$CONTAINER_USER_HOME/.netrc"
115 14:27:29 fi
116 14:27:29 fi
117 14:27:29 section_end:1765290449:section_script_step_6
118 14:27:29 section_start:1765290449:section_script_step_7[hide_duration=true,collapsed=true] $ function copy_files() {
119 14:27:29 local src="$1"
120 14:27:29 local trg="$2"
121 14:27:29 for f in $src; do
122 14:27:29 t="$trg/`dirname $f`"
123 14:27:29 mkdir -p $t || true
124 14:27:29 echo "Copy $f"
125 14:27:29 cp -pr $f $trg/$f
126 14:27:29 done
127 14:27:29 }
128 14:27:29 function recursive_hash() {
129 14:27:29 local dir="$1"
130 14:27:29 (find $dir -type f -exec sha256sum {} + ; find $dir -type d) | sort | sha256sum | cut -d ' ' -f1
131 14:27:29 }
132 14:27:29 function remote_docker_digest() {
133 14:27:29 local images="$1"
134 14:27:29 echo $images | xargs -n 1 crane digest
135 14:27:29 }
136 14:27:29 function remote_image_exists() {
137 14:27:29 local image="$1"
138 14:27:29 crane manifest $image > /dev/null 2>&1
139 14:27:29 }
140 14:27:29 function remote_images_are_identical() {
141 14:27:29 local imageA="$1"
142 14:27:29 local imageB="$2"
143 14:27:29 if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
144 14:27:29 return 0
145 14:27:29 else
146 14:27:29 return 1
147 14:27:29 fi
148 14:27:29 }
149 14:27:29 function copy_image() {
150 14:27:29 local image="$1"
151 14:27:29 local remotes="$2"
152 14:27:29 local backup_ext="$3"
153 14:27:29 echo "$image"
154 14:27:29 local source_digest=$(remote_docker_digest $image)
155 14:27:29 local target_digest
156 14:27:29 for registry in $remotes; do
157 14:27:29 if target_digest=$(remote_docker_digest $registry); then
158 14:27:29 if [ "$target_digest" != "$source_digest" ]; then
159 14:27:29 echo "image outdated, overwriting with newest version"
160 14:27:29 crane copy $image $registry
161 14:27:29 crane copy $image ${registry}${backup_ext}
162 14:27:29 fi
163 14:27:29 else
164 14:27:29 echo "image does not exist, writing newest version"
165 14:27:29 crane copy $image $registry
166 14:27:29 crane copy $image ${registry}${backup_ext}
167 14:27:29 fi
168 14:27:29 done
169 14:27:29 }
170 14:27:29 section_end:1765290449:section_script_step_7
171 14:27:29 section_start:1765290449:section_script_step_8[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_SUBDIR" != "" ]; then
172 14:27:29 echo "Entering subpath $CONTAINER_SUBDIR"
173 14:27:29 cd $CONTAINER_SUBDIR
174 14:27:29 fi
175 14:27:29 section_end:1765290449:section_script_step_8
176 14:27:29 Entering subpath arbitrary_path
177 14:27:29 $ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
178 14:27:29 Copy Dockerfile.python-3
179 14:27:29 Copy .pip-version
180 14:27:29 Copy .python-version
181 14:27:29 Copy requirements.txt
182 14:27:29 $ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
183 14:27:29 $ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
184 14:27:29 section_start:1765290449:section_script_step_12[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
185 14:27:29 final_image_name=${CONTAINER_IMAGE_URL}
186 14:27:29 else
187 14:27:29 final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
188 14:27:29 fi
189 14:27:29 section_end:1765290449:section_script_step_12
190 14:27:29 $ final_image_url=${final_image_name}:${docker_checksum}
191 14:27:29 section_start:1765290449:section_script_step_14[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
192 14:27:29 echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
193 14:27:29 else
194 14:27:29 echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
195 14:27:29 fi
196 14:27:29 section_end:1765290449:section_script_step_14
197 14:27:29 $ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
198 14:27:29 section_start:1765290449:section_script_step_16[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
199 14:27:29 echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
200 14:27:29 fi
201 14:27:29 section_end:1765290449:section_script_step_16
202 14:27:29
203 14:27:29 WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
204 14:27:29 Configure a credential helper to remove this warning. See
205 14:27:29 https://docs.docker.com/go/credential-store/
206 14:27:29
207 14:27:29 2025/12/09 14:27:29 logged in via /kaniko/.docker/config.json
208 14:27:29 section_start:1765290449:section_script_step_17[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
209 14:27:29 echo "Image already exists, skip the build."
210 14:27:29 echo "$final_image_url"
211 14:27:29 if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
212 14:27:29 _EXT=""
213 14:27:29 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
214 14:27:29 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
215 14:27:29 _EXT="-MR${CI_MERGE_REQUEST_IID}"
216 14:27:29 _BACKUP_EXT=""
217 14:27:29 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
218 14:27:29 _EXT="-${CI_COMMIT_REF_SLUG}"
219 14:27:29 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
220 14:27:29 else
221 14:27:29 _EXT="-${CI_COMMIT_REF_SLUG}"
222 14:27:29 _BACKUP_EXT=""
223 14:27:29 fi
224 14:27:29 for _TAG in $CONTAINER_IMAGE_TAG; do
225 14:27:29 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
226 14:27:29 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
227 14:27:29 done
228 14:27:29 if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
229 14:27:29 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
230 14:27:29 echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
231 14:27:29 copy_image "${final_image_url}" "${final_image_url}${_EXT}"
232 14:27:29 for _TAG in $CONTAINER_IMAGE_TAG; do
233 14:27:29 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
234 14:27:29 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
235 14:27:29 done
236 14:27:29 fi
237 14:27:29 exit 0
238 14:27:29 fi
239 14:27:29 section_end:1765290449:section_script_step_17
240 14:27:29 $ DESTINATIONS="--destination=$final_image_url"
241 14:27:29 section_start:1765290449:section_script_step_19[hide_duration=true,collapsed=true] $ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
242 14:27:29 _EXT=""
243 14:27:29 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
244 14:27:29 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
245 14:27:29 _EXT="-MR${CI_MERGE_REQUEST_IID}"
246 14:27:29 TIMESTAMP_TAGS=""
247 14:27:29 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
248 14:27:29 _EXT="-${CI_COMMIT_REF_SLUG}"
249 14:27:29 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
250 14:27:29 fi
251 14:27:29 section_end:1765290449:section_script_step_19
252 14:27:29 section_start:1765290449:section_script_step_20[hide_duration=true,collapsed=true] $ for _TAG in $CONTAINER_IMAGE_TAG; do
253 14:27:29 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
254 14:27:29 done
255 14:27:29 section_end:1765290449:section_script_step_20
256 14:27:29 section_start:1765290449:section_script_step_21[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
257 14:27:29 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
258 14:27:29 DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
259 14:27:29 for _TAG in $CONTAINER_IMAGE_TAG; do
260 14:27:29 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
261 14:27:29 done
262 14:27:29 fi
263 14:27:29 section_end:1765290449:section_script_step_21
264 14:27:29 section_start:1765290449:section_script_step_22[hide_duration=true,collapsed=true] $ DATE=$(date '+%Y%m%d')
265 14:27:29 for _TAG in $TIMESTAMP_TAGS; do
266 14:27:29 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
267 14:27:29 done
268 14:27:29 section_end:1765290449:section_script_step_22
269 14:27:29 section_start:1765290449:section_script_step_23[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
270 14:27:29 for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
271 14:27:29 FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
272 14:27:29 done
273 14:27:29 fi
274 14:27:29 section_end:1765290449:section_script_step_23
275 14:27:29 section_start:1765290449:section_script_step_24[hide_duration=true,collapsed=true] $ for _PATH in $CONTAINER_IGNORE_PATHS; do
276 14:27:29 FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
277 14:27:29 done
278 14:27:29 section_end:1765290449:section_script_step_24
279 14:27:29 section_start:1765290449:section_script_step_25[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_PLATFORM}" ]; then
280 14:27:29 KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
281 14:27:29 fi
282 14:27:29 section_end:1765290449:section_script_step_25
283 14:27:29 $ ANNOTATIONS=""
284 14:27:29 section_start:1765290449:section_script_step_27[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
285 14:27:29 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
286 14:27:29 fi
287 14:27:29 section_end:1765290449:section_script_step_27
288 14:27:29 section_start:1765290449:section_script_step_28[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_SHA" ]]; then
289 14:27:29 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
290 14:27:29 fi
291 14:27:29 section_end:1765290449:section_script_step_28
292 14:27:29 section_start:1765290449:section_script_step_29[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_URL" ]]; then
293 14:27:29 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
294 14:27:29 fi
295 14:27:29 section_end:1765290449:section_script_step_29
296 14:27:29 section_start:1765290449:section_script_step_30[hide_duration=true,collapsed=true] $ if [[ -n "$CI_PIPELINE_ID" ]]; then
297 14:27:29 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
298 14:27:29 fi
299 14:27:29 section_end:1765290449:section_script_step_30
300 14:27:29 section_start:1765290449:section_script_step_31[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_ID" ]]; then
301 14:27:29 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
302 14:27:29 fi
303 14:27:29 section_end:1765290449:section_script_step_31
304 14:27:29 section_start:1765290449:section_script_step_32[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_IMAGE" ]]; then
305 14:27:29 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
306 14:27:29 fi
307 14:27:29 section_end:1765290449:section_script_step_32
308 14:27:29 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
309 14:27:29 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
310 14:27:29 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
311 14:27:29 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
312 14:27:29 section_start:1765290449:section_script_step_37[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
313 14:27:29 KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
314 14:27:29 fi
315 14:27:29 section_end:1765290449:section_script_step_37
316 14:27:29 $ set -x
317 14:27:29 + echo '$ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo ${CI_REGISTRY_IMAGE}/cache --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS'
318 14:27:29 $ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo ${CI_REGISTRY_IMAGE}/cache --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS
319 14:27:29 + /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.python-3 '--destination=registry.scandit.com/internal/gitlab-templates:d6c728f1ca3c5a79ba539a131e68949265c5cd26cbbff50d26b851a14f1d3353' '--destination=registry.scandit.com/internal/gitlab-templates:latest-MR507' '--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=martin.zihlmann-master-patch-ac03' --annotation 'org.opencontainers.image.revision=940006ccdb5cae9f992061bdd618ea8cc79c4306' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/46308188' --annotation 'io.gitlab.ci.pipeline_id=1391810' --annotation 'io.gitlab.ci.job_id=46308188' --annotation 'io.gitlab.ci.job_image=registry.scandit.com/dockerfiles/kaniko:v1.26.3-crane@sha256:15e0e485d8fe32a3e4f08116e163a6e5473014e297910cfdec3c58e2880a0e66' --annotation 'org.opencontainers.image.title=registry.scandit.com/internal/gitlab-templates:latest' --annotation 'org.opencontainers.image.created=2025-12-09T14:27:29Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=d6c728f1ca3c5a79ba539a131e68949265c5cd26cbbff50d26b851a14f1d3353' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/root/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
320 14:27:29 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
321 14:27:30 INFO[0000] Retrieving image manifest python:3.12-bookworm
322 14:27:30 INFO[0000] Retrieving image python:3.12-bookworm from registry index.docker.io
323 14:27:30 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
324 14:27:30 INFO[0001] Retrieving image manifest python:3.12-bookworm
325 14:27:30 INFO[0001] Returning cached image manifest
326 14:27:31 INFO[0001] Built cross stage deps: map[]
327 14:27:31 INFO[0001] Skipping context snapshot as no-one requires it
328 14:27:31 INFO[0001] Retrieving image manifest python:3.12-bookworm
329 14:27:31 INFO[0001] Returning cached image manifest
330 14:27:31 INFO[0001] Retrieving image manifest python:3.12-bookworm
331 14:27:31 INFO[0001] Returning cached image manifest
332 14:27:31 INFO[0001] Executing 0 build triggers
333 14:27:31 INFO[0001] Building stage 'python:3.12-bookworm' [idx: '0', base-idx: '-1']
334 14:27:31 INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:ad709ad54a1003097c78d7413fa01760a12be06dc6306c33295b38b9c6d483c9...
335 14:27:31 INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
336 14:27:31 INFO[0001] Using caching version of cmd: RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
337 14:27:31 INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:ab339760382b1e79d16b757132dae6c4971b05f7c3722cb5b6589c256533c309...
338 14:27:31 INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
339 14:27:31 INFO[0001] Using caching version of cmd: RUN cd $PYENV_ROOT && git checkout $PYENV_VER
340 14:27:31 INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:22322325e2df38a2e9922a5f40507e245e5d55a68e3a586b3c74cfccc8bf0b45...
341 14:27:31 INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
342 14:27:31 INFO[0001] Using caching version of cmd: COPY /.python-version .python-version
343 14:27:31 INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:21ca22915d24c3a35ec19f5ea2c4cfa52299b5ad161de651884d746c7aab7c4c...
344 14:27:31 INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
345 14:27:31 INFO[0002] Using caching version of cmd: RUN eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)
346 14:27:31 INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:72eca8473f56d5128ea922e17c02fa50edf15dd3824d25da720e05c62a29a9fe...
347 14:27:31 INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
348 14:27:32 INFO[0002] Using caching version of cmd: RUN echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile
349 14:27:32 INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:e07ff3c8afd7f9714dd5f79598ebd0c30c2d71dad886b4316fd1b069aa6457e6...
350 14:27:32 INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
351 14:27:32 INFO[0002] Using caching version of cmd: RUN pyenv version | grep $(cat .python-version)
352 14:27:32 INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:7c377dfcae572072cb29422c07ae80d5166123b764e7ebde8d16d6cb5c8c77cc...
353 14:27:32 INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
354 14:27:32 INFO[0002] Using caching version of cmd: RUN python3 -m pip install --upgrade pip wheel
355 14:27:32 INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:1f1644cc833813fb0cced5cefe386d55e29c58dad0e6ef775c6e98bc68da1b0d...
356 14:27:32 INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
357 14:27:32 INFO[0002] Using caching version of cmd: COPY /requirements.txt requirements.txt
358 14:27:32 INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:b25576ff76f4a38aa1a7329e96b735cbae4fe248901bc67260b3d83d95958d5c...
359 14:27:32 INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
360 14:27:32 INFO[0002] Using caching version of cmd: RUN python3 -m pip install -r requirements.txt
361 14:27:32 INFO[0002] Skipping unpacking as no commands require it.
362 14:27:32 INFO[0002] ENV PYENV_VER=v2.3.36
363 14:27:32 INFO[0002] Taking snapshot of files...
364 14:27:32 INFO[0002] ENV PYENV_ROOT /root/.pyenv
365 14:27:32 INFO[0002] Taking snapshot of files...
366 14:27:32 INFO[0002] ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
367 14:27:32 INFO[0002] Taking snapshot of files...
368 14:27:32 INFO[0002] RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
369 14:27:32 INFO[0002] Found cached layer, extracting to filesystem
370 14:27:33 INFO[0003] RUN cd $PYENV_ROOT && git checkout $PYENV_VER
371 14:27:33 INFO[0003] Found cached layer, extracting to filesystem
372 14:27:33 INFO[0003] COPY /.python-version .python-version
373 14:27:33 INFO[0003] Found cached layer, extracting to filesystem
374 14:27:33 INFO[0003] RUN eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)
375 14:27:33 INFO[0003] Found cached layer, extracting to filesystem
376 14:27:42 INFO[0013] RUN echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile
377 14:27:42 INFO[0013] Found cached layer, extracting to filesystem
378 14:27:42 INFO[0013] SHELL ["/bin/bash", "-c"]
379 14:27:42 INFO[0013] Taking snapshot of files...
380 14:27:42 INFO[0013] RUN pyenv version | grep $(cat .python-version)
381 14:27:42 INFO[0013] Found cached layer, extracting to filesystem
382 14:27:42 INFO[0013] RUN python3 -m pip install --upgrade pip wheel
383 14:27:42 INFO[0013] Found cached layer, extracting to filesystem
384 14:27:43 INFO[0013] COPY /requirements.txt requirements.txt
385 14:27:43 INFO[0013] Found cached layer, extracting to filesystem
386 14:27:43 INFO[0013] RUN python3 -m pip install -r requirements.txt
387 14:27:43 INFO[0013] Found cached layer, extracting to filesystem
388 14:27:44 INFO[0014] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
389 14:27:44 INFO[0014] Pushing image to registry.scandit.com/internal/gitlab-templates:d6c728f1ca3c5a79ba539a131e68949265c5cd26cbbff50d26b851a14f1d3353
390 14:27:44 INFO[0014] Pushed registry.scandit.com/internal/gitlab-templates@sha256:bc17fabded39ede4f2b92f9cd35d940ddd1e27654fa0d35d7113d8431a18d87b
391 14:27:44 INFO[0014] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
392 14:27:44 INFO[0014] Pushing image to registry.scandit.com/internal/gitlab-templates:latest-MR507
393 14:27:44 INFO[0015] Pushed registry.scandit.com/internal/gitlab-templates@sha256:bc17fabded39ede4f2b92f9cd35d940ddd1e27654fa0d35d7113d8431a18d87b
394 14:27:44 + cleanup
395 14:27:44 + rv=0
396 14:27:44 + '[' 0 -ne 0 ]
397 14:27:44 + echo
398 14:27:44
399 14:27:44 + 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-55-35.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-9s9no9gm&var-resolution=15&from=1765290449000&to=1765290464000'
400 14:27:44 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-55-35.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-9s9no9gm&var-resolution=15&from=1765290449000&to=1765290464000
401 14:27:44 + 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-55-35.eu-central-1.compute.internal&var-resolution=15s&from=1765290449000&to=1765290464000'
402 14:27:44 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-55-35.eu-central-1.compute.internal&var-resolution=15s&from=1765290449000&to=1765290464000
403 14:27:44 + echo
404 14:27:44
405 14:27:44 + exit 0
406 14:27:44
407 14:27:44 section_end:1765290464:step_script
408 14:27:44 +section_start:1765290464:upload_artifacts_on_success
409 14:27:44 +Uploading artifacts for successful job
410 14:27:45 Uploading artifacts...
411 14:27:45 docker_image_build.env: found 1 matching artifact files and directories
412 14:27:45 Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KC1R5NVE9XM2KGBYEVBX58S6 id=46308188 responseStatus=201 Created token=64_ACSZwz
413 14:27:45
414 14:27:45 section_end:1765290465:upload_artifacts_on_success
415 14:27:45 +section_start:1765290465:cleanup_file_variables
416 14:27:45 +Cleaning up project directory and file based variables
417 14:27:46
418 14:27:46 section_end:1765290466:cleanup_file_variables
419 14:27:46 +
420 14:27:46 Job succeeded
421