Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(dockerfile): Upgrade to bullseye #167

Merged
merged 11 commits into from
Oct 4, 2023
Merged

Conversation

ctlong
Copy link
Member

@ctlong ctlong commented Sep 29, 2023

What is this change about?

Upgrades the cf-d-c-t docker image to have Debian bullseye as the base of the image.

Included some refactors and updates that I think should be relatively minor:

  • No longer include the bbl repo at var/repos/bosh-bootloader.
  • Remove duplicate package installations.
  • Remove packages that don't appear to be needed for any specific reason.
  • Use ruby 2.7.7 instead of ruby 2.5.4.

Please provide contextual information.

Closes #165.

Please check all that apply for this PR:

  • introduces a new task
  • changes an existing task
  • changes the Dockerfile
  • introduces a breaking change (other users will need to make manual changes when this is released)

Did you update the README as appropriate for this change?

  • YES
  • N/A

What is the level of urgency for publishing this change?

  • Urgent - unblocks current or future work
  • Slightly Less than Urgent

Tag your pair, your PM, and/or team!

None

@ctlong ctlong changed the title Feat(dockerfile): Upgrade to bullseye base Feat(dockerfile): Upgrade to bullseye Sep 29, 2023
@ctlong ctlong marked this pull request as ready for review September 29, 2023 22:59
@ctlong ctlong requested a review from a team September 29, 2023 22:59
jochenehret
jochenehret previously approved these changes Oct 2, 2023
Copy link
Contributor

@jochenehret jochenehret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've built the image locally and found no problems. I can't tell however if it works in our pipelines, we'll have to try...

@ctlong
Copy link
Member Author

ctlong commented Oct 2, 2023

Going to wait until tomorrow or the next day to merge in order to give folks time to react to my message in Slack.

As far as I can tell, copying the bbl repo into
`var/repos/bosh-bootloader` is an outdated practice from when we wanted
to make the plan-patches and other information available to copy inside
the docker container.

Searching GitHub, I was unable to find modern examples of code that
referenced that location, so I feel good about removing this.
This upgrade to bullseye, which matches Ubuntu Jammy more closely than
buster, has been a long time coming. The official Golang docker images
finally stopped supporting buster and forced our hand if we wanted to
get a later patch of Golang.

Had to change some other things in order to get this docker file to
build with the new base:
- Use the new bosh CLI dependencies
  (https://bosh.io/docs/cli-v2-install/#ubuntu).
- Upgrade to ruby 2.7.7 (what the ruby-full package installs by
  default).
Some packages are already installed via the base image:
- curl
- git
- wget

Some packages I can't determine a reason to keep around:
- apt-utils
- software-properties-common
When there's a new version of yq, we should update the Dockerfile to use
it.
@ctlong
Copy link
Member Author

ctlong commented Oct 3, 2023

Had to rebase to resolve merge conflicts

@ctlong ctlong merged commit ef58fcb into main Oct 4, 2023
1 check passed
@ctlong ctlong deleted the feat/dockerfile/bullseye branch October 4, 2023 16:26
ctlong added a commit that referenced this pull request Oct 5, 2023
It appears that we used to use `kislyuk/yq` but #167 switched us to
`mikefarah/yq` unintentionally.

It appears that `--output-format yaml` will work for `mikefarah/yq` the
same way that `--yaml-output` worked for `kislyuk/yq`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump to latest patch of golang in dockerfile
2 participants