Skip to content

Proposal: Make a common base image #1390

@zhujian7

Description

@zhujian7

Proposal: Make a common base image

Background

There are many component images in Cyclone, cyclone-server, cyclone-workflow-controller, cyclone-workflow-coordinator, etc. They use a different base image, such as alpine:3.8 ubuntu:18.10 and bash:4.1.17, and almost every image built needs to connect to the network, installing subversion, installing docker and so on.

Disadvantages of that:

  • we can not build even one Cyclone image in a no network environment
  • we must do some duplicated works, like downloading subversion, in some images building.

Proposal

I think we can:

  • Unify all base image form alpine:3.8 ubuntu:18.10 and bash:4.1.17 to alpine:3.8.(almostly done except for sonarqube)
  • Then creates a common base image based on alpine:3.8 and installed all tools from the internet for other component images. Naming the common base image is difficult for me, how about cyclone-base?

Advantages

Could resolve problems described in the background

Disavantages

Some images may container some tools they don't need and make their size bigger than before. But I think that is acceptable.

/cc @supereagle @hyy0322 @bbbmj

Uncomment only one, leave it on its own line:

/kind proposal

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/proposalProposing Changes to Cyclone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions