Skip to content

Allow multistage Dockerfile #103

@FlorianIkarus

Description

@FlorianIkarus

As much as I understand the reason for verifying the Docker image name in the Dockerfile, the current approach makes multistage Dockerfiles impossible.

Example:

FROM cloudblueconnect/connect-extension-runner:28.7 AS build
...
FROM build AS deploy
...

Please modify the validation in connect/eaas/core/validation/validators/base.py/validate_docker_compose_yml, so that it removes the AS <stage name> part (if existing) of the FROM line and then compares it to the pre-calculated image name.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions