GSA-TTS/gitlab-runner-cloudgov

Support Alpine and RedHat distro based images

Opened this issue · 1 comments

As a GitLab Runner user,
I would like to run job steps with images based on non-Debian distros,
So I may avoid having to build new base images and other silly things just because the cloud.gov runner doesn't know how to install packages correctly.

Proposed Solution

  • Add package install support for Alpine (apk seems busted right now)
  • Add package install support for RedHat (there is no rpm install at all right now)
  • Consider a potential fail-safe that would pull binaries with curl and check sigs?

Acceptance Criteria

  • Jobs run with an Alpine based image work
  • Jobs run with a RedHat based image work

Additional Info

The current guilty code:

https://github.com/GSA-TTS/gitlab-runner-cloudgov/blob/11f09a79aa62d992a23bac0cabccbddf9c835588/runner/cf-driver/prepare.sh#L113C1-L137C1

APK seems to just be missing which is odd. Also odd is npm not being available on a Node image. Could be related?