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

Smoke test VM images are getting outdated #449

Closed
kke opened this issue Jan 12, 2023 · 3 comments · Fixed by #552
Closed

Smoke test VM images are getting outdated #449

kke opened this issue Jan 12, 2023 · 3 comments · Fixed by #552
Labels
chore Housekeeping / typo / code quality improvements enhancement New feature or request help wanted Extra attention is needed

Comments

@kke
Copy link
Contributor

kke commented Jan 12, 2023

Footloose is essentially dead. There are no responses to issues, PRs are not merged, no new images are pushed and the old ones aren't being fixed.

There probably exists some better option, k0sctl and k0s are not the only projects who need quick-deploy micro-vms for CI that preferably can run on standard github workers.

@kke kke added enhancement New feature or request help wanted Extra attention is needed chore Housekeeping / typo / code quality improvements labels Jan 12, 2023
@till
Copy link

till commented Jan 13, 2023

I like footloose as well, but it's over. 😕 I have been playing with Docker containers, but there's no ssh. I mean, in theory you can start ssh in it and then use that to provision? I have a POC for Flatcar to do that. Should be possible with others, but it requires maintaining custom images.

@kke
Copy link
Contributor Author

kke commented Jan 13, 2023

You can run systemd + sshd and so on in the container. That's pretty much what footloose does + adds a handy cli for spinning those up.

We could just build and maintain our own images for footloose or ditch footloose and run the images directly.

https://github.com/weaveworks/footloose/tree/master/images here you can see how to create such images.

@till
Copy link

till commented Jan 13, 2023

I am doing something like that for flatcar linux:
https://github.com/Luzilla/flatcar-linux-oci/blob/main/rootfs/Dockerfile

And then it just needs something like this:

SSH_PORT?=2222

run:
    docker run -it \
		--mount type=tmpfs,destination=/run \
		--mount type=tmpfs,destination=/run/lock \
		--mount type=tmpfs,destination=/tmp \
		--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
		--privileged \
		-p $(SSH_PORT):22 \
		--rm \
		--name $(_name) \
		$(REGISTRY)$(IMAGE):$(CHANNEL)

... and you can ssh in.

I do like the API around it that footloose provides. But maybe running a few containers all that is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Housekeeping / typo / code quality improvements enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants