-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
61 lines (58 loc) · 2.12 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM rajivmr/workspace-rust-base:latest
CMD ["/sbin/my_init"]
COPY [ \
"./docker-extras/home-ll-user-.gitconfig", \
"./docker-extras/home-ll-user-.spacemacs", \
"./docker-extras/home-ll-user-.zshrc", \
"./docker-extras/home-ll-user-rust_nightly.sh", \
"./docker-extras/home-ll-user-rust_stable.sh", \
"/tmp/docker-build/" \
]
RUN \
# yum
yum update && \
yum install aspell && \
yum install aspell-en && \
yum install diffutils && \
yum install file && \
yum install git && \
yum install less && \
yum install patch && \
yum install procps && \
yum install tree && \
yum install vim && \
yum install which && \
yum install zsh && \
\
# setup oh-my-zsh
su -l ll-user -c "git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh" && \
su -l ll-user -c "cp /tmp/docker-build/home-ll-user-.zshrc ~/.zshrc" && \
\
su -l ll-user -c "cp /tmp/docker-build/home-ll-user-rust_nightly.sh ~/rust_nightly.sh" && \
su -l ll-user -c "cp /tmp/docker-build/home-ll-user-rust_stable.sh ~/rust_stable.sh" && \
\
# setup epll repository
curl -X GET -o /tmp/docker-build/RPM-GPG-KEY-lambda-epll https://lambda-linux.io/RPM-GPG-KEY-lambda-epll && \
rpm --import /tmp/docker-build/RPM-GPG-KEY-lambda-epll && \
curl -X GET -o /tmp/docker-build/epll-release-2017.03-1.2.ll1.noarch.rpm https://lambda-linux.io/epll-release-2017.03-1.2.ll1.noarch.rpm && \
yum install /tmp/docker-build/epll-release-2017.03-1.2.ll1.noarch.rpm && \
\
# install colordiff
yum --enablerepo=epll install colordiff && \
\
# install stgit
su -l ll-user -c "cp /tmp/docker-build/home-ll-user-.gitconfig ~/.gitconfig" && \
yum --enablerepo=epll install stgit && \
\
# install emacs, spacemacs
su -l ll-user -c "cp /tmp/docker-build/home-ll-user-.spacemacs ~/.spacemacs" && \
su -l ll-user -c "git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d" && \
yum --enablerepo=epll install emacs24 && \
su -l ll-user -c "SHELL=/bin/zsh emacs -nw -batch -u '${UNAME}' -q -kill" && \
\
# cleanup
rm -rf /tmp/docker-build && \
yum clean all && \
rm -rf /var/cache/yum/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*