From 6186fc72a00d4819395d2fa5111ef4b80838a54a Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Fri, 20 Sep 2024 19:22:12 -0700 Subject: [PATCH] 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. --- util/dockerfiles/ubuntu-24.04_all-dependencies/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/dockerfiles/ubuntu-24.04_all-dependencies/Dockerfile b/util/dockerfiles/ubuntu-24.04_all-dependencies/Dockerfile index dec66f8ab6..7f83e7c45f 100644 --- a/util/dockerfiles/ubuntu-24.04_all-dependencies/Dockerfile +++ b/util/dockerfiles/ubuntu-24.04_all-dependencies/Dockerfile @@ -56,7 +56,8 @@ RUN apt -y update && apt -y upgrade && apt -y install \ wget \ cmake \ doxygen \ - vim + vim \ + sudo # 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,