[TUTORIAL] Instalacja SUPLA-SCRIPTS (Sposób 1)

User avatar
klimasstudio
Posts: 1273
Joined: Wed Aug 28, 2019 9:35 pm
Location: localhost

Post

Image
Dzisiaj zainstalujemy sobie serwer SUPLA-SCRIPTS przy użyciu Dockera i Portainera.

Tytuł wątku jest opisany jako (Sposób 1) ponieważ będzie sposób 2 który ograniczy się do wykonania komendy pobierającej z githuba podstawowe pliki a reszta będzie to kopiuj wklej do Stacka i dodanie enviroments. Wszystko tak abyśmy mogli z poziomu Portainera edytować konfigurację Stacka i podglądać logi.

LINK: https://klimastech.eu.org/supla-instala ... a-scripts/
Więc chodź OSUPLUJE Ci dom :mrgreen:

Druk 3D - > https://klimastech.eu.org/druk-3d
edm
Posts: 677
Joined: Mon Jan 15, 2018 6:18 pm
Been thanked: 2 times

Post

Wow :o Tego brakowało.
Spokojnie poczekam za Sposobem 2 i wtedy raczej przejdę ze wszystkim z Raspberry pi 3B+ na mini pc x86 Intel YL-N3160-V1 8GB Rami, dysk SSD gdzie póki co testuję HA i Supla po Twojemu.
Miłe zaskoczenie że watomierz pokazuje zużycie tego mini pc w przedziale 6W-7W. Dodam że jest tam karta wifi Intel Corporation Wireless 7260 (Dual Band Wireless-AC 7260) przez którą odbywa się komunikacja. Może gdy ją wyciągnę zużycie jeszcze spadnie.
Wziąłem udział w Supla Offline Party 2023 :D
User avatar
klimasstudio
Posts: 1273
Joined: Wed Aug 28, 2019 9:35 pm
Location: localhost

Post

edm wrote: Sun Feb 12, 2023 8:56 pm Wow :o Tego brakowało.
Spokojnie poczekam za Sposobem 2 i wtedy raczej przejdę ze wszystkim z Raspberry pi 3B+ na mini pc x86 Intel YL-N3160-V1 8GB Rami, dysk SSD gdzie póki co testuję HA i Supla po Twojemu.
Miłe zaskoczenie że watomierz pokazuje zużycie tego mini pc w przedziale 6W-7W. Dodam że jest tam karta wifi Intel Corporation Wireless 7260 (Dual Band Wireless-AC 7260) przez którą odbywa się komunikacja. Może gdy ją wyciągnę zużycie jeszcze spadnie.
Tym sposobem też będziesz mógł podglądać logi i mieć dostęp do bazy danych. Konfigurujesz tylko raz (teoretycznie).

Sposób drugi będzie jak rozwiąże problem z folderami i volumenami. Wszystko tak aby mega ułatwić wszystko. Muszę rozgryźć co gdzie w jakiej ścieżce powinno być.
Więc chodź OSUPLUJE Ci dom :mrgreen:

Druk 3D - > https://klimastech.eu.org/druk-3d
cinas
Posts: 650
Joined: Sun Aug 14, 2022 6:59 am
Location: Kaczory
Has thanked: 3 times
Been thanked: 7 times

Post

Chcę postawić Supla Scripts ale wywala mi na pobieraniu plików - mam gdzieś błąd lub niewiedza
Stawiam na to terminalu HP T630
Procek
vendor_id : AuthenticAMD
cpu family : 21
model : 96
model name : AMD Embedded G-Series GX-420GI Radeon R7E

System Ubuntu 20.04.3 LTS x86_64
w /etc/apt/sources.list mam
...
# newer versions of the distribution.
deb http://pl.archive.ubuntu.com/ubuntu focal main restricted
# deb-src http://pl.archive.ubuntu.com/ubuntu focal main restricted
...

A po uruchomieniu

