mirror of
https://github.com/stucki/docker-lineageos
synced 2024-12-19 17:12:29 -05:00
Remove su-wrapper (upstream issue has been fixed)
This commit is contained in:
parent
14be199b1b
commit
6b6aba0a93
13
Dockerfile
13
Dockerfile
@ -34,12 +34,12 @@ RUN chmod a+x /home/cmbuild/bin/repo
|
||||
# Add sudo permission
|
||||
RUN echo "cmbuild ALL=NOPASSWD: ALL" > /etc/sudoers.d/cmbuild
|
||||
|
||||
ADD startup.sh /home/cmbuild/startup.sh
|
||||
RUN chmod a+x /home/cmbuild/startup.sh
|
||||
|
||||
# Fix ownership
|
||||
RUN chown -R cmbuild:cmbuild /home/cmbuild
|
||||
|
||||
ADD startup.sh /root/startup.sh
|
||||
RUN chmod a+x /root/startup.sh
|
||||
|
||||
# Set global variables
|
||||
ADD android-env-vars.sh /etc/android-env-vars.sh
|
||||
RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc
|
||||
@ -47,8 +47,7 @@ RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc
|
||||
VOLUME /home/cmbuild/android
|
||||
VOLUME /srv/ccache
|
||||
|
||||
CMD /root/startup.sh
|
||||
CMD /home/cmbuild/startup.sh
|
||||
|
||||
# This does not work yet, see https://github.com/docker/docker/issues/9806
|
||||
#USER cmbuild
|
||||
#WORKDIR /home/cmbuild/android
|
||||
USER cmbuild
|
||||
WORKDIR /home/cmbuild/android
|
||||
|
@ -16,9 +16,5 @@ for i in "/home/cmbuild/android" "/srv/ccache"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Fix console permissions as long as https://github.com/docker/docker/issues/9806 is not fixed
|
||||
usermod --groups tty --append cmbuild
|
||||
chgrp tty /dev/console
|
||||
chmod g+rw /dev/console
|
||||
|
||||
su -c "cd /home/cmbuild/android; screen -s /bin/bash" cmbuild
|
||||
# Launch screen session
|
||||
screen -s /bin/bash
|
||||
|
Loading…
Reference in New Issue
Block a user