automated terminal push
This commit is contained in:
0
5ed8bb34-a0d2-44e6-91c4-9505f99306c1.devvv
Normal file
0
5ed8bb34-a0d2-44e6-91c4-9505f99306c1.devvv
Normal file
@@ -1,4 +1,4 @@
|
|||||||
FROM softwareshinobi/valorant-digital-desktop:pristine AS desktopBase
|
FROM softwareshinobi/shinobi-academy-desktop AS desktopBase
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
@@ -40,6 +40,10 @@ COPY ping.script /tmp/ping.bash
|
|||||||
|
|
||||||
RUN chmod +x /tmp/ping.bash
|
RUN chmod +x /tmp/ping.bash
|
||||||
|
|
||||||
|
COPY ping2.script /tmp/ping2.bash
|
||||||
|
|
||||||
|
RUN chmod +x /tmp/ping2.bash
|
||||||
|
|
||||||
RUN ls -lha /tmp/
|
RUN ls -lha /tmp/
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
||||||
- /tmp/volumes/yankee/desktop:/home/shinobi
|
- /tmp/v2olumes/yankee/desktop:/root
|
||||||
|
|
||||||
hostname: yankeedownload
|
hostname: rootsitaution
|
||||||
|
|
||||||
domainname: desktop.yankee.embaNET.online
|
domainname: desktop.yankee.embaNET.online
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ services:
|
|||||||
|
|
||||||
USER_GID: 1000
|
USER_GID: 1000
|
||||||
|
|
||||||
USER: yankee
|
USER: root
|
||||||
|
|
||||||
PASSWORD: yankee
|
PASSWORD: yankee
|
||||||
|
|
||||||
|
|||||||
6
cronfile
6
cronfile
@@ -1,3 +1,7 @@
|
|||||||
* * * * * root /tmp/ping.bash >> /var/log/cron.log 2>&1
|
* * * * * root /tmp/ping.bash >> /var/log/cron.log 2>&1
|
||||||
|
|
||||||
* * * * * /tmp/ping.bash >> /var/log/cron.log 2>&1
|
* * * * * python3 /yankee-gnome-fire-consumer/consumer.py >> /var/log/yankee-downloader.log 2>&1
|
||||||
|
|
||||||
|
* * * * * /tmp/ping2.bash >> /var/log/cron.log 2>&1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3
ping2.script
Normal file
3
ping2.script
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
touch /tmp/`date +%Y_%m_%d_%H_%M_%S`.22222dat
|
||||||
|
|
||||||
|
ls -lha /tmp/*dat
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "##"
|
echo "##"
|
||||||
echo "## launch > yankee > downloader node provisioning"
|
echo "## launch > yankee > downloader node provision"
|
||||||
echo "##"
|
echo "##"
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
@@ -14,34 +14,4 @@ pip install stomp.py
|
|||||||
|
|
||||||
pip install selenium
|
pip install selenium
|
||||||
|
|
||||||
## for rest situations
|
|
||||||
|
|
||||||
pip install requests
|
pip install requests
|
||||||
|
|
||||||
##
|
|
||||||
|
|
||||||
####
|
|
||||||
|
|
||||||
cd /
|
|
||||||
|
|
||||||
git clone https://code.yankee.embanet.online/yankee/yankee-gnome-fire-consumer.git
|
|
||||||
|
|
||||||
chmod 777 yankee-gnome-fire-consumer -R
|
|
||||||
|
|
||||||
cd yankee-gnome-fire-consumer
|
|
||||||
|
|
||||||
chmod +x *.bash
|
|
||||||
|
|
||||||
chmod +x *.sh
|
|
||||||
|
|
||||||
bash provision.bash
|
|
||||||
|
|
||||||
pppwd=`pwd`
|
|
||||||
|
|
||||||
echo " dir / "$pppwd
|
|
||||||
|
|
||||||
##echo "python3 $pppwd/consumer.py" | at now + 1 minutes
|
|
||||||
|
|
||||||
##echo "/yankee/go.sh" | at now + 10 minutes
|
|
||||||
|
|
||||||
####
|
|
||||||
@@ -94,6 +94,26 @@ service cron status
|
|||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
|
|
||||||
|
####
|
||||||
|
|
||||||
|
cd /
|
||||||
|
|
||||||
|
rm -rf /yankee-gnome-fire-consumer
|
||||||
|
|
||||||
|
git clone https://code.yankee.embanet.online/yankee/yankee-gnome-fire-consumer.git
|
||||||
|
|
||||||
|
chmod 777 yankee-gnome-fire-consumer -R
|
||||||
|
|
||||||
|
cd yankee-gnome-fire-consumer
|
||||||
|
|
||||||
|
chmod +x *.bash
|
||||||
|
|
||||||
|
chmod +x *.sh
|
||||||
|
|
||||||
|
####
|
||||||
|
|
||||||
|
|
||||||
exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf
|
exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf
|
||||||
|
|
||||||
touch /tmp/prince-trunks-has-returned-after
|
touch /tmp/prince-trunks-has-returned-after
|
||||||
|
|||||||
Reference in New Issue
Block a user