Compare commits

..

5 commits

Author SHA1 Message Date
9ab413c614 ui: Remove old build script
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/manual/test/1 Pipeline was successful
ci/woodpecker/manual/test/2 Pipeline was successful
ci/woodpecker/manual/test/3 Pipeline was successful
ci/woodpecker/manual/test/4 Pipeline was successful
ci/woodpecker/manual/build/1 Pipeline was successful
ci/woodpecker/manual/build/2 Pipeline was successful
ci/woodpecker/manual/build/3 Pipeline was successful
ci/woodpecker/manual/build/4 Pipeline was successful
ci/woodpecker/manual/build/5 Pipeline was successful
ci/woodpecker/manual/build/6 Pipeline was successful
ci/woodpecker/manual/build/7 Pipeline was successful
ci/woodpecker/manual/build/8 Pipeline failed
2023-11-23 22:56:17 +01:00
99603fc4fc ui: Remove vs-code configuration
Don't checkin editor specific configs.
2023-11-23 22:55:03 +01:00
9f22c9d6f1 build: Remove old build script 2023-11-23 22:53:35 +01:00
e1477673b2 doc: Add minimal section for the UI 2023-11-23 22:50:36 +01:00
3a5763e40f doc: Remove pull instructions
I don't provide public/stable pre build images and you would anyway
need to build it locally for the caddy proxy...
2023-11-23 22:45:16 +01:00
4 changed files with 5 additions and 94 deletions

View file

@ -26,12 +26,6 @@ cd dchat
docker compose build
```
#### Pull the prebuilt images
```shell
docker compose pull
```
### Configure environment
```shell
@ -70,6 +64,11 @@ Invite the bot through the link provided in the container logs.
docker compose logs bot
```
### Permissions
After starting the stack, navigate to [localhost:8081](http://localhost:8081)
and feel free to configure who and how much they can use the bot :)
## LICENSE
The software is licensed under the [MPL-2.0](LICENSE) license.

View file

@ -1,54 +0,0 @@
#!/usr/bin/env bash
AUTHORS="Augusto Dwenger J. <dwenger@posteo.de>"
URL="https://${REPO}"
VENDOR="hamburghammer"
build() {
CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
REVISION=$(git rev-parse HEAD)
IMAGE_LATEST="${REPO}:latest"
if [ "$PUSH_LATEST" == "1" ]; then
DOCKER_BUILD_ARGS="$DOCKER_BUILD_ARGS --push"
fi
# shellcheck disable=SC2086
docker buildx build \
$DOCKER_BUILD_ARGS \
-t $IMAGE_LATEST \
--file Containerfile \
--platform linux/amd64,linux/arm64 \
--label "org.opencontainers.image.revision=${REVISION}" \
--label "org.opencontainers.image.version=${TAG}" \
--label "org.opencontainers.image.authors=${AUTHORS}" \
--label "org.opencontainers.image.created=${CREATED}" \
--label "org.opencontainers.image.source=${URL}" \
--label "org.opencontainers.image.vendor=${VENDOR}" \
--label "org.opencontainers.image.title=${TITLE}" \
--label "org.opencontainers.image.description=${DESCRIPTION}" \
. || exit $?
}
echo "start building bot"
REPO="git.hhhammer.de/hamburghammer/dchat/bot"
TITLE="dchat-bot"
DESCRIPTION="A Discord bot to chat with ChatGPT from OpenAI"
DOCKER_BUILD_ARGS="--target bot"
build
echo "start building web"
REPO="git.hhhammer.de/hamburghammer/dchat/web"
TITLE="dchat-web"
DESCRIPTION="A web API and UI for the dchat-bot configuration"
DOCKER_BUILD_ARGS="--target web"
build
echo "start building migration"
REPO="git.hhhammer.de/hamburghammer/dchat/migration"
TITLE="dchat-migration"
DESCRIPTION="A migration tool for the dchat database"
DOCKER_BUILD_ARGS="--target migration"
build

View file

@ -1,3 +0,0 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}

View file

@ -1,31 +0,0 @@
#!/usr/bin/env bash
REPO="git.hhhammer.de/hamburghammer/dchat-ui"
AUTHORS="Augusto Dwenger J. <dwenger@posteo.de>"
URL="https://${REPO}"
VENDOR="hamburghammer"
TITLE="dchat-ui"
DESCRIPTION="The Web-UI for dchat a Discord bot to chat with ChatGPT from OpenAI"
CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
REVISION=$(git rev-parse HEAD)
IMAGE_LATEST="${REPO}:latest"
# shellcheck disable=SC2086
podman build \
$DOCKER_BUILD_ARGS \
-t $IMAGE_LATEST \
--label "org.opencontainers.image.revision=${REVISION}" \
--label "org.opencontainers.image.version=${TAG}" \
--label "org.opencontainers.image.authors=${AUTHORS}" \
--label "org.opencontainers.image.created=${CREATED}" \
--label "org.opencontainers.image.source=${URL}" \
--label "org.opencontainers.image.vendor=${VENDOR}" \
--label "org.opencontainers.image.title=${TITLE}" \
--label "org.opencontainers.image.description=${DESCRIPTION}" \
. || exit $?
if [ "$PUSH_LATEST" == "1" ]; then
podman push "${IMAGE_LATEST}"
fi