forked from asishallab/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdebian_science_db.txt
75 lines (60 loc) · 2.62 KB
/
debian_science_db.txt
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM debian:stretch
MAINTAINER Dr. Asis Hallab <[email protected]>
# Add Debian sid repo and update
RUN echo 'deb http://deb.debian.org/debian sid main' >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get clean
# install packages
RUN apt-get install -y openjdk-8-jre openjdk-8-jdk \
ssh zsh tmux python-pip virtualenvwrapper curl \
locales locate less wget git exuberant-ctags time \
postgresql-client unzip
RUN apt-get install -y neovim/unstable
# install NodeJS version 8
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
# Using SSL for NPM package management sometimes causes problems from within
# the container, so use plain http instead of https.
RUN su - -c 'npm config set registry http://registry.npmjs.org/'
# NPM needs IP forwarding
RUN su - -c 'sed -i "/^#net.ipv4.ip_forward=1/ s/^#//" /etc/sysctl.conf'
RUN su - -c 'sed -i "/^#net.ipv6.conf.all.forwarding=1/ s/^#//" /etc/sysctl.conf'
# For compilation of e.g. blat the MACHTYPE is needed
ENV MACHTYPE x86_64
# install and configure locales
RUN apt-get install -y locales
RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
echo 'LANG="en_US.UTF-8"'>/etc/default/locale
RUN dpkg-reconfigure --frontend=noninteractive locales
RUN update-locale LANG=en_US.UTF-8
# Update system
RUN apt-get update
RUN apt-get dist-upgrade -y
# regular user env:
# Oh-My-Zsh (ZSH), ctags, tmux-configuration
RUN su - -c 'sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"'
RUN su - -c 'git clone https://github.com/ScienceDb/dotfiles.git /root/dotfiles'
RUN su - -c 'ln -fs /root/dotfiles/.zshrc /root'
RUN su - -c 'ln -fs /root/dotfiles/.tmux.conf /root'
RUN su - -c 'ln -fs /root/dotfiles/.ctags /root'
# we love neovim
RUN su - -c 'source /usr/share/virtualenvwrapper/virtualenvwrapper.sh && mkvirtualenv neovim && pip install neovim'
RUN su - -c 'mkdir -p /root/.nvim/tmp/backup'
RUN su - -c 'mkdir -p /root/.config'
RUN su - -c 'wget -O /tmp/nvim_conf.zip https://github.com/asishallab/neovim_config/archive/master.zip'
RUN su - -c 'unzip /tmp/nvim_conf.zip -d /tmp'
RUN su - -c 'cp -r /tmp/neovim_config-master /root/.config/nvim'
#RUN su - -c 'nvim -c ":PlugInstall | :qa" > /dev/null'
RUN su - -c 'npm install -g js-beautify'
# Setup projects:
RUN wget https://raw.githubusercontent.com/ScienceDb/dotfiles/master/setup_projects
RUN chmod 777 setup_projects
VOLUME /root/projects
# allow root login
RUN echo 'root:poiuyt098' | chpasswd
RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
# run ssh server
RUN mkdir /var/run/sshd
EXPOSE 22
CMD /usr/sbin/sshd -D
RUN echo "DONE"