Browse Source

Cobuild: Move to Bookworm and venv

master
Martin Mareš 8 months ago
parent
commit
084502ef08
  1. 8
      cobuild/000-setup.sh
  2. 2
      cobuild/010-service.d/hrochobot.service
  3. 2
      cobuild/Dockerfile.top

8
cobuild/000-setup.sh

@ -1,4 +1,12 @@
progress "Installing Hrochobot"
echo "Creating virtual environment"
install-pkgs python3-venv
python3 -m venv /srv/hrochobot
. /srv/hrochobot/bin/activate
echo "Installing package"
cd /build/src
pip install .

2
cobuild/010-service.d/hrochobot.service

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=exec
ExecStartPre=mkdir -p /data/hrochobot
ExecStart=/usr/local/bin/hrochobot
ExecStart=/srv/hrochobot/bin/hrochobot
Environment=HROCHOBOT_DATA=/data/hrochobot
Environment=HROCHOBOT_ETC=/data/hrochobot
Environment=HROCHOBOT_LOG=/data/log

2
cobuild/Dockerfile.top

@ -1,4 +1,4 @@
FROM docker://registry.ks.matfyz.cz/gimli/base:bullseye
FROM docker://registry.ks.matfyz.cz/gimli/base:bookworm
COPY bin /build/src/bin
COPY hrochobot /build/src/hrochobot
COPY setup.py /build/src

Loading…
Cancel
Save