-
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.
- Loading branch information
1 parent
636e1a1
commit 9d46828
Showing
12 changed files
with
82 additions
and
3 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,5 @@ | ||
Package: leek-duck | ||
Version: 0.0.1 | ||
Architecture: all | ||
Maintainer: Kai G Vilbig | ||
Description: LeekDuck scraper |
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,6 @@ | ||
#!/bin/bash | ||
|
||
apt-get update | ||
apt-get install -y nodejs npm | ||
|
||
npm install -g ts-node |
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,9 @@ | ||
#!/bin/bash | ||
|
||
userdel -r leek-duck | ||
if [ "$1" = "0" ]; then | ||
rm -rf /opt/auto/LeekDuck | ||
rm -f /etc/systemd/system/leek-duck.service | ||
fi | ||
systemctl daemon-reload | ||
userdel leek-duck |
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,5 @@ | ||
#!/bin/bash | ||
|
||
useradd --system leek-duck | ||
groupadd auto-services | ||
usermod -a -G auto-services leek-duck |
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,3 @@ | ||
#!/bin/bash | ||
systemctl stop leek-duck | ||
systemctl disable leek-duck |
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,11 @@ | ||
FROM ubuntu:latest | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
sudo \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY /buildDebian.sh / | ||
|
||
ENTRYPOINT /buildDebian.sh |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
docker build -f DebianDockerfile --cache-from debianbuilder -t debianbuilder . | ||
rmdir shared /s /q | ||
mkdir shared\opt\auto\LeekDuck\node_modules | ||
mkdir shared\etc\systemd\system | ||
|
||
xcopy /s node_modules shared\opt\auto\LeekDuck\node_modules | ||
xcopy /s /I DEBIAN shared\DEBIAN | ||
copy connectMango.tsx shared\opt\auto\LeekDuck | ||
copy dbOps.ts shared\opt\auto\LeekDuck | ||
copy duckInferface.ts shared\opt\auto\LeekDuck | ||
copy duckModel.tsx shared\opt\auto\LeekDuck | ||
copy index.ts shared\opt\auto\LeekDuck | ||
copy package-lock.json shared\opt\auto\LeekDuck | ||
copy package.json shared\opt\auto\LeekDuck | ||
copy tsconfig.json shared\opt\auto\LeekDuck | ||
copy leek-duck.service shared\etc\systemd\system\ | ||
|
||
docker run --rm -it -v E:\Projects\Home_auto\checkLeekDuck\shared:/leek-duck_0.0.1_all debianbuilder |
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,5 @@ | ||
chmod -R 755 leek-duck_0.0.1_all/DEBIAN | ||
|
||
dpkg-deb --build leek-duck_0.0.1_all | ||
|
||
mv leek-duck_0.0.1_all.deb leek-duck_0.0.1_all/leek-duck_0.0.1_all.deb |
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,14 @@ | ||
docker build -f DebianDockerfile --cache-from debianbuilder -t debianbuilder . | ||
rmdir shared /s /q | ||
mkdir shared\opt\auto\LeekDuck\node_modules | ||
mkdir shared\etc\systemd\system | ||
|
||
xcopy /s node_modules shared\opt\auto\LeekDuck\node_modules | ||
xcopy /s /I DEBIAN shared\DEBIAN | ||
copy tests\index.ts shared\opt\auto\LeekDuck | ||
copy package-lock.json shared\opt\auto\LeekDuck | ||
copy package.json shared\opt\auto\LeekDuck | ||
copy tsconfig.json shared\opt\auto\LeekDuck | ||
copy leek-duck.service shared\etc\systemd\system\ | ||
|
||
docker run --rm -it -v E:\Projects\Home_auto\checkLeekDuck\shared:/leek-duck_0.0.1_all debianbuilder |
File renamed without changes.
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