Last active
June 18, 2016 13:47
-
-
Save parkouss/49bccdee090aab91d1cb30f1d5280384 to your computer and use it in GitHub Desktop.
my dockerfile.in @ steery.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM @DEFAULT_ENVIRONMENT_NAME@:@DEFAULT_ENVIRONMENT_VERSION@ | |
USER root | |
# install elixir | |
RUN \ | |
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \ | |
&& dpkg -i erlang-solutions_1.0_all.deb \ | |
&& apt-get update -y \ | |
&& apt-get install -y esl-erlang \ | |
&& apt-get install -y elixir \ | |
&& rm -rf erlang-solutions_1.0_all.deb | |
# install latest git (for magit) | |
RUN \ | |
add-apt-repository ppa:git-core/ppa -y \ | |
&& apt-get update -y \ | |
&& apt-get install -y git | |
# install libclang, for irony | |
RUN \ | |
apt-get update -y && apt-get install -y clang libclang-dev | |
# install aspell, for emacs interactive checking | |
RUN \ | |
apt-get update -y && apt-get install -y aspell-fr aspell-en | |
# install latest emacs | |
RUN \ | |
add-apt-repository ppa:ubuntu-elisp/ppa -y \ | |
&& apt-get update -y \ | |
&& apt-get install -y emacs-snapshot | |
USER rosuser | |
# configure emacs | |
RUN \ | |
git clone https://[email protected]/parkouss/emacs.d /home/rosuser/.emacs.d \ | |
&& echo "(setq modules-disabled '((browsers . t) (pdf . t) (media-player . t) (mails . t))) (setq irony-additional-clang-options '(\"-std=c++11\"))" > /home/rosuser/.emacs.d/custom.el | |
# run emacs once, to download and compile the modules | |
RUN emacs -nw --eval '(message "done")' --kill --daemon \ | |
|| echo done | |
# build the irony module | |
RUN \ | |
mkdir /home/rosuser/irony \ | |
&& cd /home/rosuser/irony \ | |
&& cmake -DCMAKE_INSTALL_PREFIX=/home/rosuser/.emacs.d/irony/ /home/rosuser/.emacs.d/melpa/irony-*/server && cmake --build . --use-stderr --config Release --target install \ | |
&& rm -rf /home/rosuser/irony |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment