forked from shamhi/TapSwapBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request shamhi#84 from headNbyte/main
fix
- Loading branch information
Showing
12 changed files
with
153 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
webdriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM python:3.10.11-alpine3.18 | ||
|
||
WORKDIR app/ | ||
WORKDIR /app | ||
|
||
COPY requirements.txt requirements.txt | ||
COPY . /app | ||
|
||
RUN pip3 install --upgrade pip setuptools wheel | ||
RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
RUN apk add --no-cache firefox | ||
|
||
CMD ["python3", "main.py", "-a", "2"] | ||
CMD ["python3", "main.py", "-a", "2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
version: '3' | ||
services: | ||
bot: | ||
tapswap-bot: | ||
container_name: 'TapSwapBot' | ||
build: | ||
context: . | ||
stop_signal: SIGINT | ||
restart: unless-stopped | ||
command: "python3 main.py -a 2" | ||
volumes: | ||
- .:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Update package list and install prerequisites | ||
echo "Updating package list and installing prerequisites..." | ||
sudo apt update | ||
sudo apt install -y software-properties-common | ||
|
||
# Add Mozilla Team PPA | ||
echo "Adding Mozilla Team PPA..." | ||
sudo add-apt-repository -y ppa:mozillateam/ppa | ||
|
||
# Set package pinning preferences | ||
echo "Setting package pinning preferences..." | ||
sudo tee /etc/apt/preferences.d/mozilla-firefox <<EOF | ||
Package: * | ||
Pin: release o=LP-PPA-mozillateam | ||
Pin-Priority: 1001 | ||
EOF | ||
|
||
# Configure unattended upgrades for Mozilla Team PPA | ||
echo "Configuring unattended upgrades for Mozilla Team PPA..." | ||
sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox <<EOF | ||
Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:\${distro_codename}"; | ||
EOF | ||
|
||
# Update package list again and install Firefox | ||
echo "Updating package list and installing Firefox..." | ||
sudo apt update | ||
sudo apt install -y firefox | ||
|
||
echo "Installation complete!" |
Binary file not shown.