Test for go

This commit is contained in:
Ben Jackson 2019-07-31 22:46:09 +01:00
commit 29989ffbfb
6 changed files with 87 additions and 3 deletions

View file

@ -1,18 +1,22 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL C.UTF-8
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install python3-dev \
python3-pip \
ca-cacert \
locales \
language-pack-en \
libncurses5-dev libncursesw5-dev \
git \
tcl-dev \
tcllib \
gdb \
lldb && \
lldb \
curl && \
apt-get -y autoremove
RUN ln -fs /usr/share/zoneinfo/Europe/London /etc/localtime && \
@ -36,3 +40,17 @@ RUN mkdir -p $HOME/vim && \
git checkout ${VIM_VERSION} && \
make -j 4 install
# linuxbrew (homebrew)
RUN mkdir -p /home/linuxbrew/.linuxbrew &&\
chmod -R go+rwx /home/linuxbrew && \
mkdir -p /home/linuxbrew/.linuxbrew/bin && \
git clone https://github.com/Homebrew/brew /home/linuxbrew/.linuxbrew/Homebrew && \
ln -s /home/linuxbrew/.linuxbrew/Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin && \
echo "eval \$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
> /etc/bash.bashrc
RUN /home/linuxbrew/.linuxbrew/bin/brew install golang
# clean up
RUN /home/linuxbrew/.linuxbrew/bin/brew cleanup && \
rm -rf ~/.cache