docker_images icon indicating copy to clipboard operation
docker_images copied to clipboard

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

Open gingerhot opened this issue 3 years ago • 5 comments

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.

gingerhot avatar May 27 '22 14:05 gingerhot

Only python is installed

catthehacker avatar May 27 '22 14:05 catthehacker

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.

gingerhot avatar May 27 '22 14:05 gingerhot

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

catthehacker avatar May 27 '22 14:05 catthehacker

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 avatar Sep 04 '22 04:09 jre21

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 avatar Sep 04 '22 04:09 jre21

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

br daniel

dhofstetter avatar Sep 14 '23 07:09 dhofstetter

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

ChristopherHX avatar Sep 18 '23 22:09 ChristopherHX