2015-06-24 07:08:13 +00:00
|
|
|
FROM fedora:22
|
|
|
|
|
|
|
|
RUN dnf -y groupinstall "Development Tools" &&\
|
2015-08-19 20:13:57 +00:00
|
|
|
dnf -y install \
|
|
|
|
tar \
|
|
|
|
zsh \
|
|
|
|
git \
|
|
|
|
python \
|
|
|
|
wget \
|
|
|
|
openssl-devel \
|
|
|
|
vim-enhanced \
|
|
|
|
tmux \
|
|
|
|
dtach \
|
|
|
|
cmake \
|
|
|
|
python-devel \
|
|
|
|
mercurial \
|
|
|
|
lua \
|
|
|
|
luarocks \
|
|
|
|
gcc-c++ \
|
|
|
|
xz \
|
|
|
|
clang-devel \
|
|
|
|
php \
|
|
|
|
file \
|
|
|
|
net-tools &&\
|
2015-06-24 07:08:13 +00:00
|
|
|
useradd --create-home xena && \
|
|
|
|
echo 'root:screencast' | chpasswd && \
|
|
|
|
echo 'xena:user' | chpasswd && \
|
|
|
|
chsh xena -s /bin/zsh
|
|
|
|
|
|
|
|
# Envvars!
|
|
|
|
ENV HOME /home/xena
|
|
|
|
ENV DOCKER YES
|
|
|
|
ENV LANGUAGE en_US
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LC_CTYPE en_US.UTF-8
|
|
|
|
|
2015-08-19 20:41:43 +00:00
|
|
|
# Golang compilers
|
|
|
|
RUN cd /usr/local && wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz && \
|
|
|
|
tar xf go1.5.linux-amd64.tar.gz && rm go1.5.linux-amd64.tar.gz
|
|
|
|
|
2015-08-19 20:13:57 +00:00
|
|
|
# Set up vim
|
|
|
|
ADD setup.sh /opt/xena/setup.sh
|
|
|
|
ADD ./vimplugins.lua /opt/xena/vimplugins.lua
|
|
|
|
RUN chmod 777 /opt/xena/setup.sh &&\
|
|
|
|
su xena "/opt/xena/setup.sh"
|
|
|
|
|
2015-06-24 07:08:13 +00:00
|
|
|
# To use Docker please pass the docker socket as a bind mount
|
2015-08-19 20:13:57 +00:00
|
|
|
# Some of my servers still use docker 1.6.0
|
|
|
|
RUN wget https://get.docker.com/builds/Linux/x86_64/docker-1.6.0 -O /usr/local/bin/docker && \
|
2015-06-24 07:08:13 +00:00
|
|
|
chmod 555 /usr/local/bin/docker
|
|
|
|
|
2015-08-19 20:13:57 +00:00
|
|
|
# Not needed?
|
2015-06-24 07:08:13 +00:00
|
|
|
RUN dnf -y install dnf-plugins-core &&\
|
|
|
|
yes | dnf copr enable xena/moonscript &&\
|
|
|
|
dnf -y install lua-moonscript &&\
|
|
|
|
yes | dnf copr enable avsej/nim &&\
|
|
|
|
dnf -y install nim
|
|
|
|
|
2015-07-16 20:12:53 +00:00
|
|
|
# Add Tini
|
|
|
|
ENV TINI_VERSION v0.5.0
|
2015-08-19 20:00:40 +00:00
|
|
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
|
2015-07-16 20:12:53 +00:00
|
|
|
RUN chmod +x /tini
|
|
|
|
ENTRYPOINT ["/tini", "--"]
|
2015-08-19 20:13:57 +00:00
|
|
|
ENV INITSYSTEM tini
|