add lxmd container
This commit is contained in:
parent
60ca5c62ec
commit
3fde0ef154
4 changed files with 31 additions and 0 deletions
20
lxmd/Containerfile
Normal file
20
lxmd/Containerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM debian:stable-slim
|
||||||
|
|
||||||
|
# INSTALL PYTHON
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
python3 \
|
||||||
|
python3-venv \
|
||||||
|
python3-pip && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
# SET UP VENV AND INSTALL RNSD
|
||||||
|
WORKDIR /app
|
||||||
|
COPY setup.sh ./
|
||||||
|
RUN ./setup.sh
|
||||||
|
|
||||||
|
|
||||||
|
# LOAD RUN SCRIPT
|
||||||
|
COPY run.sh ./
|
||||||
|
|
||||||
|
ENTRYPOINT ["bash","/app/run.sh"]
|
||||||
3
lxmd/launch.sh
Executable file
3
lxmd/launch.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
podman run --rm -it --network=host -v ./config:/app/config:Z lxmd
|
||||||
3
lxmd/run.sh
Executable file
3
lxmd/run.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
source venv/bin/activate
|
||||||
|
lxmd --config config
|
||||||
5
lxmd/setup.sh
Executable file
5
lxmd/setup.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
pwd
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
pip install lxmf
|
||||||
Loading…
Add table
Add a link
Reference in a new issue