ci: do not build debian-based images

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6729
GitOrigin-RevId: 882fd6e000fbca928f04e2b7bf169c3c205a0f0d
This commit is contained in:
nandhithakamal 2022-11-04 15:33:44 +05:30 committed by hasura-bot
parent 1f4e802d88
commit fee4de93fc
3 changed files with 4 additions and 48 deletions

3
.gitignore vendored
View File

@ -56,3 +56,6 @@ ChinookData.xml
# log output from tests-hspec runs
tests-hspec.log
# Build artifacts
pipeline-gen

View File

@ -21,5 +21,5 @@ This acts as base image for building `hasura/graphql-engine` image.
It is generally published with format `hasura/graphql-engine-base:<SHA256>.<OS>.<ARCH>` where
- `<SHA256>` is the `sha256sum` of the dockerfile used to build the image
- `OS` is the operating system. It could be any of these values: `debian`, `ubuntu`
- `OS` is the operating system. It could be any of these values: `ubuntu`
- `ARCH` is the architecture. It could be any of these values: `amd64`, `arm64`

View File

@ -1,47 +0,0 @@
# DATE VERSION: 2022-10-17
# Modify the above date version (YYYY-MM-DD) if you want to rebuild the image
FROM debian:bullseye-20220912-slim
### NOTE! Shared libraries here need to be kept in sync with `server-builder.dockerfile`!
# TARGETPLATFORM is automatically set up by docker buildx based on the platform we are targetting for
ARG TARGETPLATFORM
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
RUN set -ex; \
groupadd -g 1001 hasura; \
useradd -m -u 1001 -g hasura hasura
RUN set -ex; \
apt-get update; \
apt-get install -y apt-transport-https curl gnupg2; \
apt-get update; \
apt-get install -y ca-certificates libkrb5-3 libpq5 libssl1.1 libnuma1 unixodbc-dev libmariadb-dev-compat mariadb-client
RUN set -ex; \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -; \
curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list; \
apt-get update; \
ACCEPT_EULA=Y apt-get install -y msodbcsql18; \
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
# Support the old version of the driver too, where possible.
# v17 is only supported on amd64.
ACCEPT_EULA=Y apt-get -y install msodbcsql17; \
fi
# Install pg_dump
RUN set -ex; \
curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -; \
echo 'deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list; \
apt-get -y update; \
apt-get install -y postgresql-client-15; \
# delete all pg tools except pg_dump to keep the image minimal
find /usr/bin -name 'pg*' -not -path '/usr/bin/pg_dump' -delete
# Cleanup unwanted files and packages
RUN set -ex; \
apt-get -y remove curl gnupg2; \
apt-get -y auto-remove; \
apt-get -y clean; \
rm -rf /var/lib/apt/lists/* /usr/share/doc/ /usr/share/man/ /usr/share/locale/