./suplascripts.sh start
___ _ _ ___ _ _
/ __| | | | _ \ | /_\
\__ \ |_| | _/ |__ / _ \
|___/\___/|_| |____/_/ \_\
/ __| __ _ _(_)_ __| |_ ___
\__ \/ _| '_| | '_ \ _(_-<
|___/\__|_| |_| .__/\__/__/
|_| by @fracz

Starting SUPLA Scripts containers
[+] Running 9/9
✔ suplascripts-db 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 13.9s
✔ 1bc677758ad7 Pull complete 4.5s
✔ 196e1740aea4 Pull complete 4.7s
✔ 3d4df0997938 Pull complete 6.0s
✔ 9fa4e4184824 Pull complete 6.2s
✔ a134c78ed13c Pull complete 6.3s
✔ d7cd475067d8 Pull complete 11.2s
✔ 348ae7ff2d74 Pull complete 11.4s
✔ 2e83ab58cb77 Pull complete 11.6s
[+] Building 4.7s (7/12)
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.70kB 0.0s
=> [internal] load metadata for docker.io/library/php:7.1.27-apache-stretch 1.1s
=> [internal] load build context 0.0s
=> => transferring context: 1.52kB 0.0s
=> [1/8] FROM docker.io/library/php:7.1.27-apache-stretch@sha256:0addb7cb506f408403aa172052e3e462f6d6d9f9bcf46efddf66ecc77e3f8fee 0.0s
=> CACHED [2/8] WORKDIR /var/www 0.0s
=> ERROR [3/8] RUN apt-get update && apt-get install -y --no-install-recommends libicu-dev libpq-dev ca-certificates ssl-cert libcurl4-gnutls-dev git unzip mysql-client su 3.5s
------
> [3/8] RUN apt-get update && apt-get install -y --no-install-recommends libicu-dev libpq-dev ca-certificates ssl-cert libcurl4-gnutls-dev git unzip mysql-client supervisor cron wget zlib1g-dev && update-ca-certificates && docker-php-ext-install pdo_mysql opcache curl zip && apt-get autoremove && rm -r /var/lib/apt/lists/*:
#0 0.896 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
#0 0.902 Ign:2 http://deb.debian.org/debian stretch InRelease
#0 0.929 Ign:3 http://security.debian.org/debian-security stretch/updates Release
#0 0.941 Ign:4 http://deb.debian.org/debian stretch-updates InRelease
#0 0.961 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.973 Ign:6 http://deb.debian.org/debian stretch Release
#0 0.994 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 1.008 Ign:8 http://deb.debian.org/debian stretch-updates Release
#0 1.028 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 1.047 Ign:9 http://deb.debian.org/debian stretch/main all Packages
#0 1.060 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 1.078 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
#0 1.091 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 1.110 Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
#0 1.132 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 1.142 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 1.165 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 1.174 Ign:9 http://deb.debian.org/debian stretch/main all Packages
#0 1.197 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 1.206 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
#0 1.229 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 1.238 Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
#0 1.260 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 1.277 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 1.293 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 1.314 Ign:9 http://deb.debian.org/debian stretch/main all Packages
#0 1.325 Err:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 1.325 404 Not Found [IP: 151.101.194.132 80]
#0 1.344 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
#0 1.378 Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
#0 1.441 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 1.502 Ign:9 http://deb.debian.org/debian stretch/main all Packages
#0 1.532 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
#0 1.565 Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
#0 1.598 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 1.636 Ign:9 http://deb.debian.org/debian stretch/main all Packages
#0 1.672 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages
#0 1.712 Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
#0 1.745 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 1.777 Ign:9 http://deb.debian.org/debian stretch/main all Packages
#0 1.837 Err:10 http://deb.debian.org/debian stretch/main amd64 Packages
#0 1.837 404 Not Found
#0 1.870 Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages
#0 1.909 Err:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 1.909 404 Not Found
#0 1.931 Reading package lists...
#0 1.959 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
#0 1.959 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
#0 1.959 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
#0 1.959 E: Failed to fetch http://security.debian.org/debian-secur ... 4/Packages 404 Not Found [IP: 151.101.194.132 80]
#0 1.959 E: Failed to fetch http://deb.debian.org/debian/dists/stre ... 4/Packages 404 Not Found
#0 1.959 E: Failed to fetch http://deb.debian.org/debian/dists/stre ... 4/Packages 404 Not Found
#0 1.959 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends libicu-dev libpq-dev ca-certificates ssl-cert libcurl4-gnutls-dev git unzip mysql-client supervisor cron wget zlib1g-dev && update-ca-certificates && docker-php-ext-install pdo_mysql opcache curl zip && apt-get autoremove && rm -r /var/lib/apt/lists/*" did not complete successfully: exit code: 100
edm
Posts: 677
Joined: Mon Jan 15, 2018 6:18 pm
Been thanked: 2 times

Post

cinas wrote: Sun May 14, 2023 8:15 pm Chcę postawić Supla Scripts ale wywala mi na pobieraniu plików - mam gdzieś błąd lub niewiedza
...
Poradziłeś sobie z tym?
Stawiam na raspberry pi 3B+ system 2023-05-03-raspios-bullseye-armhf-lite.img
i mam podobnie :shock:.
Kilka miesięcy temu też instalowałem i nie było żadnych problemów.
Wziąłem udział w Supla Offline Party 2023 :D
cinas
Posts: 650
Joined: Sun Aug 14, 2022 6:59 am
Location: Kaczory
Has thanked: 3 times
Been thanked: 7 times

Post

Nie, nie miałem czasu aby usiąść tematu
edm
Posts: 677
Joined: Mon Jan 15, 2018 6:18 pm
Been thanked: 2 times

Post

cinas wrote: Sun May 21, 2023 8:49 am Nie, nie miałem czasu aby usiąść tematu
Swoje zmagania z tym problemem opisałem tutaj viewtopic.php?t=13176
Przewiduję najgorszy scenariusz i chyba tylko @fracz może pomóc?.
Wziąłem udział w Supla Offline Party 2023 :D
User avatar
lesny8
Posts: 3132
Joined: Mon Dec 11, 2017 9:43 pm
Has thanked: 10 times
Been thanked: 9 times

Post

cinas wrote: Sun May 14, 2023 8:15 pm Chcę postawić Supla Scripts ale wywala mi na pobieraniu plików - mam gdzieś błąd lub niewiedza
Stawiam na to terminalu HP T630
Rozwiązanie problemu
viewtopic.php?p=152328#p152328
SOP 2023 :heavy_check_mark:
SOP 2024 :heavy_check_mark:
Czekam na kolejne Supla Offline Party :upside_down_face:
🧩: 🔑cz->b ⛴️+ila

Return to “FAQ / Jak to zrobić”