mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
8aa481c639
[skip ci]
37 lines
1.9 KiB
Docker
37 lines
1.9 KiB
Docker
FROM ubuntu:16.04
|
|
|
|
ARG docker_ver="17.09.0-ce"
|
|
ARG upx_version="3.94"
|
|
ARG gcloud_version="207.0.0"
|
|
ARG ghr_version="0.10.0"
|
|
ARG hub_version="2.5.0"
|
|
|
|
RUN apt-get -y update \
|
|
&& apt-get -y upgrade \
|
|
&& 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/ghr-${ghr_version}.tar.gz https://github.com/tcnksm/ghr/releases/download/v${ghr_version}/ghr_v${ghr_version}_linux_amd64.tar.gz \
|
|
&& tar -xz -C /tmp -f /tmp/ghr-${ghr_version}.tar.gz \
|
|
&& mv /tmp/ghr_v${ghr_version}_linux_amd64/* /usr/bin \
|
|
&& 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"
|