blob: 749c8b6561706ba73f8b090da574393dbddf526f [file] [log] [blame]
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y autoconf automake bison build-essential ca-certificates cmake curl dpkg-dev expect flex gdb git git-core gnupg kmod libboost-system-dev libboost-thread-dev libcurl4-openssl-dev libiptcdata0-dev libjsoncpp-dev liblog4cpp5-dev libprotobuf-c0-dev libprotobuf-dev libssl-dev libtool libxml2-dev ocaml pkg-config protobuf-compiler python sudo texinfo uuid-dev vim wget zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
# Conditionally trust ppa:ubuntu-toolchain-r
# Use this on your own risk
RUN apt-get update && \
apt-get install build-essential software-properties-common -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get install gcc-snapshot -y && \
apt-get update && \
apt-get install gcc-8 g++-8 -y && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
update-alternatives --config gcc && \
rm -rf /var/lib/apt/lists/*
#ADD 01_gcc_8.sh /root
#RUN bash /root/01_gcc_8.sh
ENV BINUTILS_PREFIX=/usr
ADD 02_binutils.sh /root
RUN bash /root/02_binutils.sh
ADD 03_sdk.sh /root
RUN bash /root/03_sdk.sh
# Sixth, PSW
ENV CODENAME xenial
ENV VERSION 2.9.100.2-xenial1
ADD 04_psw.sh /root
RUN bash /root/04_psw.sh
# Seventh, Rust
ENV rust_toolchain nightly-2020-03-12
ADD 05_rust.sh /root
RUN bash /root/05_rust.sh
ENV rust_toolchain=
ENV CODENAME=
ENV VERSION=
WORKDIR /root