File tree 6 files changed +22
-19
lines changed
6 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ RUN apt-get update \
24
24
&& apt-get autoremove \
25
25
&& rm -rf /var/lib/apt/lists/*
26
26
27
- RUN useradd -m -s /bin/zsh util01 && echo "util01:mot2passe" | chpasswd && adduser util01 sudo
28
-
29
27
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
30
28
RUN chsh -s /usr/bin/zsh
31
29
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/zsh
@@ -35,15 +33,4 @@ RUN git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/t
35
33
RUN sed -i 's/robbyrussell/powerlevel9k\/ powerlevel9k/' ~/.zshrc
36
34
RUN sed -i 's/ git/ git zsh-syntax-highlighting zsh-autosuggestions colored-man-colored/' ~/.zshrc
37
35
38
- RUN cp ~/.zshrc ~/aa
39
- RUN echo export TERM="xterm-256color" > ~/.zshrc
40
- RUN cat ~/aa >> ~/.zshrc
41
- RUN rm ~/aa
42
-
43
- RUN cp ~/.zshrc /home/util01/
44
- RUN sed -i 's/ export ZSH=\"\/ root\/ .oh-my-zsh\" /export ZSH=\"\/ home\/ util01\/ .oh-my-zsh\" /' /home/util01/.zshrc
45
- RUN cp -R ~/.oh-my-zsh /home/util01
46
- RUN chown -R util01:util01 /home/util01/
47
-
48
- RUN mkdir /home/util01/volume01 && \
49
- chown -R util01:util01 /home/util01/volume01
36
+ RUN cp ~/.zshrc ~/aa && echo export TERM="xterm-256color" > ~/.zshrc && cat ~/aa >> ~/.zshrc && rm ~/aa
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ docker volume create voluser
4
+ docker volume ls
Original file line number Diff line number Diff line change 2
2
3
3
docker run --hostname local \
4
4
--rm \
5
- -v volume01:/home/util01/volume01 \
5
+ -v voluser:/home/voluser \
6
+ -v " $( pwd) " /script:/script \
6
7
-ti nekrofage/ubuntu1804test:latest \
7
8
/bin/zsh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ USER=util01
4
+
5
+ echo " User setup"
6
+
7
+ useradd -m -s /bin/zsh -d /home/voluser/$USER $USER
8
+ echo " $USER :mot2passe" | chpasswd
9
+ adduser $USER sudo
10
+
11
+ cp ~ /.zshrc /home/voluser/$USER /
12
+ sed -i ' s/ export ZSH=\"\/root\/.oh-my-zsh\"/export ZSH=\"\/home\/voluser\/$USER\/.oh-my-zsh\"/' /home/voluser/$USER /.zshrc
13
+ cp -R ~ /.oh-my-zsh /home/voluser/$USER
14
+
15
+
You can’t perform that action at this time.
0 commit comments