fix docker
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
5
.env.example
Normal file
5
.env.example
Normal file
@@ -0,0 +1,5 @@
|
||||
# Admin handle (bot will respond to admin commands from this user)
|
||||
ADMIN=syui.ai
|
||||
|
||||
# Bluesky host (optional, default: bsky.social)
|
||||
HOST=syu.is
|
||||
@@ -1,7 +1,11 @@
|
||||
FROM syui/aios
|
||||
|
||||
WORKDIR /root
|
||||
ADD ./test/entrypoint.sh .
|
||||
|
||||
COPY ./test/entrypoint.sh /root/entrypoint.sh
|
||||
RUN chmod +x /root/entrypoint.sh
|
||||
|
||||
ENV ADMIN=""
|
||||
ENV HOST="bsky.social"
|
||||
|
||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||
|
||||
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
bot:
|
||||
image: syui/aios
|
||||
container_name: aibot
|
||||
restart: unless-stopped
|
||||
command: ["aibot", "bot", "-a", "${ADMIN:-syui.ai}"]
|
||||
volumes:
|
||||
- ~/.config/syui/ai/bot:/root/.config/syui/ai/bot
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
@@ -1,4 +1,15 @@
|
||||
#!/bin/zsh
|
||||
|
||||
#aibot l $HANDLE -p $PASSWORD -s $HOST
|
||||
aibot bot -a $ADMIN
|
||||
set -e
|
||||
|
||||
echo "Starting aibot..."
|
||||
echo "ADMIN: ${ADMIN:-not set}"
|
||||
echo "HOST: ${HOST:-bsky.social}"
|
||||
|
||||
# 設定ファイルの存在確認
|
||||
if [ ! -f ~/.config/syui/ai/bot/token.toml ]; then
|
||||
echo "Warning: token.toml not found. Please login first."
|
||||
fi
|
||||
|
||||
# botを起動
|
||||
exec aibot bot -a "${ADMIN}"
|
||||
|
||||
Reference in New Issue
Block a user