Skip to content

Commit bb2495d

Browse files
authored
fix: buildkit docker config location (#151)
1 parent 296afe4 commit bb2495d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/resources/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ app:
233233
env:
234234
- name: BUILDKITD_FLAGS
235235
value: "--oci-worker-no-process-sandbox"
236+
- name: DOCKER_CONFIG
237+
value: "/kaniko/.docker"
236238
args:
237239
- build
238240
- --frontend

src/test/java/com/epam/aidial/deployment/manager/functional/tests/FullWorkflowWithMockedK8sClientFunctionalTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,14 @@ private static JobSpec createWrapperJobSpec(String uuid) {
415415
));
416416

417417
buildContainer.setCommand(Collections.singletonList("buildctl-daemonless.sh"));
418-
buildContainer.setEnv(Collections.singletonList(
418+
buildContainer.setEnv(Arrays.asList(
419419
new EnvVarBuilder()
420420
.withName("BUILDKITD_FLAGS")
421421
.withValue("--oci-worker-no-process-sandbox")
422+
.build(),
423+
new EnvVarBuilder()
424+
.withName("DOCKER_CONFIG")
425+
.withValue("/kaniko/.docker")
422426
.build()
423427
));
424428
buildContainer.setEnvFrom(Collections.emptyList());

0 commit comments

Comments
 (0)