apache / apache/openwhisk-deploy-kube

Avoid git clones during deployment by creating pre-cloned tagged container

Open
#431 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
309
Forks
231
PR merge metrics
No merged PRs in 30d

Description

As a leftover from our old style of pulling 'latest' of all components when we deploy, the install-packages-job, system-test-job, and init-couchdb-job all clone one or more git repos as part of their computation. The system-test-job also scalaCompiles the test suite, which really should be done at build time.

Instead of doing this, we should create a single docker image that extends ow-utils and does all the git clones with the specified githash at build time. We can update this image periodically (at the same time as we update the other tags in values.yaml and runtimes.json).

This would make deployment a little faster and also remove an occasional source of deployment failures when github is unresponsive and the clone fails.

Contributor guide

Open the contributing guide

Research direction

Start by locating install-packages-job, system-test-job, and init-couchdb-job, then inspect values.yaml and runtimes.json alongside the ow-utils image setup. The finished change should provide one tagged image that performs the specified git clones and Scala test compilation at build time, so deployment jobs no longer clone or compile during deployment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, git, kubernetes, scala, shell
Domain
build-system, cloud, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.