github.com/Ali-iotechsys/sqlboiler/v4@v4.0.0-20221208124957-6aec9a5f1f71/testdata/Dockerfile (about) 1 # This Dockerfile builds the image used for CI/testing. 2 FROM ubuntu:16.04 3 4 # Set PATH 5 ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/mssql-tools/bin 6 7 # Install bootstrap-y tools 8 RUN apt-get update \ 9 && apt-get install -y apt-transport-https software-properties-common python3-software-properties \ 10 && apt-add-repository ppa:git-core/ppa \ 11 && apt-get update \ 12 && apt-get install -y curl git make locales 13 14 # Set up locales for sqlcmd (otherwise it breaks) 15 RUN locale-gen en_US.UTF-8 \ 16 && echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale \ 17 && echo "LANG=en_US.UTF-8" >> /etc/default/locale 18 19 # Install database clients 20 # MySQL 8.0 is still in development, so we're using 5.7 which is already 21 # available in Ubuntu 16.04 22 RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ 23 && echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/psql.list \ 24 && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ 25 && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/msprod.list \ 26 && apt-get update \ 27 && env ACCEPT_EULA=Y apt-get install -y git postgresql-client-9.6 mysql-client-5.7 mssql-tools unixodbc-dev 28 29 # Install Go + Go based tooling 30 ENV GOLANG_VERSION 1.10 31 RUN curl -o go.tar.gz "https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz" \ 32 && rm -rf /usr/local/go \ 33 && tar -C /usr/local -xzf go.tar.gz \ 34 && go get -u -v github.com/jstemmer/go-junit-report \ 35 && mv /root/go/bin/go-junit-report /usr/bin/go-junit-report