Skip to content

Commit

Permalink
Add build_commands_bot.sh entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Jan 29, 2025
1 parent b96b809 commit b52ca59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.sql linguist-detectable=true
*.sql linguist-language=PLpgSQL

task_scheduler.sh eol=lf
./docker/task_scheduler.sh eol=lf
./docker/build_commands_bot.sh eol=lf
4 changes: 3 additions & 1 deletion discord.build-command-bot.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ COPY --from=builder --chown=bot:bot \
/home/bot/build_commands_bot/cmake-build-$CONFIGURE_TARGET/**/*.a* \
/home/bot/

COPY --chown=bot:bot ./docker/build_commands_bot.sh .

RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/bot/

ENTRYPOINT ["./build_commands_bot"]
ENTRYPOINT ["./build_commands_bot.sh"]
6 changes: 6 additions & 0 deletions docker/build_commands_bot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

find . -name "./**/*.so*"
find . -name "./**/*.a*"

./build_commands_bot

0 comments on commit b52ca59

Please sign in to comment.