mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
ci: automatically computes SHA for dockerfiles
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3193 GitOrigin-RevId: 34aa92c7e03b1b9bf10f7b3177d9d9a1fd44a8ac
This commit is contained in:
parent
e59113f364
commit
777a78ceff
@ -1,31 +0,0 @@
|
||||
FROM golang:1.16
|
||||
|
||||
ARG upx_version="3.96"
|
||||
|
||||
# install go dependencies
|
||||
RUN go get github.com/mitchellh/gox \
|
||||
&& go get github.com/tcnksm/ghr \
|
||||
&& go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.41.1
|
||||
|
||||
# install UPX, netcat and gcloud cli
|
||||
RUN apt-get update && apt-get install -y \
|
||||
xz-utils netcat libpq5 postgresql-client jq zip build-essential pkg-config libssl-dev libcurl4-openssl-dev \
|
||||
&& wget https://github.com/mtrojnar/osslsigncode/releases/download/2.2/osslsigncode-2.2.0.tar.gz \
|
||||
&& tar -xzf osslsigncode-2.2.0.tar.gz \
|
||||
&& cd osslsigncode-2.2.0 \
|
||||
&& ./configure && make install && cd .. \
|
||||
&& rm -rf osslsigncode* \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb \
|
||||
&& apt-get install ./multiarch-support_2.27-3ubuntu1.4_amd64.deb \
|
||||
&& curl -s https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
|
||||
&& curl -s https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
||||
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
|
||||
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
|
||||
&& apt-get update \
|
||||
&& ACCEPT_EULA=Y apt-get install -y ca-certificates libkrb5-3 libpq5 libnuma1 unixodbc-dev msodbcsql17 apt-transport-https gnupg google-cloud-sdk hub \
|
||||
&& curl -Lo /tmp/upx-${upx_version}.tar.xz https://github.com/upx/upx/releases/download/v${upx_version}/upx-${upx_version}-amd64_linux.tar.xz \
|
||||
&& xz -d -c /tmp/upx-${upx_version}.tar.xz \
|
||||
| tar -xOf - upx-${upx_version}-amd64_linux/upx > /bin/upx \
|
||||
&& chmod a+x /bin/upx \
|
||||
&& apt-get -y auto-remove \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
@ -1,31 +0,0 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
ARG docker_ver="17.09.0-ce"
|
||||
ARG upx_version="3.94"
|
||||
ARG gcloud_version="207.0.0"
|
||||
ARG hub_version="2.14.2"
|
||||
|
||||
RUN apt-get -y update \
|
||||
&& apt-get install -y curl make xz-utils git python \
|
||||
&& curl -Lo /tmp/docker-${docker_ver}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${docker_ver}.tgz \
|
||||
&& tar -xz -C /tmp -f /tmp/docker-${docker_ver}.tgz \
|
||||
&& mv /tmp/docker/* /usr/bin \
|
||||
&& curl -Lo /tmp/upx-${upx_version}.tar.xz https://github.com/upx/upx/releases/download/v${upx_version}/upx-${upx_version}-amd64_linux.tar.xz \
|
||||
&& xz -d -c /tmp/upx-${upx_version}.tar.xz \
|
||||
| tar -xOf - upx-${upx_version}-amd64_linux/upx > /bin/upx \
|
||||
&& chmod a+x /bin/upx \
|
||||
&& curl -Lo /tmp/gcloud-${gcloud_version}.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${gcloud_version}-linux-x86_64.tar.gz \
|
||||
&& tar -xzf /tmp/gcloud-${gcloud_version}.tar.gz -C /usr/local \
|
||||
&& /usr/local/google-cloud-sdk/install.sh \
|
||||
&& curl -Lo /tmp/hub-linux-amd64-${hub_version}.tgz https://github.com/github/hub/releases/download/v${hub_version}/hub-linux-amd64-${hub_version}.tgz \
|
||||
&& tar -xz -C /tmp -f /tmp/hub-linux-amd64-${hub_version}.tgz \
|
||||
&& mv /tmp/hub-linux-amd64-${hub_version}/bin/hub /usr/bin/ \
|
||||
&& apt-get -y purge curl \
|
||||
&& apt-get -y auto-remove \
|
||||
&& apt-get -y clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /usr/share/doc/ \
|
||||
&& rm -rf /usr/share/man/ \
|
||||
&& rm -rf /usr/share/locale/
|
||||
|
||||
ENV PATH "/usr/local/google-cloud-sdk/bin:$PATH"
|
@ -1,21 +0,0 @@
|
||||
FROM node:12-bullseye
|
||||
|
||||
ARG upx_version="3.94"
|
||||
|
||||
# install dependencies
|
||||
RUN apt-get update && apt-get install -y zip xvfb build-essential pkg-config libssl-dev libcurl4-openssl-dev \
|
||||
&& wget https://github.com/mtrojnar/osslsigncode/releases/download/2.2/osslsigncode-2.2.0.tar.gz \
|
||||
&& tar -xzf osslsigncode-2.2.0.tar.gz \
|
||||
&& cd osslsigncode-2.2.0 \
|
||||
&& ./configure && make && make install && cd .. \
|
||||
&& rm -rf osslsigncode* \
|
||||
&& curl -Lo /tmp/upx-${upx_version}.tar.xz https://github.com/upx/upx/releases/download/v${upx_version}/upx-${upx_version}-amd64_linux.tar.xz \
|
||||
&& xz -d -c /tmp/upx-${upx_version}.tar.xz \
|
||||
| tar -xOf - upx-${upx_version}-amd64_linux/upx > /bin/upx \
|
||||
&& chmod a+x /bin/upx \
|
||||
&& apt-get -y auto-remove \
|
||||
&& apt-get -y clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /usr/share/doc/ \
|
||||
&& rm -rf /usr/share/man/ \
|
||||
&& rm -rf /usr/share/locale/
|
Loading…
Reference in New Issue
Block a user