add browsh

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-14 20:56:49 -04:00
parent 5eeb7c5753
commit e135194c74
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 34 additions and 0 deletions

33
browsh/Dockerfile Normal file
View File

@ -0,0 +1,33 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
# 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" ]

View File

@ -95,6 +95,7 @@ compare() {
projects=(
noelbundick/azure-cli-extension-noelbundick
browsh-org/browsh
certbot/certbot
hashicorp/consul
coredns/coredns