forked from mariobarbareschi/iideaa-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 1.2 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (29 loc) · 1.2 KB
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
FROM ubuntu:18.04
# Update Software
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && apt-get -qq install -y apt-utils > /dev/null
RUN apt-get -qq dist-upgrade -y > /dev/null && apt-get -qq autoremove -y > /dev/null
# Copy install script
ADD ./configure_environment /opt
ADD ./scripts /opt/scripts
#ADD ./projects /opt/projects
SHELL ["/bin/bash", "-c"]
# Run iideaa installation
RUN chmod +x /opt/configure_environment
RUN /opt/configure_environment
# Cleanup
RUN echo "Cleaning up..."
RUN rm -Rf ~/llvm
RUN rm -f /opt/configure_environment
RUN rm -Rf /opt/scripts
RUN rm -Rf /opt/ParadisEO-2.0/build
# Install zsh and oh-my-zsh
RUN echo "Installing a fancy shell..."
RUN ["apt-get", "-qq", "install", "-y", "zsh", "nano"]
RUN wget --quiet https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
RUN git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
RUN ~/.fzf/install --all
RUN sed -i "s/git/git sudo docker zsh-autosuggestions fzf/g" ~/.zshrc
RUN sed -i "s/robbyrussell/af-magic/g" ~/.zshrc
RUN echo "Configuration completed. Packaging Docker Image..."