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

It seems that pip is not included in ghcr.io/catthehacker/ubuntu:act-latest? #61

Closed
gingerhot opened this issue May 27, 2022 · 7 comments · Fixed by #74
Closed

It seems that pip is not included in ghcr.io/catthehacker/ubuntu:act-latest? #61

gingerhot opened this issue May 27, 2022 · 7 comments · Fixed by #74
Labels
tool-request Request for new tool to be added

Comments

@gingerhot
Copy link

gingerhot commented May 27, 2022

There is an error when I call pip or pip3, I think this might be installed in the image. Or I made some mistakes?
Thanks in advance.

@catthehacker
Copy link
Owner

Only python is installed

@gingerhot
Copy link
Author

Only python is installed

Thank you for rapid response!
Would you like to add it? I think it should be included in this medium size image for convenience.

@catthehacker
Copy link
Owner

Will check later if it isn't super big, then I can add it

@jre21
Copy link
Contributor

jre21 commented Sep 4, 2022

Seconding this. pip and venv are centerpieces of the python ecosystem, and having them available by default would make it much more convenient to test python workflows in act. They consume roughly 5MB with --no-install-recommends.

% docker run --rm -it docker.io/catthehacker/ubuntu:act-20.04
root@3f6c81ec12ec:/tmp# apt-get update && apt-get install --no-install-recommends --no-install-suggests python3-pip python3-venv
Get:2 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.5 kB]
Get:3 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [206 kB]
Get:1 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease [24.4 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:6 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease [23.8 kB]
Get:7 https://packagecloud.io/github/git-lfs/ubuntu focal/main amd64 Packages [2944 B]
Get:8 http://ppa.launchpad.net/git-core/ppa/ubuntu focal/main amd64 Packages [3171 B]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1497 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [27.5 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2127 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [892 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [30.2 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1606 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1186 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2583 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.1 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [27.4 kB]
Fetched 23.7 MB in 3s (7552 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python-pip-whl python3-setuptools python3-wheel python3.8-venv
Suggested packages:
  python-setuptools-doc
Recommended packages:
  build-essential python3-dev
The following NEW packages will be installed:
  python-pip-whl python3-pip python3-setuptools python3-venv python3-wheel python3.8-venv
0 upgraded, 6 newly installed, 0 to remove and 19 not upgraded.
Need to get 2396 kB of archives.
After this operation, 4970 kB of additional disk space will be used.
Do you want to continue? [Y/n]

@jre21
Copy link
Contributor

jre21 commented Sep 4, 2022

It's probably also worth including pipx since the setup-python action references it in two of their demos.

For reference, apt-get on Ubuntu 20.04 reports python3-pip as requiring 4932 kB of space, while python3-venv and pipx only add an additional 157 kB. That demo also implies that the actions containers include ~/.local/bin in $PATH.

jre21 added a commit to jre21/docker_images that referenced this issue Sep 7, 2022
This dramatically improves the experience of running python-based
actions workflows.  It adds roughly 7MB of space to the Ubuntu 20.04
image and 22MB to Ubuntu 22.04.

resolves: catthehacker#61
@catthehacker catthehacker added the tool-request Request for new tool to be added label Dec 8, 2022
@dhofstetter
Copy link

@catthehacker do you have made a decision regarding pip , pipx and venv already?

br daniel

ChristopherHX added a commit that referenced this issue Sep 18, 2023
This dramatically improves the experience of running python-based
actions workflows.  It adds roughly 7MB of space to the Ubuntu 20.04
image and 22MB to Ubuntu 22.04.

resolves: #61

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
@ChristopherHX
Copy link
Collaborator

I have taken over basic maintenance, they are now available in act-latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool-request Request for new tool to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants