catthehacker / docker_images

Docker images
MIT License
212 stars 75 forks source link

Package AWS CLI is on Official GitHub actions runners, please can we have it? #100

Open james-green-affinity opened 1 year ago

james-green-affinity commented 1 year ago

I would like to see AWS CLI installed on here please:

https://github.com/actions/runner-images/blob/0f7d7a82caa1a89cac0b656cf840ada34caaa37e/images/linux/ubuntu2204.pkr.hcl#L300

On images: ghcr.io/catthehacker/ubuntu:runner-20.04 ghcr.io/catthehacker/ubuntu:runner-22.04 ghcr.io/catthehacker/ubuntu:runner-latest

james-green-affinity commented 1 year ago

Please can package "less" also be installed. On your "full" container I get

"root@docker-desktop:/home/james/projects/ct-drupal/ct-drupal# aws sts get-caller-identity

Unable to redirect output to pager. Received the following error when opening pager: [Errno 2] No such file or directory: 'less'"

The reason for this is because less package is not installed.

james-green-affinity commented 1 year ago

image

james-green-affinity commented 1 year ago

While I wait, I am running my own image: https://hub.docker.com/repository/docker/jamesgreenaffinity/ubuntu-act-images/general

james-green-affinity commented 1 year ago

Update: I have found a much easier way to do this, rather than running my own docker image:

(You would need to use the full image with this method)

as per the documentation: https://github.com/nektos/act#configuration

I just need to add a flag to disable the pager output.

e.g: act --env-file my.env

.env:
AWS_PAGER=""

The only downside to this is I am not blessed with the pager output, which maybe helpful for debugging.