USER: Unbound variable
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)
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 .
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?
What was the solution in the end? I got this error as well when building inside docker.
Here is a proposed solution: https://github.com/openstf/docker-aosp/pull/2
$ 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