mirror of
https://github.com/stucki/docker-lineageos
synced 2025-01-09 17:39:47 -05:00
Rename user "cmbuild" to "build"
This commit is contained in:
parent
cc201fee17
commit
0cfb1b6850
@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [Unreleased][unreleased]
|
||||
### Added
|
||||
- Rename user "cmbuild" to "build"
|
||||
|
||||
## [0.6.0] - 2016-08-20
|
||||
### Added
|
||||
|
24
Dockerfile
24
Dockerfile
@ -21,29 +21,29 @@ RUN apt-get install -y android-tools-adb android-tools-fastboot
|
||||
RUN apt-get install -y bc bsdmainutils file screen
|
||||
RUN apt-get install -y bash-completion wget nano
|
||||
|
||||
RUN useradd cmbuild && rsync -a /etc/skel/ /home/cmbuild/
|
||||
RUN useradd build && rsync -a /etc/skel/ /home/build/
|
||||
|
||||
RUN mkdir /home/cmbuild/bin
|
||||
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/cmbuild/bin/repo
|
||||
RUN chmod a+x /home/cmbuild/bin/repo
|
||||
RUN mkdir /home/build/bin
|
||||
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/build/bin/repo
|
||||
RUN chmod a+x /home/build/bin/repo
|
||||
|
||||
# Add sudo permission
|
||||
RUN echo "cmbuild ALL=NOPASSWD: ALL" > /etc/sudoers.d/cmbuild
|
||||
RUN echo "build ALL=NOPASSWD: ALL" > /etc/sudoers.d/build
|
||||
|
||||
ADD startup.sh /home/cmbuild/startup.sh
|
||||
RUN chmod a+x /home/cmbuild/startup.sh
|
||||
ADD startup.sh /home/build/startup.sh
|
||||
RUN chmod a+x /home/build/startup.sh
|
||||
|
||||
# Fix ownership
|
||||
RUN chown -R cmbuild:cmbuild /home/cmbuild
|
||||
RUN chown -R build:build /home/build
|
||||
|
||||
# Set global variables
|
||||
ADD android-env-vars.sh /etc/android-env-vars.sh
|
||||
RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc
|
||||
|
||||
VOLUME /home/cmbuild/android
|
||||
VOLUME /home/build/android
|
||||
VOLUME /srv/ccache
|
||||
|
||||
CMD /home/cmbuild/startup.sh
|
||||
CMD /home/build/startup.sh
|
||||
|
||||
USER cmbuild
|
||||
WORKDIR /home/cmbuild/android
|
||||
USER build
|
||||
WORKDIR /home/build/android
|
||||
|
@ -1,3 +1,3 @@
|
||||
export PATH=/home/cmbuild/bin:$PATH
|
||||
export PATH=/home/build/bin:$PATH
|
||||
export USE_CCACHE=1
|
||||
export CCACHE_DIR=/srv/ccache
|
||||
|
2
run.sh
2
run.sh
@ -10,7 +10,7 @@ else
|
||||
CCACHE=$(readlink -f $(pwd)/ccache)
|
||||
fi
|
||||
|
||||
CONTAINER_HOME=/home/cmbuild
|
||||
CONTAINER_HOME=/home/build
|
||||
CONTAINER=cyanogenmod
|
||||
REPOSITORY=stucki/cyanogenmod
|
||||
TAG=cm-13.0
|
||||
|
@ -6,7 +6,7 @@ if [ ! -f /srv/ccache/CACHEDIR.TAG ]; then
|
||||
CCACHE_DIR=/srv/ccache ccache -M 50G
|
||||
fi
|
||||
|
||||
export USER="cmbuild"
|
||||
export USER="build"
|
||||
|
||||
# Launch screen session
|
||||
screen -s /bin/bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user