mirror of
https://github.com/stucki/docker-lineageos
synced 2025-01-23 17:51:07 -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/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
## [Unreleased][unreleased]
|
## [Unreleased][unreleased]
|
||||||
|
### Added
|
||||||
|
- Rename user "cmbuild" to "build"
|
||||||
|
|
||||||
## [0.6.0] - 2016-08-20
|
## [0.6.0] - 2016-08-20
|
||||||
### Added
|
### 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 bc bsdmainutils file screen
|
||||||
RUN apt-get install -y bash-completion wget nano
|
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 mkdir /home/build/bin
|
||||||
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/cmbuild/bin/repo
|
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/build/bin/repo
|
||||||
RUN chmod a+x /home/cmbuild/bin/repo
|
RUN chmod a+x /home/build/bin/repo
|
||||||
|
|
||||||
# Add sudo permission
|
# 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
|
ADD startup.sh /home/build/startup.sh
|
||||||
RUN chmod a+x /home/cmbuild/startup.sh
|
RUN chmod a+x /home/build/startup.sh
|
||||||
|
|
||||||
# Fix ownership
|
# Fix ownership
|
||||||
RUN chown -R cmbuild:cmbuild /home/cmbuild
|
RUN chown -R build:build /home/build
|
||||||
|
|
||||||
# Set global variables
|
# Set global variables
|
||||||
ADD android-env-vars.sh /etc/android-env-vars.sh
|
ADD android-env-vars.sh /etc/android-env-vars.sh
|
||||||
RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc
|
RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc
|
||||||
|
|
||||||
VOLUME /home/cmbuild/android
|
VOLUME /home/build/android
|
||||||
VOLUME /srv/ccache
|
VOLUME /srv/ccache
|
||||||
|
|
||||||
CMD /home/cmbuild/startup.sh
|
CMD /home/build/startup.sh
|
||||||
|
|
||||||
USER cmbuild
|
USER build
|
||||||
WORKDIR /home/cmbuild/android
|
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 USE_CCACHE=1
|
||||||
export CCACHE_DIR=/srv/ccache
|
export CCACHE_DIR=/srv/ccache
|
||||||
|
2
run.sh
2
run.sh
@ -10,7 +10,7 @@ else
|
|||||||
CCACHE=$(readlink -f $(pwd)/ccache)
|
CCACHE=$(readlink -f $(pwd)/ccache)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CONTAINER_HOME=/home/cmbuild
|
CONTAINER_HOME=/home/build
|
||||||
CONTAINER=cyanogenmod
|
CONTAINER=cyanogenmod
|
||||||
REPOSITORY=stucki/cyanogenmod
|
REPOSITORY=stucki/cyanogenmod
|
||||||
TAG=cm-13.0
|
TAG=cm-13.0
|
||||||
|
@ -6,7 +6,7 @@ if [ ! -f /srv/ccache/CACHEDIR.TAG ]; then
|
|||||||
CCACHE_DIR=/srv/ccache ccache -M 50G
|
CCACHE_DIR=/srv/ccache ccache -M 50G
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export USER="cmbuild"
|
export USER="build"
|
||||||
|
|
||||||
# Launch screen session
|
# Launch screen session
|
||||||
screen -s /bin/bash
|
screen -s /bin/bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user