Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

ci: push/pull CI container image. #1285

Merged
merged 10 commits into from
Aug 17, 2021
Merged

Conversation

jgehrcke
Copy link
Contributor

So far the CI container image was never pushed to docker hub.

It was bound to the lifetime of the VM / disk.

Sometimes, a build finds empty / fresh state (fresh disk) and then the CI container image needs to be built from scratch. This takes a few minutes. Can reduce the duration of that process by pulling in some image layers stored on docker hub. (the last N layers need to be built and pushed for each build, and that's at the con side of this change -- let's monitor the impact).

@jgehrcke jgehrcke force-pushed the jp/ci-push-pull-containerimage branch from a63930c to 0e84764 Compare August 16, 2021 18:04
So far the CI container image was never
pushed to docker hub.

It was bound to the lifetime of the
VM (or disk).

Can probably reduce the preamble duration
of some builds that start from a rather new
state by using image layers stored on docker
hub.

Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
could push the image from within
that container. in preamble.
as bg process. could cut a minute?
keep in mind as optimization.

Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
for making browser display content
in tab right away instead of
offering download

Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
@jgehrcke jgehrcke force-pushed the jp/ci-push-pull-containerimage branch from 93b2eee to fbad924 Compare August 16, 2021 18:19
@jgehrcke
Copy link
Contributor Author

Hm. Docker credentials are set up in $HOME/.docker/config.json and yet

denied: requested access to the resource is denied
[2021-08-16T18:19:22Z] make: *** [push-ci-container-image] Error 1

Knowing that this works from within the CI container I will now move the push of the current CI container image into said container.

Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
needed in the looker build steps below,
not done in bg w/ unique build dir

Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
The CLI build has some implicit surprising
dependency on the controller.

While building the CLI tsc complains that

[2021-08-16T19:12:22Z] ../controller/src/dbSDK.ts(17,31):
   error TS2307: Cannot find module 'graphql-request' or its
   corresponding type declarations.../controller/src/dbSDK.ts

The CLI build should not trigger a (partial) controller
build.

As per the dependencies, the CLI depends on controller-config
but not on .. well.

Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
@jgehrcke
Copy link
Contributor Author

main-test-gcp failed with a known instability: #1130 (comment)

@jgehrcke jgehrcke merged commit 8a6275a into main Aug 17, 2021
@jgehrcke jgehrcke deleted the jp/ci-push-pull-containerimage branch August 17, 2021 07:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant