Cobuild: Move to Bookworm and venv
This commit is contained in:
parent
8fcc250041
commit
084502ef08
3 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,12 @@
|
||||||
progress "Installing Hrochobot"
|
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
|
cd /build/src
|
||||||
pip install .
|
pip install .
|
||||||
|
|
|
@ -5,7 +5,7 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=exec
|
Type=exec
|
||||||
ExecStartPre=mkdir -p /data/hrochobot
|
ExecStartPre=mkdir -p /data/hrochobot
|
||||||
ExecStart=/usr/local/bin/hrochobot
|
ExecStart=/srv/hrochobot/bin/hrochobot
|
||||||
Environment=HROCHOBOT_DATA=/data/hrochobot
|
Environment=HROCHOBOT_DATA=/data/hrochobot
|
||||||
Environment=HROCHOBOT_ETC=/data/hrochobot
|
Environment=HROCHOBOT_ETC=/data/hrochobot
|
||||||
Environment=HROCHOBOT_LOG=/data/log
|
Environment=HROCHOBOT_LOG=/data/log
|
||||||
|
|
|
@ -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 bin /build/src/bin
|
||||||
COPY hrochobot /build/src/hrochobot
|
COPY hrochobot /build/src/hrochobot
|
||||||
COPY setup.py /build/src
|
COPY setup.py /build/src
|
||||||
|
|
Loading…
Reference in a new issue