Replies: 1 comment
-
I'm somewhat proud of this... #!/bin/sh -ex
docker image rm cheako-debian-firefox:sid-slim || true
docker image rm cheako-debian-base:sid-slim || true
docker build -t cheako-debian-base:sid-slim sid-slim-base
docker build -t cheako-debian-firefox:sid-slim firefox
distrobox stop firefox || true
distrobox rm firefox || true
podman rmi localhost/cheako-debian-firefox:sid-slim || true
sudo docker save cheako-debian-firefox:sid-slim | podman load
distrobox create -n firefox -i localhost/cheako-debian-firefox:sid-slim
daemon -- distrobox enter firefox -- firefox
FROM debian:sid-slim
ADD root_bash_aliases /root/.bash_aliases
ADD root_bashrc /root/.bashrc
RUN \
sed -i -e's/ main/ main contrib non-free/g' \
/etc/apt/sources.list.d/debian.sources; \
apt -y -qq update; \
apt -y -qq --no-install-suggests --no-install-recommends install \
bash-completion
FROM cheako-debian-base:sid-slim
RUN \
apt -y -qq update; \
apt -y -qq --no-install-suggests --no-install-recommends install \
firefox curl intel-media-va-driver-non-free libigfxcmrt7 libpci3 \
libpipewire-0.3-0t64 libpulse0 libavcodec-extra fonts-stix \
fonts-lmodern libcanberra0t64 ca-certificates libnotify4 \
ttf-bitstream-vera fonts-freefont-ttf fonts-dejima-mincho \
libstartup-notification0
RUN \
cd /dev/shm; \
apt -y -qq update& \
curl -LO https://github.com/aclap-dev/vdhcoapp/releases/latest/download/vdhcoapp-linux-x86_64.deb; \
wait; \
apt -y -qq install ./vdhcoapp-linux-x86_64.deb; \
rm -f vdhcoapp-linux-x86_64.deb
alias ll='ls -larth'
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# Note this is incomplete |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to rebuild my image for running firefox from a newer copy of debian sid, but I didn't want to type the commands by hand each time. I'm surprised I couldn't find a guide for this. What I thought I was supposed to do was create a few Dockerfile(s), but it wasn't clear how I should do that.
This is because debian:sid-slim changes and I'd want to rebase my firefox install and upgrade firefox.
Then run distrobox on the above install of firefox.
Beta Was this translation helpful? Give feedback.
All reactions