You can use docker_build.sh to build an image for local testing.
Once build you can run Docker image locally like so:
docker run -it --rm -v ./settings.yaml:/code/ starwitorg/sae-redis-writer:1.3.0Please note, that you should provide a settings.yaml that configures application to your needs. See template for how to do that.
This software can be released as a Debian/APT package. This section explains, how this works. Please note, that everything has been tested with Ubuntu Linux only.
Following packages need to installed on your computer:
- build-essential
- python3-all
- python3-setuptools
- python3-pip
- dh-python
Package can be build using:
make build-debPackage can be found in folder target. You can test install package using Docker like so:
docker run -it --rm -v ./:/app ubuntu:22.04 bash
apt update && apt install -y /app/target/rediswriter_1.3.0_all.debNote: Installation will fail when trying to start SystemD service. This is something one can only test in a real Linux environment.
make cleanFiles in the debian/ folder:
changelog- Records changes made to the package in each versioncompat- Specifies the debhelper compatibility levelcontrol- Contains package metadata (dependencies, description, etc.)install- Lists files to be installed and their destination pathsobjectdetector.service- Systemd service file for the applicationpostinst- Post-installation script that runs after package installationpreinst- Pre-installation script that runs before package installationprerm- Pre-removal script that runs before package removalrules- Main package build script (makefile)source/options- Options for the source package format like ommiting directories