From a63f933dd94f8c244dfbe75a4189ca9605e9a4a7 Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Mon, 12 Feb 2024 04:21:05 +0100 Subject: [PATCH 1/3] Fixed dependencies --- requirements.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 560c864..ce908f5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,9 @@ -os -sys -json -time requests datetime python-dotenv spotipy praw -re spotipy pylast -typing \ No newline at end of file +typing +markdown \ No newline at end of file From 4ecbd7aa98d774c457ac56e9171457cdb3de4bc5 Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Mon, 12 Feb 2024 04:32:37 +0100 Subject: [PATCH 2/3] fixed docker compose --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43d7ecd..6b0acca 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ export LASTFM_API_SECRET={lastfm_api_secret} ## Docker Compose -`docker-compose.yaml`: +`docker-compose.yaml` (folder paths need adjusting): ```yaml version: '3.8' services: @@ -48,7 +48,8 @@ services: - "3030:3030" volumes: - /home/jonas_jones/jonas_jones-api:/home/jonas_jones/jonas_jones-api - command: ["sh", "-c", "pacman -Syu --noconfirm --needed pkg-config openssl python3 python-pip cargo && pip install -r requirements.txt && cd /home/jonas_jones/jonas_jones-api && /usr/bin/cargo run"] + - /home/jonas_jones/.config/rclone/:/root/.config/rclone/ + command: ["sh", "-c", "pacman -Syu --noconfirm --needed pkg-config openssl python3 python-pip rclone cargo && python3 -m venv api-venv && source api-venv/bin/activate && cd /home/jonas_jones/jonas_jones-api && pip install -r requirements.txt && /usr/bin/cargo run"] ``` run container: From 1cdb34503d82470215f004c1aec1722cfb485c1e Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Mon, 12 Feb 2024 04:34:34 +0100 Subject: [PATCH 3/3] Added docker-compose file --- docker-compose.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..3a3650d --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,11 @@ +version: '3.8' +services: + arch-linux: + image: archlinux:latest + container_name: jonas_jones-api + ports: + - "3030:3030" + volumes: + - /home/jonas_jones/jonas_jones-api:/home/jonas_jones/jonas_jones-api + - /home/jonas_jones/.config/rclone/:/root/.config/rclone/ + command: ["sh", "-c", "pacman -Syu --noconfirm --needed pkg-config openssl python3 python-pip rclone cargo && python3 -m venv api-venv && source api-venv/bin/activate && cd /home/jonas_jones/jonas_jones-api && pip install -r requirements.txt && /usr/bin/cargo run"] \ No newline at end of file