25 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
e9aae6e497
[docker-up] Auto-login dockerd if GITPOD_IMAGE_AUTH is set (#20586)
* [docker-up] Minor fixes and add tests

Tool: gitpod/catfood.gitpod.cloud

* [image-builder-bob] Tests&fixes from an experimental PR

Tool: gitpod/catfood.gitpod.cloud

* [supervisor, ws-manager] Write docker credentials into client config file if passed into workspace

Tool: gitpod/catfood.gitpod.cloud

* [server] Introduce project.settings.enableDockerdAuthentication and expose it on the API

Tool: gitpod/catfood.gitpod.cloud

* [dashboard] Add "Docker registry authentication" toggle under projects/env vars

Tool: gitpod/catfood.gitpod.cloud

* [server] Guard project.settings.enableDockerdAuthentication by org write_settings permission

Tool: gitpod/catfood.gitpod.cloud

* review comments with cleanup + small fixes

Tool: gitpod/catfood.gitpod.cloud
2025-02-12 05:16:48 -05:00
Kyle Brennan
58c9a1808a
[ws-manager-mk2] update to support k8s 0.30 API (#20580)
* [go components] Fixed "go test ./..." in various components

Tool: gitpod/catfood.gitpod.cloud

* [go components] Update k8s 0.29.3 -> 0.30.9 API

 - update the go-update-wc-deps.sh script to handle the brunt of that transition
 - fixes Maintenance- + Subscriber-Controller
 - document steps

Tool: gitpod/catfood.gitpod.cloud

* [ws-manager-mk2] Decide how to apply appamor config based on serverversion to support k8s 1.30+

Tool: gitpod/catfood.gitpod.cloud

* [gpctl] Missing go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* Replace vulnerable outcaste-io/badger/v3 with original dgraph-io/badger/v3

Tool: gitpod/catfood.gitpod.cloud

* more go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* [image-builder-bob, installer] Select the correct version of containerd....

Tool: gitpod/catfood.gitpod.cloud

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2025-02-07 03:58:22 -05:00
Gero Posmyk-Leinemann
76781bf322
[dev] Update workspace libraries to match kubernetes (containerd, runc, buildkit) (#20526)
* [workspace] Set lib versions: containerd to 1.6.36, runc 1.1.14 and buildkit to 0.12.5

Reasoning: https://linear.app/gitpod/issue/CLC-982/update-containerd-to-latest-patch-16x-k8s-and-runc-libs-in-gitpod-mono#comment-d5450e2c

* [golangci] Remove superfluous notlint and checks

* [image-builder-mk3] Fix incomplete tests where a library made the field "mediaType" non-optimal

    Original change: https://github.com/opencontainers/image-spec/pull/1091

* [docker] Switch from github.com/docker/distribution/reference to github.com/distribution/reference

* [ws-daemon] Internalize libcontainer/specconv because it got dropped between runc 1.1.10 and 1.1.14
2025-01-20 09:32:10 -05:00
Filip Troníček
65e3f094db
[context parser] Check current ref for Docker image existence (#20345)
* [context parser] Check current ref for Docker image existence

* Better builder bob errors from supervisor

* Gently soft-fail when the Dockerfile isn't found

* Add warning to ws metadata when starting workspace

* Introduce a magic constant instead of empty strings

* Improve supervisor failed reading bob log error

* Fixup cloning our special SHA

* idk what happened

* let workspaces start even on invalid docker refs
2024-11-07 08:13:03 -05:00
Pudong
e2b82f69d9
Add private registry support for Dockerfile image build (#18760)
* 1

* fix

* update buildkitd
2023-09-26 12:55:05 +03:00
Manuel Alejandro de Brito Fontes
513ca768f6
Update buildkit to v0.12.1 (#18505)
* Update buildkit to v0.12.1

* Update DisplaySolveStatus signature

* Switch to github.com/containerd/typeurl/v2
2023-08-15 09:17:40 +02:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Manuel Alejandro de Brito Fontes
ff22010421 [image-builder-bob] Enable wait if error in debug mode 2022-11-02 01:59:06 +01:00
utam0k
6c4c22c913 runc-facade: Alighn the number of retry. 2022-10-31 07:22:04 +01:00
utam0k
3660ed5256 runc-facade: squashes rare runc errors 2022-10-28 17:58:02 +02:00
Pudong
0899f4dc66 Revert "[image-builder-bob] Use separate auth for target and base"
This reverts commit 7b27392b861c09f4db730e47167e1d96273a5999.
2022-05-24 22:34:38 +05:30
Prince Rachit Sinha
7b27392b86 [image-builder-bob] Use separate auth for target and base 2022-05-20 10:13:34 +05:30
Manuel Alejandro de Brito Fontes
c95340d04d Fix change method signature 2022-03-27 20:56:10 +05:30
Christian Weichel
42215c9302 Support private registries 2022-03-08 22:49:15 +05:30
Christian Weichel
505263dc35 [image-builder] Accept "familiar" base image refs 2021-12-02 22:16:28 +01:00
Pudong Zheng
982dc3800f [image-builder] fixes build report 2021-12-02 20:52:28 +01:00
Christian Weichel
ef20ec39a4 [image-builder] Workaround buildkit#2484 2021-11-29 19:52:25 +01:00
Christian Weichel
9af4143698 [image-builder] Don't re-use authentication across requests 2021-11-24 10:27:20 +01:00
Christian Weichel
2810f844ab [image-builder-mk3] Add push ring2 proxy 2021-11-12 10:58:09 +01:00
Manuel Alejandro de Brito Fontes
ef6744c441 Skip tests that require a valid username 2021-11-08 13:53:06 +01:00
Manuel Alejandro de Brito Fontes
f930e75c01 [image-builder-bob] Switch to buildctl 2021-10-26 08:16:03 +02:00
Christian Weichel
64f69a4aea [image-builder] Don't exit to soon on error 2021-09-29 06:51:46 -03:00
Manuel Alejandro de Brito Fontes
f25de2cdbf Log error changing default level 2021-09-22 10:15:47 -03:00
Christian Weichel
c0f80c88fd [image-builder-mk3] Improve in-build log output 2021-07-22 16:32:26 +02:00
Christian Weichel
133cdcfa0c [image-builder] Backport mk3 from gitpod-com 2021-07-22 16:32:26 +02:00