docker-aosp icon indicating copy to clipboard operation
docker-aosp copied to clipboard

USER: Unbound variable

Open vbisbest opened this issue 8 years ago • 5 comments

Seems the that USER needs to be set. Any way this can be added to the docker image?

if using Docker, define the USER environment variable (not set by default), e.g. export USER=$(whoami)

vbisbest avatar Aug 24 '17 18:08 vbisbest

Hmm I see, what are you trying to do when you run into this issue?

On Fri, Aug 25, 2017 at 3:04 Ray Kelly [email protected] wrote:

Seems the that USER needs to be set. Any way this can be added to the docker image?

if using Docker, define the USER environment variable (not set by default), e.g. export USER=$(whoami)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstf/docker-aosp/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_SgLl8ypkiWB-aCNu8eCDdPKsyfTks5sbbs-gaJpZM4PBu4T .

sorccu avatar Aug 24 '17 18:08 sorccu

I am trying to build the SDK. No matter what I do, the build fails. And I cant seem to get any details as to why it fails. Here is my steps:

repo sync Android 7.1.2.

Run your docker image to bash.

source build/envsetup.sh lunch sdk-eng make sdk -j8

I keep getting failures. Have you tried building the SDK?

vbisbest avatar Aug 24 '17 19:08 vbisbest

What was the solution in the end? I got this error as well when building inside docker.

shaqman avatar Aug 13 '18 04:08 shaqman

Here is a proposed solution: https://github.com/openstf/docker-aosp/pull/2

koral-- avatar Aug 13 '18 09:08 koral--

$ docker run -it
--network host
-u buildfarm
-e USER=buildfarm
-w /home/buildfarm/jenkins/workspace/odvb
-h bf-01
-v /home/mamh/code/sdm845:/home/buildfarm/jenkins/workspace/odvb
-v /tmp:/tmp -v /home/mirror:/home/mirror
-v /home/qcom:/home/qcom
bs-ubuntu-14.04:1.2
/bin/bash
make_android.sh

add " -e USER=buildfarm" to 'docker run' command or add "export USER=buildfarm" to 'make_android.sh '

mamh2021 avatar Aug 16 '18 06:08 mamh2021