Continue working on Galah

This commit is contained in:
t3chn0m4g3
2024-09-24 16:13:16 +02:00
parent e74cc2bae9
commit b66e482837
11 changed files with 69 additions and 20 deletions

View File

@ -22,14 +22,16 @@ COPY --from=builder /root/beelzebub/main /opt/beelzebub/
COPY --from=builder /root/beelzebub/configurations /opt/beelzebub/configurations
#
# Setup user, groups and configs
RUN sed -i "s#logsPath: ./log#logsPath: ./configurations/log/beelzebub.json#g" /opt/beelzebub/configurations/beelzebub.yaml && \
sed -i 's/passwordRegex: "^(root|qwerty|Smoker666|123456|jenkins|minecraft|sinus|alex|postgres|Ly123456)$"/passwordRegex: ".*"/g' /opt/beelzebub/configurations/services/ssh-22.yaml && \
addgroup -g 2000 beelzebub && \
adduser -S -s /bin/ash -u 2000 -D -g 2000 beelzebub && \
mkdir -p /beelzebub/configurations/key \
/beelzebub/configurations/log && \
chown beelzebub:beelzebub -R /opt/beelzebub/configurations && \
chmod 0770 -R /opt/beelzebub/configurations
RUN <<EOF
sed -i "s#logsPath: ./log#logsPath: ./configurations/log/beelzebub.json#g" /opt/beelzebub/configurations/beelzebub.yaml
sed -i 's/passwordRegex: "^(root|qwerty|Smoker666|123456|jenkins|minecraft|sinus|alex|postgres|Ly123456)$"/passwordRegex: ".*"/g' /opt/beelzebub/configurations/services/ssh-22.yaml
addgroup -g 2000 beelzebub
adduser -S -s /bin/ash -u 2000 -D -g 2000 beelzebub
mkdir -p /beelzebub/configurations/key \
/beelzebub/configurations/log
chown beelzebub:beelzebub -R /opt/beelzebub/configurations
chmod 0770 -R /opt/beelzebub/configurations
EOF
#
# Start beelzebub
WORKDIR /opt/beelzebub

View File

@ -22,7 +22,7 @@ services:
environment:
LLMMODEL: "ollama"
LLMHOST: "http://ollama.local:11434/api/chat"
OLLAMAMODEL: "llama3.1"
OLLAMAMODEL: "openchat"
image: "dtagdevsec/beelzebub:24.04"
read_only: true
volumes: