2e37da37c4
This is used on the Browsh as a Service platform for anonymous logins, it does not get used by default unless explicitly called. It is an external third-party binary and not at all integrated with the browsh binary itself. The situation is that browsh logs to a file *inside docker* so for now the easier way to get at those logs is to include this tool inside the docker container as well. I'm sure there are ways to completely separate the concerns here and I hope to do that soon once I settle on the final infrastructure for BaaS.
42 lines
1.2 KiB
Docker
42 lines
1.2 KiB
Docker
FROM bitnami/minideb:stretch
|
|
|
|
RUN install_packages xvfb libgtk-3-0 curl ca-certificates bzip2 libdbus-glib-1-2
|
|
|
|
# Logging client for Google's Stackdriver logging service.
|
|
# NB Not used by default. Only used by the Browsh as a Service platform on the
|
|
# anonymous accounts.
|
|
RUN curl -L -o /usr/local/bin/gcloud_logger https://github.com/tombh/gcloud_pipe_logger/releases/download/v0.0.5/gcloud_pipe_logger_0.0.5_linux_amd64
|
|
RUN chmod a+x /usr/local/bin/gcloud_logger
|
|
|
|
RUN useradd -m user
|
|
RUN su user
|
|
ENV HOME=/home/user
|
|
WORKDIR $HOME
|
|
|
|
# These are needed to detect versions
|
|
ADD .travis.yml .
|
|
ADD ./webext/manifest.json .
|
|
|
|
# Setup Firefox
|
|
ENV PATH="/home/user/bin/firefox:${PATH}"
|
|
ADD ./interfacer/contrib/setup_firefox.sh .
|
|
RUN ./setup_firefox.sh
|
|
RUN rm ./setup_firefox.sh && rm .travis.yml
|
|
|
|
# Setup Browsh
|
|
ADD ./interfacer/contrib/setup_browsh.sh .
|
|
RUN ./setup_browsh.sh
|
|
# 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 script \
|
|
--return \
|
|
-c "/home/user/browsh" \
|
|
/dev/null \
|
|
>/dev/null & \
|
|
sleep 10
|
|
RUN rm ./setup_browsh.sh && rm manifest.json
|
|
|
|
CMD ["/home/user/browsh"]
|
|
|