util-docker: Add 'sudo' to Ubuntu 24.04_all-deps

Without this an admin user entering a container mirroring host user
permissions can't run `sudo` within the container as it doesn't exist.
They also can't install it as `apt install` requires `sudo`.

As 24.04_all-deps serves as the base images for other images, this
change will be reflected in most other gem5 Docker images.
This commit is contained in:
Bobby R. Bruce
2024-09-20 19:22:12 -07:00
parent 827bca0cdb
commit 6186fc72a0

View File

@@ -56,7 +56,8 @@ RUN apt -y update && apt -y upgrade && apt -y install \
wget \ wget \
cmake \ cmake \
doxygen \ doxygen \
vim vim \
sudo
# pre-commit, as installed via apt in 24.04, attempts to create a cache # pre-commit, as installed via apt in 24.04, attempts to create a cache
# directory at "${HOME}/.cache/pre-commit". If running docker with non-root, # directory at "${HOME}/.cache/pre-commit". If running docker with non-root,