diff --git a/.oniro-ci/containers/oe-selftest/Dockerfile b/.oniro-ci/containers/oe-selftest/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..691e1a869fa6a802363e689210a1b5c1c8170526 --- /dev/null +++ b/.oniro-ci/containers/oe-selftest/Dockerfile @@ -0,0 +1,18 @@ +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