Commit 3f196e1f authored by nimrod's avatar nimrod
Browse files

Install Kompose from source.

Build the go binary from source. It's more complex than just go get or
go install, see https://github.com/kubernetes/kompose/issues/1472 from
more information. This the last Homebrew package. Now to remove
Homebrew.
parent 5721e837
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ 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
# hadolint ignore=DL3008,DL3013,DL3027,DL4001,DL3003
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
        adb \
@@ -160,7 +160,6 @@ RUN apt-get update && \
    git clone https://github.com/Homebrew/brew /usr/local/share/brew && \
    ln -s /usr/local/share/brew/bin/brew /usr/local/bin/brew && \
    brew install --force-bottle \
        kompose \
    && \
    brew cleanup --prune=all -s && \
    ln --symbolic --target /etc/bash_completion.d/ /usr/local/etc/bash_completion.d/* && \
@@ -236,6 +235,12 @@ 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 && \
@@ -257,6 +262,7 @@ RUN apt-get update && \
    helm completion bash > /etc/bash_completion.d/helm && \
    semver-bump completion bash > /etc/bash_completion.d/semver-bump && \
    pdm completion bash > /etc/bash_completion.d/pdm && \
    kompose completion bash > /etc/bash_completion.d/kompose && \
    wget https://raw.githubusercontent.com/docker/compose/1.29.2/contrib/completion/bash/docker-compose -qO /etc/bash_completion.d/docker-compose && \
    wget https://raw.githubusercontent.com/ansible-community/molecule/1.25.1/asset/bash_completion/molecule.bash-completion.sh -qO /etc/bash_completion.d/molecule && \
    wget https://github.com/mrolli/packer-bash-completion/raw/master/packer -qO /etc/bash_completion.d/packer && \