Skip to content

Commit

Permalink
feat: adicionando o start.sh dos comandos necessarios para rodar o bo…
Browse files Browse the repository at this point in the history
…tpress
  • Loading branch information
GZaranza committed Aug 6, 2024
1 parent 6ca6a8c commit 53f7311
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
4 changes: 2 additions & 2 deletions data/bots/chat_bp/bot.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}
},
"messaging": {
"id": "cdac34f1-a3ae-4124-83d0-6311716a5b1e",
"token": "mvcApAjMn1Y/JFT08J04ergkIHBP8d4mF4Uzl4tnK7TL3g077yG8Xu1zRGjrLFCVpG5UZ57EA0TfeT5ZAguxZtfS"
"id": "9eecfeb7-f3c4-4798-9744-8cdd7cac97c4",
"token": "pm5c4+DLUmtQ30GVlpZ/AAFqLYBCIplozTz3i+ZTFKbyGf9UevKozVdtRWuycG2C1HUJPreEuKJEBAWKzOHAE9gX"
}
}
4 changes: 2 additions & 2 deletions data/bots/chatbot_botao/bot.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}
},
"messaging": {
"id": "fc662f1a-f3b9-4f87-822c-ce607b74ed30",
"token": "pALm9VIKr10Gw4O8LSHF4X4CMDZKPNZ5/iL2uXBDQyfPeOWEEsNAyk00CQrWGKP6C6IGZYfCgufqkR14Zk34ThAs"
"id": "cfbe7bdc-ddbd-4137-b0f4-3c8f9938bd45",
"token": "AgILGns0jD2oLihNkKw/PZkUxR7miX5A2Xk4Fkp1WaCJwp0ShAUzo2DauqpE3atkWXuSF5afioH4huSsOH/DWZC2"
}
}
2 changes: 1 addition & 1 deletion data/global/botpress.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
},
"superAdmins": [
{
"email": "chatbotbrasilparticipativo@gmail.com",
"email": "admin@email.com",
"strategy": "default"
}
],
Expand Down
3 changes: 2 additions & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: bash -c "./duckling & ./bp lang --offline --dim 100 --langDir /botpress & ./bp"
#command: bash -c "./duckling & ./bp lang --offline --dim 100 --langDir /botpress & ./bp"
container_name: botpress

ports:
Expand All @@ -19,6 +19,7 @@ services:
restart: always
volumes:
- ./data:/botpress/data


postgres:
image: postgres:16.2
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: bash -c "./duckling & ./bp lang --offline --dim 100 --langDir /botpress & ./bp"
#command: bash -c "./duckling & ./bp lang --offline --dim 100 --langDir /botpress & ./bp"
container_name: botpress

ports:
Expand Down
6 changes: 4 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y wget && \
RUN cd ..
# Copie os arquivos de configuração para o contêiner
COPY ./data /botpress/data

COPY ./start.sh /botpress/
# Defina as variáveis de ambiente
ARG POSTGRES_USER
ARG POSTGRES_PASSWORD
Expand All @@ -32,5 +32,7 @@ EXPOSE 3000
EXPOSE 3100
EXPOSE 8000

RUN chmod +x /botpress/start.sh

# Comando para iniciar o Botpress com Duckling e o serviço de linguagem
CMD ["bash", "-c", "./duckling & ./bp lang --offline --dim 100 --langDir /botpress & ./bp"]
CMD ["/botpress/start.sh"]
6 changes: 6 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash


./duckling &
./bp lang --offline --dim 100 --langDir /botpress &
./bp

0 comments on commit 53f7311

Please sign in to comment.