2020-01-25 16:45:04 +01:00
|
|
|
FROM gitpod/workspace-full-vnc:latest
|
2020-01-12 01:57:48 +01:00
|
|
|
|
2020-02-03 04:59:00 +01:00
|
|
|
# To avoid bricked workspaces (https://github.com/gitpod-io/gitpod/issues/1171)
|
2020-02-03 03:45:54 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-02-03 04:59:00 +01:00
|
|
|
# APT management (https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get)
|
2020-02-07 11:22:06 +01:00
|
|
|
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \
|
|
|
|
&& add-apt-repository \
|
|
|
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
|
|
|
$(lsb_release -cs) \
|
|
|
|
stable" \
|
2020-02-07 11:19:50 +01:00
|
|
|
&& apt-get update \
|
2020-02-03 03:45:54 +01:00
|
|
|
&& apt-get upgrade -y \
|
2020-02-07 11:19:50 +01:00
|
|
|
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \
|
2020-02-03 03:45:54 +01:00
|
|
|
&& apt dist-upgrade -y \
|
2020-02-19 15:27:25 +01:00
|
|
|
&& apt-get install -y clang valgrind shellcheck docker-ce docker-ce-cli containerd.io firefox tree xclip umbrello gnuplot fish zsh dia \
|
2020-02-03 03:45:54 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& apt autoremove -y
|
2020-01-31 06:55:23 +01:00
|
|
|
|
2020-02-17 14:20:40 +01:00
|
|
|
## User config
|
2020-02-17 14:29:01 +01:00
|
|
|
# USER gitpod
|
|
|
|
# RUN curl -L https://get.oh-my.fish | fish \
|
|
|
|
# && sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
|
|
|
|
# && git clone --depth=1 https://github.com/Bash-it/bash-it.git /usr/src/bash-it \
|
|
|
|
# && /usr/src/bash-it/install.sh
|
2020-02-17 13:58:46 +01:00
|
|
|
|
2020-02-07 15:51:14 +01:00
|
|
|
### VLANG ###
|
2020-02-07 16:29:16 +01:00
|
|
|
USER root
|
2020-02-07 17:32:13 +01:00
|
|
|
ENV VLANG_VERSION="0.1.24"
|
2020-02-07 17:39:02 +01:00
|
|
|
COPY gitpod/vlang_init4.sh /usr/bin/vlang_init
|
2020-02-07 16:29:16 +01:00
|
|
|
RUN chmod +x /usr/bin/vlang_init
|
|
|
|
RUN vlang_init || exit 1
|
2020-02-07 15:51:14 +01:00
|
|
|
|
2020-01-25 17:30:26 +01:00
|
|
|
# Add custom functions
|
|
|
|
RUN if ! grep -qF 'ix()' /etc/bash.bashrc; then printf '%s\n' \
|
|
|
|
'# Custom' \
|
2020-01-25 17:33:29 +01:00
|
|
|
"ix() { curl -F 'f:1=<-' ix.io 2>/dev/null ;}" \
|
2020-01-25 17:36:24 +01:00
|
|
|
"xcopy() { xclip -se C ;}" \
|
2020-02-17 12:59:37 +01:00
|
|
|
>> /etc/bash.bashrc; fi
|