Skip to content
Snippets Groups Projects
Commit afdba4fd authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

Merge branch 'ci-sudo' into 'kirkstone'

bitbake-builder: Enable password-less sudo

See merge request eclipse/oniro-core/meta-openharmony!97
parents 97a84cde e2153dc6
No related branches found
No related tags found
1 merge request!97bitbake-builder: Enable password-less sudo
Pipeline #15083 passed
......@@ -14,7 +14,7 @@
# limitations under the License.
variables:
BITBAKE_CONTAINER_VERSION: "0.8"
BITBAKE_CONTAINER_VERSION: "0.9"
OPENHARMONY_CONTAINER_VERSION: "0.1"
.kaniko:
......
......@@ -47,6 +47,9 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections \
# suid to get it working
RUN chmod u+s $(command -v ping)
# Allow password-less sudo
RUN echo 'builder ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/toolbox
RUN useradd --create-home --uid 1000 --shell /usr/bin/bash builder
COPY --chown=builder:builder .gitconfig /home/builder/.gitconfig
USER builder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment