Commit f944a14d authored by nimrod's avatar nimrod
Browse files

Install Kompose from a Debian package.

There's no repository so I download the package from the GitHub release.
It maybe a little better from the worked around build process, less
code, less fragile and probably a little faster to build.
parent c754814d
Loading
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -22,8 +22,9 @@ RUN apt-get update && \
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
COPY --chown=root:root sources.d/* /etc/apt/sources.list.d/
COPY --chown=root:root preferences.d/* /etc/apt/preferences.d/
# hadolint ignore=DL3008,DL3013,DL3027,DL4001,DL3003
# hadolint ignore=DL3008,DL3013,DL3027,DL4001
RUN apt-get update && \
    curl --location --silent --fail https://github.com/kubernetes/kompose/releases/download/v1.26.1/kompose_1.26.1_amd64.deb --output /tmp/kompose.deb && \
    DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
        adb \
        apache2-utils \
@@ -80,6 +81,7 @@ RUN apt-get update && \
        iputils-tracepath \
        jp \
        keyutils \
        /tmp/kompose.deb \
        kops \
        krb5-config \
        kubectl \
@@ -231,12 +233,6 @@ RUN apt-get update && \
    go get sigs.k8s.io/kustomize/kustomize/v3 && \
    go get github.com/rancher/rke && \
    go get github.com/genuinetools/reg@v0.16.1 && \
    (   \
        cd "$(mktemp -d)" && \
        git clone https://github.com/kubernetes/kompose && \
        cd ./kompose && \
        go build \
    ) && \
    export GO111MODULE=on && \
    go install github.com/giantswarm/semver-bump@latest && \
    go install github.com/nishanths/license/v5@latest && \