Skip to content

Commit

Permalink
prepare v1.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Feb 13, 2024
1 parent c323d2d commit df7d7bc
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .run/context_chat_backend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="AE_VERSION" value="1.4.4" />
<env name="AE_VERSION" value="2.0.3" />
<env name="APP_ID" value="context_chat_backend" />
<env name="APP_PERSISTENT_STORAGE" value="$USER_HOME$/context_chat_backend_files" />
<env name="APP_PORT" value="9001" />
<env name="APP_SECRET" value="12345" />
<env name="APP_VERSION" value="1.0.0" />
<env name="APP_VERSION" value="1.1.0" />
<env name="NEXTCLOUD_URL" value="http://nextcloud.local" />
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
Expand Down
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@ help:
@echo " Next commands are only for dev environment with nextcloud-docker-dev!"
@echo " They should run from the host you are developing on (with activated venv) and not in the container with Nextcloud!"
@echo " "
@echo " deploy28 deploy example to registered 'docker_dev' for Nextcloud 28"
@echo " deploy deploy example to registered 'docker_dev' for Nextcloud"
@echo " "
@echo " run28 install Context Chat for Nextcloud 28"
@echo " run install Context Chat for Nextcloud"
@echo " "
@echo " For development of this example use PyCharm run configurations. Development is always set for last Nextcloud."
@echo " First run 'Context Chat' and then 'make manual_register', after that you can use/debug/develop it and easy test."
@echo " "
@echo " register28 perform registration of running 'Context Chat' into the 'manual_install' deploy daemon."
@echo " register perform registration of running 'Context Chat' into the 'manual_install' deploy daemon."

#.PHONY: build-push
#build-push:
# docker login ghcr.io
# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/context_chat_backend:1.0.0 --tag ghcr.io/nextcloud/context_chat_backend:latest .
# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/context_chat_backend:1.1.0 --tag ghcr.io/nextcloud/context_chat_backend:latest .

.PHONY: deploy28
deploy28:
.PHONY: deploy
deploy:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister context_chat_backend --silent || true
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:deploy context_chat_backend docker_dev \
--info-xml https://raw.githubusercontent.com/nextcloud/context_chat_backend/master/appinfo/info.xml

.PHONY: run28
run28:
.PHONY: run
run:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister context_chat_backend --silent || true
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register context_chat_backend docker_dev \
--force-scopes \
--info-xml https://raw.githubusercontent.com/nextcloud/context_chat_backend/master/appinfo/info.xml

.PHONY: register28
register28:
.PHONY: register
register:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister context_chat_backend --silent || true
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register context_chat_backend manual_install --json-info \
"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \
"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.1.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \
--force-scopes --wait-finish

4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Three mandatory apps are required for this app to work (can be installed from th
This app then should be installed from the "External Apps" page.
]]></description>
<version>1.0.2</version>
<version>1.1.0</version>
<licence>agpl</licence>
<author mail="[email protected]" homepage="https://github.com/kyteinsky">Anupam Kumar</author>
<namespace>Context Chat</namespace>
Expand All @@ -29,7 +29,7 @@ This app then should be installed from the "External Apps" page.
<docker-install>
<registry>ghcr.io</registry>
<image>nextcloud/context_chat_backend</image>
<image-tag>1.0.2</image-tag>
<image-tag>1.1.0</image-tag>
</docker-install>
<scopes>
<required>
Expand Down
13 changes: 13 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.1.0 – 2024-02-13
### Added
* add end_separator option in config
* support new content providers

### Fixed
* update app_api auth middleware
* fix add ctransformers to supported models list
* update readme with new tips and tricks
* update Makefile


## 1.0.1 – 2024-01-04
### Fixed
* updated app store description and readme


## 1.0.0 – 2023-12-21
### Added
* the app
Expand Down
2 changes: 1 addition & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ AA_VERSION=2.0.3
APP_SECRET=12345
APP_ID=context_chat_backend
APP_DISPLAY_NAME=Context Chat Backend
APP_VERSION=1.0.2
APP_VERSION=1.1.0
APP_PROTOCOL=http
APP_HOST=0.0.0.0
APP_PORT=10034
Expand Down
6 changes: 3 additions & 3 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
2. Register the app using the deploy daemon (be mindful of the port number and the app's version):
```
occ app_api:app:register context_chat_backend manual_install --json-info \
"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.2\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \
"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.1.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \
--force-scopes --wait-finish
```

Expand All @@ -66,8 +66,8 @@ Mount the docker.sock in the Nextcloud container if you happen to use a containe

- for docker compose
```yaml
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
```
- for docker container, use this option with the `docker run` command
Expand Down

0 comments on commit df7d7bc

Please sign in to comment.