Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Debian bookworm dockerfile and makefile to build and run lxqt-notificationd #365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docker/Dockerfile.debian_bookworm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM debian:bookworm

RUN apt-get update && \
apt-get install -y cmake g++ && \
apt-get install -y --no-install-recommends qtbase5-dev qttools5-dev libkf5windowsystem-dev liblxqt1-dev libqt5x11extras5-dev && \
rm -rf /var/lib/apt/lists/*

RUN mkdir /tmp/lxqt-notificationd
WORKDIR /tmp/lxqt-notificationd

RUN mkdir -p /var/run/dbus


COPY . .
RUN mkdir build && \
cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr && \
make
33 changes: 33 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
SHELL:=/bin/bash

.DEFAULT_GOAL := build

PROJECT:=lxqt-notificationd
TAG:=latest

.EXPORT_ALL_VARIABLES:
DOCKER_BUILDKIT?=1
DOCKER_CONFIG?=

DOCKERFILE=Dockerfile.debian_bookworm

.PHONY: build
build: clean
cd .. && sed -i "s|1.4.0|1.2.0|g" CMakeLists.txt
cd .. && docker build -f "docker/${DOCKERFILE}" -t ${PROJECT}:${TAG} .
git checkout -- ../CMakeLists.txt
cd .. && docker cp $$(docker create --rm ${PROJECT}:${TAG}):/tmp/lxqt-notificationd/build .
cd .. && docker cp $$(docker create --rm ${PROJECT}:${TAG}):/usr/lib/x86_64-linux-gnu/liblxqt.so.1 build
cd .. && docker cp $$(docker create --rm ${PROJECT}:${TAG}):/usr/lib/x86_64-linux-gnu/liblxqt.so.1.2.0 build


.PHONY: clean
clean:
cd .. && rm -rf build
docker rm $$(docker ps -a -q --filter "ancestor=${PROJECT}:${TAG}") --force 2> /dev/null || true
docker rmi $$(docker images -q ${PROJECT}:${TAG}) --force 2> /dev/null || true


.PHONY: run
run:
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$(shell realpath ../build)" ./../build/src/lxqt-notificationd