-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM centos
MAINTAINER Shinya Mori <g.vamos603@gmail.com>
# パッケージインストール
RUN yum update -y
RUN yum install -y hostname
RUN yum install -y vim
# rbashの設定
RUN ln -s /bin/bash /bin/rbash
RUN echo "/bin/rbash" >> /etc/shells
# boot shell
ADD ./data/bootvim.sh /root/bootvim.sh
# youユーザ設定
RUN useradd you
RUN mkdir /home/you/bin
RUN chsh -s /bin/rbash you
ADD ./data/bash_profile /home/you/.bash_profile
ADD ./data/bashrc /home/you/.bashrc
ADD ./data/start_vim /home/you/bin/start_vim
ADD ./data/sample.* /home/you/
RUN chown you:you /home/you/sample.*
RUN chmod 644 /home/you/sample.*
RUN chown you:you /home/you/bin/start_vim
RUN chmod 755 /home/you/bin/start_vim
RUN chown root:root /home/you/.bash_profile
RUN chmod 755 /home/you/.bash_profile
RUN ln -s /usr/bin/vim /home/you/bin
# set vim colorscheme
RUN mkdir -p /home/you/.vim/colors
ADD ./data/colors/* /home/you/.vim/colors/
# set vim plugin
RUN mkdir -p /home/you/.vim/plugin
RUN mkdir -p /home/you/.vim/plugin_tmp
ADD ./data/plugin/* /home/you/.vim/plugin_tmp/