File tree Expand file tree Collapse file tree 11 files changed +51
-29
lines changed Expand file tree Collapse file tree 11 files changed +51
-29
lines changed Original file line number Diff line number Diff line change
1
+ # Docker
2
+ Dockerfile.tags
3
+
4
+ # fixups
5
+ fixups /pkg
6
+
7
+ # etc
8
+ * .swp
Original file line number Diff line number Diff line change @@ -18,12 +18,11 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
18
18
USER root
19
19
WORKDIR /root
20
20
COPY fixups fixups
21
- COPY id id
22
- COPY sudo sudo
23
- RUN chmod -R +x fixups id sudo
24
- RUN ./fixups/pkg
21
+ RUN chmod -R +x fixups
22
+ RUN ./fixups/preinst
25
23
RUN ./fixups/ssh
26
- RUN rm -rf fixups
24
+ RUN ./fixups/id
25
+ RUN ./fixups/sudo
27
26
28
27
USER ${ID}
29
28
WORKDIR /home/${ID}
Original file line number Diff line number Diff line change @@ -8,10 +8,9 @@ WORKDIR /root
8
8
COPY fixups fixups
9
9
RUN chmod -R +x fixups
10
10
RUN ./fixups/pkg
11
+ RUN ./fixups/chid $ID
11
12
# RUN ./fixups/..
12
- RUN ./id $ID
13
- RUN ./sudo $ID
14
- RUN rm -rf fixups id sudo
13
+ RUN rm -rf fixups
15
14
16
15
USER ${ID}
17
16
WORKDIR /home/${ID}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # add new id after install packages.
4
+ # written by how2flow(Steve Jeong).
5
+
6
+ OLD=:user
7
+ NEW=$1
8
+
9
+ if [ " ${NEW} " != " user" ]; then
10
+ usermod -l " ${OLD} " " ${NEW} "
11
+ usermod -d /home/" ${NEW} " -m " ${NEW} " && \
12
+ mv /home/" ${OLD} " /* /home/" ${NEW} "
13
+ groupmod -n " ${NEW} " " ${OLD} "
14
+ fi
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- apt-get update && apt-get install -y --no-install-recommends git sudo ssh tmux vim wget
4
-
5
- if [ -x " $( command -v brltty) " ]; then
6
- apt-get remove brltty
7
- fi
3
+ apt-get update && apt-get install -y --no-install-recommends \
4
+ /* package list * /
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ apt-get update && apt-get install -y --no-install-recommends git sudo ssh tmux vim wget
4
+
5
+ if [ -x " $( command -v brltty) " ]; then
6
+ apt-get remove brltty
7
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -x " $( command -v sudo) " ]; then
4
+ usermod -aG sudo " ${1:- user} "
5
+ touch /home/" ${1:- user} " /.sudo_as_admin_successful
6
+ fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Dockerfile
2
2
FROM how2flow/workspace:base
3
3
4
- # vars
5
4
ENV ID="jekyll"
6
5
7
- # root fixups
8
6
USER root
9
7
WORKDIR /root
10
8
COPY fixups fixups
11
9
RUN chmod -R +x fixups
12
10
RUN ./fixups/pkg
13
- RUN ./id $ID
14
- RUN ./sudo $ID
15
- RUN rm -rf fixups id sudo
11
+ RUN ./fixups/chid $ID
12
+ # RUN ./fixups/..
13
+ RUN rm -rf fixups
16
14
17
- # user fixups
18
15
USER ${ID}
19
16
WORKDIR /home/${ID}
17
+ # user fixups ...
You can’t perform that action at this time.
0 commit comments