rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 656 forks source link

Add aws-cli to default console for ecs enable image #1652

Open bseng opened 7 years ago

bseng commented 7 years ago

RancherOS Version: (ros os version) V0.8.0

Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.) aws

Just a suggestion is it possible to add aws-cli to default console for ecs enable image?

That way anyone using can use aws-cli without building their based image by switching it to ubuntu console.

Thanks.

SvenDowideit commented 7 years ago

not everyone that uses RancherOS is using aws - so we don't want to add AWS specific things to the default console.

personally, I think you should probably do this by using docker run - using something like https://store.docker.com/community/images/cgswong/aws

bseng commented 7 years ago

I understand not everyone uses aws so that's why I suggested to have it available in ecs enable images https://docs.rancher.com/os/amazon-ecs/

for things like attaching ebs volumes before starting docker I can't really use a docker image for that.

joshwget commented 7 years ago

@SvenDowideit Something wonka-like would probably work well here.

SvenDowideit commented 7 years ago

@bseng when you say "docker", you mean user-docker? - ie, you can use a docker container, running in system-docker before the user-docker is started.

(I'm asking because there is a need for things like this, but we need to work out the best approach)

bseng commented 7 years ago

yes I mean user-docker, but I guess it also depends on when will a system-docker image available in the booting process.

if the docker image is available before runcmd and I can use aws-cli at runcmd that I'll be great.

It will be good if the image is already packaged in the ecs image then the start-up time will be shortened.