Created
December 18, 2022 10:07
-
-
Save ZCube/e7365bc4ef5125d98ae78bf75ff85b82 to your computer and use it in GitHub Desktop.
external-dns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.19-bullseye AS golang-builder | |
RUN mkdir -p /opt/bitnami | |
ADD packages.sh /packages.sh | |
RUN chmod +x /packages.sh && \ | |
/packages.sh | |
FROM docker.io/bitnami/minideb:bullseye | |
ARG TARGETARCH | |
LABEL org.opencontainers.image.authors="https://github.com/ZCube/bitnami-compat" \ | |
org.opencontainers.image.description="Application repackaged by ZCube for arm64 compatible, originaly Bitnami" \ | |
org.opencontainers.image.ref.name="0.13.1-debian-11-r44" \ | |
org.opencontainers.image.source="https://github.com/ZCube/bitnami-compat" \ | |
org.opencontainers.image.title="external-dns" \ | |
org.opencontainers.image.vendor="ZCube" \ | |
org.opencontainers.image.version="0.13.1" | |
ENV HOME="/" \ | |
OS_ARCH="${TARGETARCH:-amd64}" \ | |
OS_FLAVOUR="debian-11" \ | |
OS_NAME="linux" | |
COPY prebuildfs / | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | |
# Install required system packages and dependencies | |
RUN install_packages ca-certificates curl procps | |
RUN echo install global | |
COPY --from=golang-builder /opt/bitnami/ /opt/bitnami/ | |
RUN apt-get autoremove --purge -y curl && \ | |
apt-get update && apt-get upgrade -y && \ | |
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives | |
RUN chmod g+rwX /opt/bitnami | |
ENV APP_VERSION="0.13.1" \ | |
BITNAMI_APP_NAME="external-dns" \ | |
PATH="/opt/bitnami/external-dns/bin:$PATH" | |
EXPOSE 7979 | |
WORKDIR /opt/bitnami/external-dns | |
USER 1001 | |
ENTRYPOINT [ "external-dns" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
export PACKAGE=external-dns | |
export TARGET_DIR=external-dns | |
export VERSION=0.13.1 | |
export REF=0.13.1 | |
export CGO_ENABLED=0 | |
rm -rf ${PACKAGE} || true | |
mkdir -p ${PACKAGE} | |
git clone -b "v${REF}" https://github.com/kubernetes-sigs/external-dns ${PACKAGE} | |
pushd ${PACKAGE} | |
make | |
cp build/external-dns . | |
mkdir -p /opt/bitnami/${TARGET_DIR}/licenses | |
mkdir -p /opt/bitnami/${TARGET_DIR}/bin | |
cp -f LICENSE /opt/bitnami/${TARGET_DIR}/licenses/${PACKAGE}-${VERSION}.txt | |
cp -f ${PACKAGE} /opt/bitnami/${TARGET_DIR}/bin/external-dns | |
popd | |
rm -rf ${PACKAGE} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment