From c2764be332144ebd7e663c1da0ab713c2c0b3391 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Thu, 13 Oct 2016 14:53:41 -0700 Subject: [PATCH] entrypoint: Preserve ENV variables A few ENV variables are set in the Docker file, most notably those related to ccache. The move to a docker entrypoint script called sudo to switch to the AOSP user and reset the ENV varibles. Preserve these variables so that things set in the Dockerfile are inherited by the environment as expected. --- utils/docker_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/docker_entrypoint.sh b/utils/docker_entrypoint.sh index a607159..5fbce3f 100755 --- a/utils/docker_entrypoint.sh +++ b/utils/docker_entrypoint.sh @@ -45,4 +45,4 @@ fi # Execute command as `aosp` user export HOME=/home/aosp -exec sudo -u aosp $args +exec sudo -E -u aosp $args