Commit 89e09310 authored by nimrod's avatar nimrod
Browse files

Install bfg manually.

Homebrew doesn't have a binary package. Get the jar from Maven and a
small script to run it using the JVM.
parent e7d8b0dc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@
!mongodb.sources
!google-cloud.sources
!heroku.list
!bfg
+3 −1
Original line number Diff line number Diff line
@@ -129,7 +129,6 @@ RUN apt-get update && \
    ln -s /usr/local/share/brew/bin/brew /usr/local/bin/brew && \
    brew install --force-bottle \
        aws-vault \
        bfg \
        buildpacks/tap/pack \
        docker-machine \
        envconsul \
@@ -225,6 +224,8 @@ RUN apt-get update && \
    tar -xzf /tmp/toolbox.tar.gz -C / && \
    wget https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/v3.8.16/deps/rabbitmq_management/bin/rabbitmqadmin -O /usr/local/bin/rabbitmqadmin && \
    chmod +x /usr/local/bin/rabbitmqadmin && \
    mkdir /usr/local/share/bfg && \
    wget 'https://search.maven.org/remote_content?g=com.madgag&a=bfg&v=LATEST' -O /usr/local/share/bfg/bfg.jar && \
    pipenv --completion > /etc/bash_completion.d/pipenv && \
    rabbitmqadmin --bash-completion  > /etc/bash_completion.d/rabbitmqadmin && \
    poetry completions bash > /etc/bash_completion.d/poetry && \
@@ -239,6 +240,7 @@ RUN apt-get update && \
    sed -i -e 's/ ALL$/ NOPASSWD:ALL/' /etc/sudoers && \
    rm /etc/ssh/ssh_host_* && \
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/*
COPY bfg /usr/local/bin/
LABEL com.github.containers.toolbox="true" \
      com.github.debarshiray.toolbox="true"
ENV PATH /usr/lib/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

bfg

0 → 100755
+4 −0
Original line number Diff line number Diff line
#!/bin/sh
set -eu

exec java -jar /usr/local/share/bfg/bfg.jar "$@"