From 53ec5e09d070651f877fac82f30b07632dc22a7a Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 5 Jul 2024 18:49:21 -0600 Subject: [PATCH] testing docker build --- .gitea/workflows/package.yaml | 3 +++ Dockerfile | 3 +++ setup_stuff.sh | 40 +++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 Dockerfile create mode 100755 setup_stuff.sh diff --git a/.gitea/workflows/package.yaml b/.gitea/workflows/package.yaml index 36a05e6..22623fe 100644 --- a/.gitea/workflows/package.yaml +++ b/.gitea/workflows/package.yaml @@ -16,6 +16,9 @@ jobs: steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: uname -v + - run: apt update + - run: apt install -y docker.io + - run: sudo docker build . -t "pogmom/debify-$(uname -m):sid" # - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" # - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." # - name: Check out repository code diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..54e6dd5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM debian:trixie +ADD setup_stuff.sh /opt/ +RUN /bin/bash /opt/setup_stuff.sh diff --git a/setup_stuff.sh b/setup_stuff.sh new file mode 100755 index 0000000..3ab713c --- /dev/null +++ b/setup_stuff.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +mv /var/lib/dpkg/info/polkitd.postinst /tmp/ +cd /bin && mv -f systemd-sysusers{,.org} && ln -s echo systemd-sysusers && cd - + +# change to our own mirror +#echo "deb http://deb.debian.org/debian/ bookworm main non-free contrib" > /etc/apt/sources.list +#echo "deb http://security.debian.org/ bookworm/updates main" >> /etc/apt/sources.list +#echo "deb http://pkg.adfinis-sygroup.ch/debian/ bookworm-updates main contrib non-free" >> /etc/apt/sources.list + +#echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free" >> /etc/apt/sources.list + +#cat /etc/apt/sources.list.d/debian.sources +#exit 1 + +# requirements +apt-get update +apt-get -y install git dh-make build-essential autoconf autotools-dev devscripts wget curl cmake node + +#cargo-deb +apt-get -y install rustup libdbus-glib-1-dev +rustup default stable +cargo install cargo-deb + +#wlroots +apt-get -y install hwdata + +#swayfx +apt-get -y debhelper-compat libcairo2-dev libcap-dev libdbus-1-dev libevdev-dev libgdk-pixbuf-2.0-dev libinput-dev libjson-c-dev libpam0g-dev libpango1.0-dev libpcre2-dev libpixman-1-dev libseat-dev libwayland-dev libwayland-egl1 libwlroots-dev libxkbcommon-dev meson pkgconf scdoc tree wayland-protocols cmake libegl-dev xwayland libsystemd-dev + +#makedeb +#apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5 cmake ninja-build extra-cmake-modules zlib1g-dev openjdk-17-jdk libgl1-mesa-dev scdoc +#export MAKEDEB_RELEASE='makedeb' +#bash -c "$(wget -qO - 'https://shlink.makedeb.org/install')" + +#might use pacstall instead? +#sudo bash -c "$(curl -fsSL https://pacstall.dev/q/install || wget -q https://pacstall.dev/q/install -O -)" + +#floorp +#apt-get -y install libcairo2 libcairo-gobject2 libatk1.0-0t64 libxi6 libxcursor1 libx11-xcb1 libdbus-1-3 libdbus-glib-1-2 libgdk-pixbuf-2.0-0 libpango-1.0-0 libpangocairo-1.0-0 libgtk-3-0t64 libxtst6 libxrandr2 libxfixes3 libxdamage1 libxcomposite1 libasound2t64