# FROM ubuntu:20.04 FROM ubuntu:22.04 RUN apt-get clean RUN apt-get update RUN apt-get install -y software-properties-common RUN add-apt-repository ppa:ubuntu-toolchain-r/test #För gcc-13 RUN apt-get update && apt-get upgrade -y && apt-get install -y ENV DEBIAN_FRONTEND=noninteractive #Installera en modern cmake; ubuntu 20.04 cmake stödjer inte c++23. :( RUN apt-get install -y wget RUN test -f /tmp/cmake-3.29.0-rc3-linux-x86_64.tar.gz || wget https://github.com/Kitware/CMake/releases/download/v3.29.0-rc3/cmake-3.29.0-rc3-linux-x86_64.tar.gz -P /tmp RUN test -f /usr/bin/cmake || tar -C /usr/ -xzf /tmp/cmake-3.29.0-rc3-linux-x86_64.tar.gz --strip-components=1 RUN apt-get install -y libcurl4-openssl-dev tzdata locales less nano emacs vim build-essential libmysqlclient-dev xinetd stunnel telnet iputils-ping curl bsd-mailx gdb #RUN apt-get remove -y gcc-9 RUN apt-get install -y gcc-13 g++-13 cpp-13 #Använd GCC-13. RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13 RUN update-alternatives --set gcc /usr/bin/gcc-13 # ODB RUN apt-get install -y default-libmysqlclient-dev mysql-client RUN wget https://codesynthesis.com/download/odb/2.5.0/ubuntu/ubuntu22.04/x86_64/odb_2.5.0-0~ubuntu22.04_amd64.deb -P /tmp RUN apt-get install -y /tmp/odb_2.5.0-0~ubuntu22.04_amd64.deb RUN wget https://codesynthesis.com/download/odb/2.5.0/ubuntu/ubuntu22.04/x86_64/libodb_2.5.0-0~ubuntu22.04_amd64.deb -P /tmp RUN wget https://codesynthesis.com/download/odb/2.5.0/ubuntu/ubuntu22.04/x86_64/libodb-dev_2.5.0-0~ubuntu22.04_amd64.deb -P /tmp RUN apt-get install -y /tmp/libodb_2.5.0-0~ubuntu22.04_amd64.deb /tmp/libodb-dev_2.5.0-0~ubuntu22.04_amd64.deb RUN wget https://codesynthesis.com/download/odb/2.5.0/ubuntu/ubuntu22.04/x86_64/libodb-mysql_2.5.0-0~ubuntu22.04_amd64.deb -P /tmp RUN wget https://codesynthesis.com/download/odb/2.5.0/ubuntu/ubuntu22.04/x86_64/libodb-mysql-dev_2.5.0-0~ubuntu22.04_amd64.deb -P /tmp RUN apt-get install -y /tmp/libodb-mysql_2.5.0-0~ubuntu22.04_amd64.deb /tmp/libodb-mysql-dev_2.5.0-0~ubuntu22.04_amd64.deb ENV TZ=Europe/Stockholm RUN locale-gen sv_SE.UTF-8 ENV LANG=sv_SE.UTF-8 ENV LANGUAGE=sv_SE:sv ENV LC_ALL=sv_SE.UTF-8 #WORKDIR /opt #COPY ./.env.local . #COPY ./opt/SQIO SQIO #WORKDIR /opt/SQIO #RUN touch printtable.c #RUN make install WORKDIR /opt