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

Create Docker image #48

Open
alegrey91 opened this issue Nov 28, 2024 · 0 comments · May be fixed by #56
Open

Create Docker image #48

alegrey91 opened this issue Nov 28, 2024 · 0 comments · May be fixed by #56
Labels
ci/cd Something about CI/CD documentation Improvements or additions to documentation enhancement New feature or request

Comments

@alegrey91
Copy link
Owner

alegrey91 commented Nov 28, 2024

harpoon needs a Dockerfile to build its own image.
This is part of the process to integrate harpoon in other repositories that make use of docker images when running tests.

Suppose to have a Kubernetes operator that runs e2e tests within a cluster.
This will first install the container image (through helm or other methods) on the cluster and then will run tests against the Kubernetes instance.
In order to integrate harpoon in this process, I was thinking to create our own docker image, so that everyone that wants to use harpoon in his e2e test suite, can add the harpoon image as final stage in his Dockerfile like so:

FROM golang:1.23 AS build
WORKDIR /src
COPY <<EOF /src/main.go
package main

import "fmt"

func main() {
  fmt.Println("hello, world")
}
EOF
RUN go build -o /bin/hello ./main.go

FROM harpoon:latest
COPY --from=build /bin/hello /bin/hello
CMD ["/bin/harpoon", "capture", "-f", "main.main", "--save", "--directory", "results/", "--", "./hello"]

This issue includes also the need of a pipeline to build the image and push it on a registry (dockerhub, quay.io).

@alegrey91 alegrey91 added documentation Improvements or additions to documentation enhancement New feature or request ci/cd Something about CI/CD labels Nov 28, 2024
@alegrey91 alegrey91 linked a pull request Dec 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Something about CI/CD documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant