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(build): Ubuntu image variant support #3964

Merged
merged 3 commits into from
Aug 20, 2019

Conversation

pdelagrave
Copy link

  • Refactored the Dockerfiles to support image variants, slim and ubuntu are now supported and expected by the buildtool system.
  • Moved all the service-specific build logic to the Dockerfiles, making cloudbuild.yaml generic.
  • cloudbuild.yaml is now generic for every services, removed it from the services repos and made it a single file in buildtool.
  • Dockerfile.compile is required as the first stage to compile/build an artifact copied in the final images during the 2nd stage.
  • To build the images locally: docker build -t compile -f Dockerfile.compile . && docker build -f Dockerfile.[slim|ubuntu] .

Pierre Delagrave added 3 commits August 20, 2019 09:36
* New tagging format: `version-variant`, example: `1.2.3-alpine`
* For backward compatibility with the buildtool system and older versions of Halyard, the alpine image variant keeps the original 'naked' version tag i.e. `1.2.3` in addition to the one with the new format.
* The BOM format doesn't change, it's up to Halyard to append the right `-variant` for a tag to fetch the right image on the registry.
* The Dockerfiles are meant to be used directly for ad-hoc image creation by an end-user and by the existing build system through `cloudbuild.yml`.
@spinnakerbot
Copy link
Contributor

The following commits need their title changed:

  • edefa93: Cloudbuild.yaml is now generic and lives in spinnaker/spinnaker buildtool

Please format your commit title into the form:

<type>(<scope>): <subject>, e.g. fix(kubernetes): address NPE in status check

This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here.

@pdelagrave pdelagrave changed the title feat(build): ubuntu image variant support feat(build): Ubuntu image variant support Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants