next #1
|
@ -25,7 +25,7 @@ RUN \
|
||||||
apt -y upgrade && \
|
apt -y upgrade && \
|
||||||
apt -y install $SYSTEM_PACKAGES && \
|
apt -y install $SYSTEM_PACKAGES && \
|
||||||
groupadd -g $GID_TO_ADD $USERNAME_TO_ADD && \
|
groupadd -g $GID_TO_ADD $USERNAME_TO_ADD && \
|
||||||
useradd -u $UID_TO_ADD -g $GID_TO_ADD -s /bin/bash $USERNAME_TO_ADD && \
|
useradd -u $UID_TO_ADD -g $GID_TO_ADD --home-dir /home/user -s /bin/bash $USERNAME_TO_ADD && \
|
||||||
usermod -p '*' $USERNAME_TO_ADD && \
|
usermod -p '*' $USERNAME_TO_ADD && \
|
||||||
echo $USERNAME_TO_ADD > /etc/workuser && \
|
echo $USERNAME_TO_ADD > /etc/workuser && \
|
||||||
go get -v -u github.com/peterbourgon/runsvinit && \
|
go get -v -u github.com/peterbourgon/runsvinit && \
|
||||||
|
|
|
@ -35,7 +35,6 @@ pip3 install black
|
||||||
# install vim-go
|
# install vim-go
|
||||||
|
|
||||||
sudo \
|
sudo \
|
||||||
--preserve-env=USERNAME_TO_ADD \
|
|
||||||
--set-home \
|
--set-home \
|
||||||
--non-interactive \
|
--non-interactive \
|
||||||
-u $USERNAME_TO_ADD \
|
-u $USERNAME_TO_ADD \
|
||||||
|
|
|
@ -11,11 +11,6 @@ U="$USERNAME_TO_ADD"
|
||||||
# original home
|
# original home
|
||||||
OH="/hosthome"
|
OH="/hosthome"
|
||||||
|
|
||||||
# container home
|
|
||||||
export HOME="/home/$U"
|
|
||||||
|
|
||||||
rsync -avP /home/template/ $HOME/
|
|
||||||
|
|
||||||
# link ~/.home to original home
|
# link ~/.home to original home
|
||||||
ln -s "/hosthome" $HOME/.home
|
ln -s "/hosthome" $HOME/.home
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue