Zernit/gitpod/gitpod.Dockerfile

33 lines
1.2 KiB
Docker
Raw Normal View History

2020-01-25 16:45:04 +01:00
FROM gitpod/workspace-full-vnc:latest
2020-01-12 01:57:48 +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
# 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-10 17:35:31 +01:00
&& apt-get install -y clang valgrind shellcheck docker-ce docker-ce-cli containerd.io firefox tree xclip umbrello gnuplot \
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-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' \
"ix() { curl -F 'f:1=<-' ix.io 2>/dev/null ;}" \
2020-01-25 17:36:24 +01:00
"xcopy() { xclip -se C ;}" \
2020-01-25 17:30:26 +01:00
>> /etc/bash.bashrc; fi