Skip to content
Snippets Groups Projects

.oniro-ci/containers/bitbake-builder: add support for runqemu

Merged Chase Qi requested to merge (removed):builder-sudo into kirkstone
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
  • 11b001c7
    .oniro-ci: add oe-selftest dockerfile · 11b001c7
    Chase Qi authored
    The docker image is based bitbake-builder. 'sudo su - builder' step added for
    oe-selftest as 'USER builder' doesn't really load user level profile. The below
    vars are misssing before user re-switch.
    
      SHELL=/usr/bin/bash
      LOGNAME=builder
      LESSCLOSE=/usr/bin/lesspipe %s %s
      LESSOPEN=| /usr/bin/lesspipe %s
      USER=builder
      MAIL=/var/mail/builder
    
    And PATHes are different before and after user re-switch.
    Before: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    After: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    
    Although 'whoami' command can be found in both PATHes, oe-selftest reports
    'whoami' not found issue with the former path, the reason behind is to be
    investigated. In general, user instead of root profile should be used for
    oe-selftest.
    
    Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
+ 18
0
FROM chaseqi/bitbake-builder:v1.3
# 'USER builder' doesn't really load user level profile.
# The below vars are misssing before user re-switch.
# SHELL=/usr/bin/bash
# LOGNAME=builder
# LESSCLOSE=/usr/bin/lesspipe %s %s
# LESSOPEN=| /usr/bin/lesspipe %s
# USER=builder
# MAIL=/var/mail/builder
# And PATHes are different before and after user re-switch.
# Before: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# After: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
# Although 'whoami' command can be found in both PATHes, oe-selftest reports
# 'whoami' not found issue with the former path, the reason behind is to be
# investigated. In general, user instead of root profile should be used for
# oe-selftest.
ENTRYPOINT sudo su - builder
Loading