-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REFACTOR] Restructure project into client and api_service directorie…
…s, improved docker build speed and weight (#50) 🚀 Improved - Restructured the project into `client` and `api_service` directories for better organization and modularity. - Improved Docker build speed and reduced image size. - Added support for ARM64 architecture. 🐛 Fixed - Fixed a bug that prevented users from manually entering the URL for Jellyfin, Overseer, and Jellyseer.
- Loading branch information
1 parent
a565be7
commit 7d1977b
Showing
83 changed files
with
175 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,62 @@ | ||
.env | ||
# Ignore Git files and folders | ||
.git | ||
.gitattributes | ||
.gitignore | ||
.github | ||
|
||
# Ignore Docker-specific files and folders | ||
.docker | ||
docker-compose.yml | ||
docker-compose.override.yml | ||
docker-compose-debug.yml | ||
dockerfile | ||
.docker | ||
.dockerignore | ||
|
||
# Ignore environment and config files | ||
.env | ||
.env.local | ||
.env.development | ||
.env.production | ||
.env.example | ||
*.config | ||
*.yaml | ||
|
||
# Ignore Python cache and environment folders | ||
**/__pycache__/ | ||
**/*.py[cod] | ||
.Python | ||
*.manifest | ||
*.spec | ||
.venv/ | ||
venv/ | ||
.vscode/ | ||
*.md | ||
|
||
# Ignore Node modules | ||
node_modules/ | ||
|
||
# Ignore IDE and editor configurations and temporary files | ||
.vscode/ | ||
.idea/ | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.iml | ||
|
||
# Ignore temporary and backup files | ||
*.swp | ||
*.swo | ||
*.bak | ||
*.tmp | ||
*.temp | ||
*.DS_Store | ||
|
||
# Ignore log files | ||
*.log | ||
app.log | ||
*.yaml | ||
|
||
# Ignore build and distribution folders | ||
build/ | ||
dist/ | ||
out/ | ||
|
||
# Ignore documentation and markdown files | ||
*.md | ||
|
||
# Ignore config and config files folders | ||
/config_files | ||
/config/config_files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -13,20 +14,17 @@ jobs: | |
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker Hub | ||
run: echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ciuse99 --password-stdin | ||
|
||
- name: Build Docker Image | ||
run: | | ||
docker build . -t ciuse99/suggestarr:latest | ||
- name: Push Docker Image | ||
run: | | ||
docker push ciuse99/suggestarr:latest | ||
# temporary keeping two images | ||
- name: Build Docker Image | ||
run: | | ||
docker build . -t ciuse99/jellyseer_request_automation:latest | ||
- name: Push Docker Image | ||
- name: Build and Push Docker Image (SuggestArr) | ||
run: | | ||
docker push ciuse99/jellyseer_request_automation:latest | ||
docker buildx build \ | ||
--platform linux/amd64,linux/arm64 \ | ||
--cache-from type=registry,ref=ciuse99/suggestarr:cache \ | ||
--cache-to type=registry,ref=ciuse99/suggestarr:cache,mode=max \ | ||
-t ciuse99/suggestarr:latest \ | ||
-f docker/Dockerfile . --push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
|
||
name: Build and Publish Docker Image to Docker Hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- nightly | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
|
||
- name: Set up Docker Buildx | ||
run: | | ||
docker run --privileged --rm tonistiigi/binfmt --install all | ||
docker buildx create --use | ||
docker buildx inspect --bootstrap | ||
uses: docker/[email protected] | ||
|
||
- name: Log in to Docker Hub | ||
run: echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ciuse99 --password-stdin | ||
|
||
- name: Build and Push Docker Image | ||
run: | | ||
docker buildx build --platform linux/amd64,linux/arm64 -t ciuse99/suggestarr:nightly --push . | ||
docker buildx build \ | ||
--platform linux/amd64,linux/arm64 \ | ||
--cache-from type=registry,ref=ciuse99/suggestarr:cache \ | ||
--cache-to type=registry,ref=ciuse99/suggestarr:cache,mode=max \ | ||
-t ciuse99/suggestarr:nightly \ | ||
-f docker/Dockerfile . --push |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
blueprints/automation/routes.py → api_service/blueprints/automation/routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
blueprints/config/routes.py → api_service/blueprints/config/routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
blueprints/jellyfin/routes.py → api_service/blueprints/jellyfin/routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
blueprints/logs/routes.py → api_service/blueprints/logs/routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
blueprints/plex/routes.py → api_service/blueprints/plex/routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
blueprints/seer/routes.py → api_service/blueprints/seer/routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
handler/jellyfin_handler.py → api_service/handler/jellyfin_handler.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
handler/plex_handler.py → api_service/handler/plex_handler.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.