mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 21:36:21 +00:00
Alpine images
This commit is contained in:
commit
c8bf7daf02
16 changed files with 392 additions and 0 deletions
56
firefox/20-firefox.sh
Executable file
56
firefox/20-firefox.sh
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
#!/usr/bin/env bash
|
||||
# Create firefox profile directory
|
||||
mkdir -p /app/firefox
|
||||
|
||||
# Firefox custom user.js
|
||||
cat >/app/firefox/user.js <<- 'firefox'
|
||||
// First run
|
||||
user_pref("app.normandy.first_run", false);
|
||||
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||
user_pref("trailhead.firstrun.didSeeAboutWelcome", true);
|
||||
user_pref("browser.startup.homepage_override.mstone", "ignore");
|
||||
|
||||
// Homepage
|
||||
// user_pref("browser.startup.page", 1);
|
||||
// user_pref("browser.startup.homepage", "https://myvelabs.app/");
|
||||
|
||||
// Security/privacy section
|
||||
user_pref("app.shield.optoutstudies.enabled", false);
|
||||
user_pref("browser.contentblocking.category", "standard");
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
user_pref("extensions.pocket.enabled", false);
|
||||
user_pref("dom.private-attribution.submission.enabled", false);
|
||||
user_pref("network.trr.mode", 5);
|
||||
|
||||
// Disable sponsored content on Firefox Home (Activity Stream)
|
||||
user_pref("browser.newtabpage.activity-stream.showSearch", false);
|
||||
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
|
||||
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
|
||||
user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||
user_pref("browser.newtabpage.activity-stream.topSitesRows", 4);
|
||||
|
||||
// Disable about:config warning
|
||||
user_pref("browser.aboutConfig.showWarning", false);
|
||||
|
||||
// Disable url autocomplete
|
||||
user_pref("browser.search.suggest.enabled", false);
|
||||
user_pref("browser.urlbar.suggest.recentsearches", false);
|
||||
user_pref("browser.urlbar.suggest.searches", false);
|
||||
|
||||
// Closing firefox properties
|
||||
user_pref("browser.warnOnQuitShortcut", false);
|
||||
user_pref("browser.tabs.closeWindowWithLastTab", false);
|
||||
|
||||
// Disable autohide toolbar on fullscreen
|
||||
user_pref("browser.fullscreen.autohide", false);
|
||||
firefox
|
||||
|
||||
# i3/firefox startup
|
||||
install /dev/stdin ~/.config/i3/startapp.sh <<- startup
|
||||
#!/usr/bin/env bash
|
||||
# Run firefox
|
||||
while true
|
||||
do
|
||||
firefox --profile /app/firefox ${MYVNC_FIREFOX_OPTS} --new-window ${MYVNC_FIREFOX_URL}
|
||||
done
|
||||
startup
|
||||
17
firefox/Dockerfile
Normal file
17
firefox/Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# syntax = docker/dockerfile:1.2
|
||||
FROM alpine/base:i3
|
||||
USER root
|
||||
|
||||
# # ENV variables
|
||||
# ENV MYVNC_FIREFOX_URL # optional
|
||||
# ENV MYVNC_FIREFOX_OPTS # eg, --kiosk
|
||||
|
||||
# Install packages
|
||||
RUN apk add --no-cache \
|
||||
firefox
|
||||
|
||||
# Tigervnc
|
||||
COPY *.sh /app/init.d/
|
||||
|
||||
# Reset user home directory
|
||||
USER user
|
||||
5
firefox/build
Executable file
5
firefox/build
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# Docker build
|
||||
# Optional buildtag
|
||||
DOCKER_BUILDKIT=1 docker build ./. \
|
||||
--tag ${buildtag:-alpine/firefox}
|
||||
Loading…
Add table
Add a link
Reference in a new issue