From e135194c74f6ad19ef0c7aba8012347c26964d79 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 14 Jul 2018 20:56:49 -0400 Subject: [PATCH] add browsh Signed-off-by: Jess Frazelle --- browsh/Dockerfile | 33 +++++++++++++++++++++++++++++++++ latest-versions.sh | 1 + 2 files changed, 34 insertions(+) create mode 100644 browsh/Dockerfile diff --git a/browsh/Dockerfile b/browsh/Dockerfile new file mode 100644 index 0000000..0162226 --- /dev/null +++ b/browsh/Dockerfile @@ -0,0 +1,33 @@ +FROM alpine:latest +LABEL maintainer "Jessie Frazelle " + +# Install bash so we have it. +RUN apk add --no-cache \ + bash + +# Install firefox. +RUN apk add --no-cache \ + firefox \ + --repository https://dl-4.alpinelinux.org/alpine/edge/testing \ + && firefox --version + +# Install browsh. +ENV BROWSH_VERSION 1.3.3 +RUN wget "https://github.com/browsh-org/browsh/releases/download/v${BROWSH_VERSION}/browsh_${BROWSH_VERSION}_linux_amd64" -O /usr/local/bin/browsh \ + && chmod a+x /usr/local/bin/browsh + +# Create user and change ownership +RUN addgroup -g 666 -S browsh \ + && adduser -u 666 -SHG browsh browsh + +#WORKDIR /home/browsh +#USER browsh + +# Firefox behaves quite differently to normal on its first run, so by getting +# that over and done with here when there's no user to be dissapointed means +# that all future runs will be consistent. +RUN TERM=xterm browsh & \ + pidsave=$!; \ + sleep 10; kill $pidsave || true; + +ENTRYPOINT [ "/usr/local/bin/browsh" ] diff --git a/latest-versions.sh b/latest-versions.sh index 4b8397d..61a6e5d 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -95,6 +95,7 @@ compare() { projects=( noelbundick/azure-cli-extension-noelbundick +browsh-org/browsh certbot/certbot hashicorp/consul coredns/coredns