Commit Graph

30 Commits

Author SHA1 Message Date
Adam Leskis 0cef277365 remove unnecessary RUN command
WORKDIR already runs "mkdir -p" under the hood, so we don't need to add this extra command (and layer) to the Dockerfile.
2023-02-02 18:37:35 -05:00
Samveen b389228682 Use Debian's firefox-esr instead of the standalone Mozilla build 2023-01-30 09:03:55 -05:00
Thomas Buckley-Houston 7e68247557 Use ENTRYPOINT instead of CMD in Dockerfile
Fixes #346
2022-07-25 22:46:58 -04:00
Thomas Buckley-Houston 3bc427f416 devops: Update release process for Github 2022-07-20 15:22:12 -04:00
Thomas Buckley-Houston 87bf16dd20 devops: Update Docker process for releasing 2022-07-20 15:22:12 -04:00
Thomas Buckley-Houston 5829c71a3e Centralise all the Browsh build steps 2018-07-26 18:59:59 +08:00
Thomas Buckley-Houston 9abc3aaa3f Refactor build process to not use pre-built bins
This means that there's now a canonical script that allows other
distributers to build Browsh. The only caveat being that the web
extension cannot be built (Mozilla only allows one signed `.xpi` per
version), so it is downloaded.
2018-07-26 18:44:01 +08:00
Thomas Buckley-Houston 1b0d5f103f Provide Browsh version with git in Dockerfile
Version v1.4.6
2018-07-19 15:26:45 +08:00
Thomas Buckley-Houston c26b632b5d Remove gcloud_logger from Dockerfile
It's not needed now that Kubernetes integrates with GCE's Stackdriver
2018-07-10 10:43:48 +08:00
Thomas Buckley-Houston 2577ea896b Fixes to get the Docker image building again
Firstly Firefox 60 now throws an error if its run as root inside a
user's home path. Which is great because that revelead my naivety about
using `RUN su user` in the Dockerfile. So now Firefox is running as a
non-root user inside Docker which is what was always best.

Also it turns out that the crude 3 second wait at startup hoping that
Firefox's Marionette had started listening, wasn't good enough. So now
we're actually listening for a log message to know when it's started
now.

Finally make all startup methods use a the post-webext connection state
to send the startup URL to the browser, the other methods just seemed to
flakey.

Includes version bump to 1.0.9
2018-06-12 15:40:49 +08:00
Thomas Buckley-Houston 640f191e61 Added adblocking to /etc/hosts in Docker image 2018-02-17 18:29:14 +08:00
Thomas Buckley-Houston 2e37da37c4 Add gcloud_logger to Dockerfile
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.
2018-02-08 18:39:07 +08:00
Thomas Buckley-Houston fc5e72b191 Do FF's first run during docker *build*
This gets around a few problems caused by the fact that Firefox's first
ever run on a new profile is quiet different from a normal startup. Note
that this only effects Browsh in Docker.
2018-02-04 18:02:39 +08:00
Thomas Buckley-Houston cdab6bde93 Bugfixes to Dockerfile 2018-02-02 17:20:37 +08:00
Thomas Buckley-Houston 0b3ff030cd Release v0.2.3 2018-01-30 17:50:55 +08:00
Thomas Buckley-Houston 2985774859 Automate releases 2018-01-28 16:08:19 +08:00
Thomas Buckley-Houston 9a82182a9a Don't use `--new-instance`, `-P` when launching FF 2018-01-24 10:59:57 +08:00
Thomas Buckley-Houston d2aaa33963 Refactored webext background script 2018-01-10 22:54:51 +08:00
Thomas Buckley-Houston 8fe026ee4e Remove dependency on hacky glibc support.
It was only needed by a UTF8 conversion call in hiptext. Thanks to
another hack where I patch hiptext to just use the actual
Upper Half block character pasted into the file, then glibc
support isn't needed.
2016-07-23 13:18:50 +05:30
Thomas Buckley-Houston 65e0d7c87f Hiptext UTF8 block element rendering!
Provides almost double the resolution by using the unicode upper
block character, "▀", and setting its colour as with the fg colour
and the missing space below it with the bg colour. Clever stuff.
2016-05-22 21:14:02 +09:00
Thomas Buckley-Houston 8052f98627 Rearrange Dockerfile. Update README.
Using mirrors in Dockerfile because default ones were down at
time of writing.
Refactor all build commands into 1 RUN command to try and reduce
the number of cached build layers and thus reduce the size of
the finished image.
2016-05-22 11:19:29 +09:00
Thomas Buckley-Houston 9ec5c8c837 Needed to add the dejavu font for hiptext and dbus for firefox. 2016-05-21 18:05:24 +09:00
Thomas Buckley-Houston 4639ea6b58 Updated Dockerfile and README. But now it doesn't work :/ 2016-05-21 17:10:01 +09:00
Thomas Buckley-Houston 8c7071f8e0 Updated Dockerfile with some Go build lines. Added README 2016-05-21 14:20:16 +09:00
Thomas Buckley-Houston 13d9fadf41 Fixed zoom bug by writing some tests. Also moved thigns around a lot. 2016-05-20 23:51:57 +09:00
Thomas Buckley-Houston b25fefff3c Big milestone. Actually able to browse the web with Firefox :D 2016-05-20 15:14:29 +09:00
Thomas Buckley-Houston 932a4b3da9 Big change! Using code based on the little-known xzoom program, so no need for XFCE
The big problem with XFCE's zoom was that it follwed the mouse. So there was no way
to have the terminal representation of the desktop map to a smaller segment of the
real desktop without the terminal mouse position being able to exactly 'hover' over
the real mouse position.

The xzoom program is a window that displays a zoom of a portion of the desktop. So
double the width of the desktop and place the xzoom window on the right, but have
it watch only the half of the desktop on the left. What's more xzoom is small and
it's C code is easily incuded in the Golang code so they act as one, even sharing
state such as mouse coords, viewport position, current zoom level, etc.

WIP. Still contains old XFCE zoom code.
2016-05-20 01:52:22 +09:00
Thomas Buckley-Houston 073db28792 Switched to using Golang for mapping mouse reporting. 2016-05-08 22:29:49 +03:00
Thomas Buckley-Houston fb6db109f8 Docker build. Very basic zoom scrolling 2016-04-25 17:09:51 +03:00
Thomas Buckley-Houston c27e72bcfa First draft
This is just a scattering of notes and proofs of concepts.
2016-04-23 00:58:05 +03:00