From de88e76735dcf3c7232d87f4475308c4ff5febb6 Mon Sep 17 00:00:00 2001 From: Ilya Averyanov Date: Wed, 22 Nov 2023 20:17:09 +0300 Subject: [PATCH] feat: add builder image with foundationdb client --- .github/workflows/base.yaml | 1 + .github/workflows/test.yaml | 1 + ubuntu22.04fdb/Dockerfile | 62 +++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 ubuntu22.04fdb/Dockerfile diff --git a/.github/workflows/base.yaml b/.github/workflows/base.yaml index cca8ff4..c6d1935 100644 --- a/.github/workflows/base.yaml +++ b/.github/workflows/base.yaml @@ -18,6 +18,7 @@ jobs: base_image_vsn: - "5.0" platform: + - [ubuntu22.04fdb, linux/amd64, [self-hosted, linux, x64, ephemeral]] - [ubuntu22.04, linux/amd64, [self-hosted, linux, x64, ephemeral]] - [ubuntu22.04, linux/arm64, [self-hosted, linux, arm64, ephemeral]] - [ubuntu20.04, linux/amd64, [self-hosted, linux, x64, ephemeral]] diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 98aab2c..e90fd68 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -55,6 +55,7 @@ jobs: otp: ${{ fromJSON(needs.prepare.outputs.otp) }} elixir: ${{ fromJSON(needs.prepare.outputs.elixir) }} platform: + - [ubuntu22.04fdb, linux/amd64, [self-hosted, linux, x64, ephemeral]] - [ubuntu22.04, linux/amd64, [self-hosted, linux, x64, ephemeral]] - [ubuntu22.04, linux/arm64, [self-hosted, linux, arm64, ephemeral]] - [ubuntu20.04, linux/amd64, [self-hosted, linux, x64, ephemeral]] diff --git a/ubuntu22.04fdb/Dockerfile b/ubuntu22.04fdb/Dockerfile new file mode 100644 index 0000000..421217d --- /dev/null +++ b/ubuntu22.04fdb/Dockerfile @@ -0,0 +1,62 @@ +ARG BUILD_FROM=public.ecr.aws/ubuntu/ubuntu:22.04 +FROM ${BUILD_FROM} + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y \ + apt-transport-https \ + autoconf \ + automake \ + autotools-dev \ + bison \ + build-essential \ + ca-certificates \ + cmake \ + curl \ + debhelper \ + expect \ + flex \ + git \ + inotify-tools \ + jq \ + krb5-admin-server \ + krb5-kdc \ + libffi-dev \ + libkrb5-3 \ + libkrb5-dev \ + libncurses5-dev \ + libsasl2-2 \ + libsasl2-dev \ + libsasl2-modules-gssapi-mit \ + libssl-dev \ + libtool \ + python3 \ + python3-pip \ + software-properties-common \ + unixodbc \ + unixodbc-dev \ + unzip \ + vim \ + wget \ + zip \ + zlib1g-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +RUN wget https://github.com/apple/foundationdb/releases/download/7.1.43/foundationdb-clients_7.1.43-1_amd64.deb \ + && dpkg -i foundationdb-clients_7.1.43-1_amd64.deb \ + && rm foundationdb-clients_7.1.43-1_amd64.deb + +RUN ln -sf /usr/bin/python3 /usr/bin/python && \ + ln -sf /usr/bin/pip3 /usr/bin/pip + +RUN cmake --version + +WORKDIR / + +# Elixir complains if runs without UTF-8 +ENV LC_ALL=C.UTF-8 +ENV LANG=C.UTF-8 + +WORKDIR / +CMD [ "/bin/bash" ]