Yarn

Recent twts in reply to #axkd3eq

My proof-of-concept Container as a Service (CAS or CaaS) is now up and running. If anyone wants to have a play? šŸ¤” Thereā€™s still heaps to do, lots of ā€œfeaturesā€ missing, but you can run stuff at least šŸ˜…

ssh -p 2222 cas.run help

ā¤‹ Read More

@prologic@twtxt.net

# ssh -p 2222 cas.run help                                                                                                                                                
The authenticity of host '[cas.run]:2222 ([139.180.180.214]:2222)' can't be established.
RSA key fingerprint is SHA256:i5txciMMbXu2fbB4w/vnElNSpasFcPP9fBp52+Avdbg.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[cas.run]:2222' (RSA) to the list of known hosts.
abucci@cas.run: Permission denied (publickey).

ā¤‹ Read More

@prologic@twtxt.net aha, thank you, that got me unjammed.

Turns out I thought I had an SSH key set up in github, but github didnā€™t agree with me. So, I re-added the key.

I also had to modify the command slightly to:

ssh -p 2222 -i PRIVATE_GITHUB_KEY GITHUB_USERNAME@cas.run help

since I generate app-specific keypairs and need to specify that for ssh and I havenā€™t configured it to magically choose the key so I have to specify it in the command line.

Anyhow, that did it. Thanks!

ā¤‹ Read More

@prologic@twtxt.net hmm, now I get this:

$ ssh -p 2222 -i PRIVATE_GITHUB_KEY GITHUB_USERNAME@cas.run add | sh
sh: 135: docker: not found

The quickstart says:

## Quick Start

  ssh -p 2222 cas.run add | sh

so thatā€™s why I tried this command (I had to modify it with my key and username like before)

Edit: šŸ¤¦ā€ā™‚ and thatā€™s becasue I donā€™t have docker on this machine. Sorry about that, false alarm.

ā¤‹ Read More

@prologic@twtxt.net @jmjl@tilde.green
It looks like thereā€™s a podman issue for adding the context subcommand that docker has. Currently podman does not have this subcommand, although this comment has a translation to podman commands that are similar-ish.

It looks like thatā€™s all you need to do to support podman right now! Though Iā€™m not 100% sure the containers I tried really are running remotely. Details below.

I manually edited the shell script that cas.run add returns, changing all the docker commands to podman commands. Specifically, I put alias docker=podman at the top so the check for docker would pass, and then I replaced the last two lines of the script with these:

podman system connection add cas  "host=tcp://cas.run..."
podman system connection default cas

(that ā€¦ after cas.run is a bunch of connection-specific stuff)

I ran the script and it exited with no output. It did create a connection named ā€œcasā€, and made that the default. Iā€™m not super steeped in how podman works but I believe thatā€™s what you need to do to get podman to run containers remotely.

I ran some containers using podman and I think they are running remotely but I donā€™t know the right juju to verify. It looks right though!

This means you could probably make minor modifications to the generated shell script to support podman. Maybe when the check for docker fails, check for podman, and then later in the script use the podman equivalents to the docker context commands.

ā¤‹ Read More

@prologic@twtxt.net I had a feeling my container was not running remotely. It was too crisp.

podman is definitely capable of it. Iā€™ve never used those features though so Iā€™d have to play around with it awhile to understand how it works and then maybe Iā€™d have a better idea of whether itā€™s possible to get it to work with cas.run.

Thereā€™s a podman-specific way of allowing remote container execution that wouldnā€™t be too hard to support alongside docker if you wanted to go that route. Personally I donā€™t use dockerā€“too fat, too corporate. podman is lightweight and does virtually everything Iā€™d want to use docker to do.

ā¤‹ Read More

@prologic@twtxt.net I donā€™t get your objection. dockerd is 96M and has to run all the time. You canā€™t use docker without it running, so you have to count both. docker + dockerd is 131M, which is over 3x the size of podman. Plus you have this daemon running all the time, which eats system resources podman doesnā€™t use, and docker fucks with your network configuration right on install, which podman doesnā€™t do unless you tell it to.

Thatā€™s way fat as far as Iā€™m concerned.

As far as corporate goes, podman is free and open source software, the end. docker is a company with a pricing model. It was founded as a startup, which suggests to me that, like almost all startups, they are seeking an exit and if they ever face troubles in generating that exit theyā€™ll throw out all niceties and abuse their users (see Reddit, the drama with spyware in Audacity, 10,000 other examples). Sure you can use it free for many purposes, and the container bits are open source, but that doesnā€™t change that itā€™s always been a corporate entity, that they can change their policies at any time, that they can spy on you if they want, etc etc etc.

Thatā€™s way too corporate as far as Iā€™m concerned.

I mean, all of this might not matter to you, and thatā€™s fine! Nothing wrong with that. But you canā€™t have an alternate realityā€“these things I said are just facts. You can find them on Wikipedia or docker.com for that matter.

ā¤‹ Read More

Participate

Login to join in on this yarn.