debian-forge-composer/internal
Christian Kellner 34c94ab92b container: rework GetDefaultAuthFile and don't cache its result
Instead of using a cached result `GetDefaultAuthFile`, always
do call the function when a new `Client` is created, since at
least `/run/containers` can get created as a side-effect by
one of the container. Now that we check eagerly and often the
path check function was reworked to only return paths that do
exist and are accessible.

Also check if `REGISTRY_AUTH_FILE` is set and if so, and it
is accessible use that.

To check accessability, use `unix.Access` instead of `os.Stat`,
since On Fedora/RHEL 9 `os.Stat` is implemented via `statx` and
will indeed return `EACCES` for inaccessible paths. But on RHEL
8 `lstat` is used and that will return `ENOENT` but then later
when trying to open the file we will get `EPERM`.
2022-07-26 17:07:31 +02:00
..
artifact artifact: this represents the artifacts a manifest exports 2022-07-22 16:04:07 +02:00
auth go.mod: Update openshift-online/ocm-sdk-go 2022-05-19 22:18:42 +02:00
blueprint blueprint: add support for containers 2022-07-21 13:32:07 +02:00
boot Move GetRedHatRelease() and GetHostDistroName() to common package 2022-06-10 14:48:18 +01:00
client tests: use TestMain() instead of Init() to compile mock-dnf-json 2022-06-01 11:36:52 +01:00
cloud remove cloud cleaner 2022-07-01 17:47:44 +02:00
cloudapi Cloud API: extend a code comment with more information 2022-07-24 08:40:58 +02:00
common Move GetRedHatRelease() and GetHostDistroName() to common package 2022-06-10 14:48:18 +01:00
container container: rework GetDefaultAuthFile and don't cache its result 2022-07-26 17:07:31 +02:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk disk/partition_table: expose GetBuildPackages() function 2022-07-12 08:19:57 +01:00
distro distro/rhel9: support embedding containers in ostree commits 2022-07-26 17:07:31 +02:00
distroregistry remove all traces of fedora 34 2022-07-18 20:38:33 +02:00
dnfjson jobqueue: Move jobqueue out of internal 2022-07-04 15:37:28 +02:00
environment environment: encapsulate the environment images are deployed to 2022-07-07 12:00:56 +01:00
image image: introduce image kinds for Fedora 2022-07-22 16:04:07 +02:00
jobqueue jobqueue: store an expiry date 2022-07-13 17:26:04 +02:00
jsondb test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
manifest artifact: this represents the artifacts a manifest exports 2022-07-22 16:04:07 +02:00
mocks dnfjson: drop repo checksums 2022-06-01 11:36:52 +01:00
osbuild osbuild: add bindings for org.osbuild.containers.storage.conf stage 2022-07-26 17:07:31 +02:00
ostree ostree: add new CommitSource type 2022-06-15 20:13:47 +02:00
platform platform: include image format 2022-07-22 16:04:07 +02:00
prometheus prometheus: add tenant label 2022-06-07 16:35:03 +02:00
reporegistry reporegistry: remove unused ReposByArch() function 2022-03-09 23:22:06 +00:00
rhsm internal/rhsm: implement fallback to the previous mechanism 2021-08-09 12:40:23 +02:00
rpmmd Rename osbuild2 package to osbuild 2022-07-14 16:54:00 +02:00
runner runner: introduce runner abstraction 2022-07-12 08:19:57 +01:00
store distro: add containers arg to ImageType.Manifest 2022-07-21 13:32:07 +02:00
target worker: move osbuild exports from OSBuildJob to target 2022-07-01 18:55:01 +01:00
test cloudapi: run all Koji compose unit tests 2022-06-10 14:48:18 +01:00
upload worker/osbuild: stop handling VMDK stream-optimized conversion 2022-07-01 18:55:01 +01:00
weldr weldr: use worker job to resolve container 2022-07-25 21:21:44 +02:00
worker worker: add new container resolve job type 2022-07-25 21:21:44 +02:00
workload workload: introduce abstraction to encapsulate image workloads 2022-07-07 12:00:56 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00