Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.35 KB

README.md

File metadata and controls

43 lines (37 loc) · 1.35 KB

To connect to raspberry use

ssh pi@raspberrypisdextremeplus

Run

Run the docker image on the raspberry:

docker run -e SQLALCHEMY_DATABASE_URI=<db_uri> -e ACTIVATE_SPIDERS=ALL real-aesthete

E.g.:

docker run -e SQLALCHEMY_DATABASE_URI=postgresql://postgres:postgres@raspberrypisdextremeplus:5432/postgres -e IMMOWELT_SPIDER_RANDOM_DECLINE_RATE=0.5 -e ACTIVATE_SPIDERS=EbayFlatRentSpider -e POSTGRES_POOL_SIZE=200 -e POSTGRES_MAX_OVERFLOW=20 -it real-aesthete
docker run -e SQLALCHEMY_DATABASE_URI=postgresql://postgres:[email protected]:5432/postgres -e IMMOWELT_SPIDER_RANDOM_DECLINE_RATE=0.5 -e ACTIVATE_SPIDERS=EbayFlatRentSpider -e POSTGRES_POOL_SIZE=200 -e POSTGRES_MAX_OVERFLOW=20 -it real-aesthete

Dokerize

Base image

docker build -t real-aesthete-base -f Dockerfile-base .

legacy code, use the normal build command on the raspi

docker buildx build --platform=linux/arm/v7 -t real-aesthete-base-arm -f Dockerfile-base .

Full image

docker build -t real-aesthete .

legacy code, use the normal build command on the raspi

docker buildx build --platform=linux/arm/v7 -t real-aesthete-arm .

Copy with

docker save -o <path for generated tar file> <image name>
scp real-aesthete-image pi@raspberrypisdextremeplus:real-aesthete-image.tar
docker load -i <path to image tar file>