Skip to content

Commit

Permalink
changed quit to point to a script that calls docker to kill the process
Browse files Browse the repository at this point in the history
  • Loading branch information
lhhunghimself committed Jan 24, 2024
1 parent 6df9de3 commit 1a54a15
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ COPY dev-files/geany/ /root/.config/

COPY scripts/setExecutablesArch.sh /usr/local/bin/setExecutablesArch.sh
RUN setExecutablesArch.sh /usr/local/bin/executables $TARGETARCH
COPY scripts/killBwb.sh /usr/local/bin/killBwb.sh

WORKDIR /data
CMD /startup.sh && /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
Expand Down
Empty file modified executables/quitBwb/quitBwb-linux_arm64
100644 → 100755
Empty file.
Empty file modified executables/quitBwb/quitBwb-linux_armhf
100644 → 100755
Empty file.
Empty file modified executables/quitBwb/quitBwb-mac_x64
100644 → 100755
Empty file.
Empty file modified executables/quitBwb/quitBwb-win_x64.exe
100644 → 100755
Empty file.
Binary file modified executables/quitBwb/resources.neu
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/killBwb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

#find hostname
hostid=$(head -1 /proc/self/cgroup | cut -d/ -f3)
docker kill $hostid

0 comments on commit 1a54a15

Please sign in to comment.