mirror of
https://github.com/kemko/icecast-ripper.git
synced 2026-01-07 18:55:43 +03:00
23 lines
568 B
Makefile
23 lines
568 B
Makefile
run:
|
|
@echo "Starting Icecast Recorder Service"
|
|
python src/main.py
|
|
|
|
test:
|
|
@echo "Running tests"
|
|
python -m unittest discover -s tests/
|
|
|
|
build:
|
|
@echo "Building Docker image for Icecast Recorder Service"
|
|
docker build -t icecast-recorder .
|
|
|
|
docker-run: build
|
|
@echo "Running Icecast Recorder Service in a Docker container"
|
|
docker run -p 8080:8080 --env-file .env.example icecast-recorder
|
|
|
|
clean:
|
|
@echo "Cleaning up pycache and .pyc files"
|
|
find . -type d -name pycache -exec rm -r {} +
|
|
find . -type f -name '*.pyc' -delete
|
|
|
|
.PHONY: run test build docker-run clean
|