Skip to content

Commit

Permalink
dev: preparing first release
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Aug 19, 2024
1 parent f8bc96a commit 1af5f4e
Show file tree
Hide file tree
Showing 11 changed files with 269 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
context: .
platforms: linux/amd64
file: Dockerfile
tags: ghcr.io/cloud-py-api/visionatrix-cuda:${{ env.VERSION }}
tags: ghcr.io/cloud-py-api/visionatrix:${{ env.VERSION }}-cuda
build-args: |
BUILD_TYPE=cuda
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
context: .
platforms: linux/amd64
file: Dockerfile
tags: ghcr.io/cloud-py-api/visionatrix-rocm:${{ env.VERSION }}
tags: ghcr.io/cloud-py-api/visionatrix:${{ env.VERSION }}-rocm
build-args: |
BUILD_TYPE=cuda
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ coverage/
vendor
.php-cs-fixer.cache
.phpunit.result.cache

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/


__pycache__
local
.run/
.venv
venv
dev
Visionatrix
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.0.0 - 2024-08-xx]

### Added

- First release.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BUILD_TYPE
# Visionatrix enviroment variables
ENV VIX_HOST="127.0.0.1"
ENV VIX_PORT=8288
ENV USER_BACKENDS="nextcloud"
ENV USER_BACKENDS="vix_db;nextcloud"
ENV FLOWS_DIR="/nc_app_vix_data/vix_flows"
ENV MODELS_DIR="/nc_app_vix_data/vix_models"
ENV TASKS_FILES_DIR="/nc_app_vix_data/vix_tasks_files"
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN cd /Visionatrix && \
echo "Installing PyTorch for ARM64"; \
venv/bin/python -m pip install torch torchvision torchaudio; \
elif [ "$BUILD_TYPE" = "rocm" ]; then \
venv/bin/python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0; \
venv/bin/python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1; \
elif [ "$BUILD_TYPE" = "cpu" ]; then \
venv/bin/python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu; \
else \
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ build-push-rocm:
docker login ghcr.io
docker buildx build --push --platform linux/amd64 --tag ghcr.io/cloud-py-api/visionatrix-rocm:$$(xmlstarlet sel -t -v "//image-tag" appinfo/info.xml) --build-arg BUILD_TYPE=rocm .

.PHONY: run30
run30:
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister visionatrix --silent --force || true
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register visionatrix --force-scopes \
--info-xml https://raw.githubusercontent.com/cloud-py-api/visionatrix/main/appinfo/info.xml

.PHONY: run
run:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister visionatrix --silent --force || true
Expand All @@ -46,9 +52,9 @@ run:
.PHONY: register
register:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister visionatrix --silent --force || true
docker exec master-nextcloud-1 rm -rf /tmp/vix_l10n && docker cp l10n master-nextcloud-1:/tmp/vix_l10n
docker exec master-nextcloud-1 rm -rf /tmp/vix_l10n && docker cp ex_app/l10n master-nextcloud-1:/tmp/vix_l10n
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register visionatrix manual_install --json-info \
"{\"id\":\"visionatrix\",\"name\":\"Visionatrix\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9100,\"scopes\":[\"AI_PROVIDERS\", \"FILES\", \"USER_INFO\"],\"system_app\":0, \"translations_folder\":\"\/tmp\/vix_l10n\"}" \
"{\"id\":\"visionatrix\",\"name\":\"Visionatrix\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9100,\"scopes\":[\"AI_PROVIDERS\", \"FILES\", \"USER_INFO\"], \"routes\": [{\"url\":\".*\",\"verb\":\"GET, POST, PUT, DELETE\",\"access_level\":1,\"headers_to_exclude\":[]}], \"translations_folder\":\"\/tmp\/vix_l10n\"}" \
--force-scopes --wait-finish

.PHONY: translation_templates
Expand Down
21 changes: 14 additions & 7 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,38 @@
<summary>Visionatrix - scalable AI Media processing</summary>
<description>
<![CDATA[Nextcloud Visionatrix is a standalone Visionatrix service that allows you to process your media files right in your Nextcloud.
Each user has their own Visionatrix account (authenticated using Nextcloud credentials) and tasks history.]]>
Each user has their own Visionatrix account (authenticated using Nextcloud credentials) and tasks history.
Can be used from within Nextcloud Assistant as a regular "txt2img" image provider.]]>
</description>
<version>1.0.0</version>
<licence>MIT</licence>
<author mail="[email protected]" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author>
<namespace>Visionatrix</namespace>
<category>tools</category>
<website>https://github.com/cloud-py-api/visionatrix-nc</website>
<bugs>https://github.com/cloud-py-api/visionatrix-nc/issues</bugs>
<repository type="git">https://github.com/cloud-py-api/visionatrix-nc</repository>
<website>https://github.com/cloud-py-api/visionatrix</website>
<bugs>https://github.com/cloud-py-api/visionatrix/issues</bugs>
<repository type="git">https://github.com/cloud-py-api/visionatrix</repository>
<dependencies>
<nextcloud min-version="30" max-version="30"/>
<nextcloud min-version="30" max-version="31"/>
</dependencies>
<external-app>
<docker-install>
<registry>ghcr.io</registry>
<image>cloud-py-api/visionatrix</image>
<image-tag>0.7.1</image-tag>
<image-tag>1.0.0</image-tag>
</docker-install>
<scopes>
<value>AI_PROVIDERS</value>
<value>FILES</value>
<value>USER_INFO</value>
</scopes>
<system>false</system>
<route>
<url>.*</url>
<verb>GET,POST,PUT,DELETE</verb>
<access_level>USER</access_level>
<headers_to_exclude>[]</headers_to_exclude>
</route>
</external-app>
</info>
Loading

0 comments on commit 1af5f4e

Please sign in to comment.