From 0b3bcc5be65a61c1ea94631e6f4d4d5e229f5565 Mon Sep 17 00:00:00 2001 From: piecka Date: Wed, 26 Feb 2025 10:57:14 +0100 Subject: [PATCH] some basics for the good bois --- basics/Dockerfile | 12 ++++ basics/build.sh | 15 +++++ basics/compose.yml | 3 + basics/test.sh | 4 ++ coolApps/bookstack/.env | 5 ++ coolApps/bookstack/compose.yml | 89 +++++++++++++++++++++++++ coolApps/flame/compose.yml | 12 ++++ coolApps/flame/data/config.json | 1 + coolApps/flame/data/customQueries.json | 1 + coolApps/flame/data/db.sqlite | Bin 0 -> 40960 bytes coolApps/flame/data/themes.json | 1 + 11 files changed, 143 insertions(+) create mode 100644 basics/Dockerfile create mode 100755 basics/build.sh create mode 100644 basics/compose.yml create mode 100755 basics/test.sh create mode 100644 coolApps/bookstack/.env create mode 100644 coolApps/bookstack/compose.yml create mode 100644 coolApps/flame/compose.yml create mode 100755 coolApps/flame/data/config.json create mode 100644 coolApps/flame/data/customQueries.json create mode 100644 coolApps/flame/data/db.sqlite create mode 100644 coolApps/flame/data/themes.json diff --git a/basics/Dockerfile b/basics/Dockerfile new file mode 100644 index 0000000..8fca97d --- /dev/null +++ b/basics/Dockerfile @@ -0,0 +1,12 @@ +# Dokumenation: https://docs.docker.com/reference/dockerfile/ + +# FROM debian:trixie-slim +FROM archlinux:latest + +WORKDIR /root/app + +COPY ./test.sh . + +RUN chmod +x test.sh + +ENTRYPOINT ["/bin/bash", "-c", "/root/app/test.sh"] diff --git a/basics/build.sh b/basics/build.sh new file mode 100755 index 0000000..7557f75 --- /dev/null +++ b/basics/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# ─< Check if the given command exists silently >───────────────────────────────────────── +command_exists() { + command -v "$@" >/dev/null 2>&1 +} + +NAME="testimage" +TAG="latest" + +if command_exists docker; then + if [ -e Dockerfile ]; then + docker build -t "${NAME}:${TAG}" . + fi +fi diff --git a/basics/compose.yml b/basics/compose.yml new file mode 100644 index 0000000..f9053ad --- /dev/null +++ b/basics/compose.yml @@ -0,0 +1,3 @@ +services: + app: + build: . diff --git a/basics/test.sh b/basics/test.sh new file mode 100755 index 0000000..2971bc0 --- /dev/null +++ b/basics/test.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "Hallo von Docker" +cat /etc/os-release diff --git a/coolApps/bookstack/.env b/coolApps/bookstack/.env new file mode 100644 index 0000000..aa353a3 --- /dev/null +++ b/coolApps/bookstack/.env @@ -0,0 +1,5 @@ +DATENBANKAPP=mariadb +DATENBANK_PORT=3306 +DATENBANKNAME=bookstack +DATENBANKUSER=db_user +DB_PASSWORD=supersecurepassword diff --git a/coolApps/bookstack/compose.yml b/coolApps/bookstack/compose.yml new file mode 100644 index 0000000..9aa36d5 --- /dev/null +++ b/coolApps/bookstack/compose.yml @@ -0,0 +1,89 @@ +--- + +# This is an example complete example docker-compose.yml +# file for a linuxserver.io based BookStack setup +# using the linuxserver.io MariaDB conatiner. + +# ENSURE YOU PAY ATTENTION TO ALL COMMENTS BELOW. +# Many of the values are just examples, and you WILL +# have to make changes to suit your environment. + +# These containers are maintained by the linuxserver.io +# team, not the official BookStack project. + +# For non-commented options, refer to the linuxserver documentation: +# https://docs.linuxserver.io/images/docker-bookstack/#environment-variables-e + +services: + + # The container for BookStack itself + bookstack: + # You should update the version here to match the latest + # release of BookStack: https://github.com/BookStackApp/BookStack/releases + # You'll change this when wanting to update the version of BookStack used. + image: lscr.io/linuxserver/bookstack:latest + container_name: bookstack + environment: + - PUID=1002 + - PGID=1002 + - TZ=Europe/Berlin + # APP_URL must be set as the base URL you'd expect to access BookStack + # on via the browser. The default shown here is what you might use if accessing + # direct from the browser on the docker host, hence the use of the port as configured below. + - APP_URL=http://localhost:8080 + # APP_KEY must be a unique key. Generate your own by running + # docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey + # You should keep the "base64:" part for the option value. + - APP_KEY=base64:3qjlIoUX4Tw6fUQgZcxMbz6lb8+dAzqpvItqHvahW1c= + + # The below database details are purposefully aligned with those + # configuted for the "mariadb" service below: + - DB_HOST=${DATENBANKAPP} + - DB_PORT=${DATENBANK_PORT} + - DB_DATABASE=${DATENBANKNAME} + - DB_USERNAME=${DATENBANKUSER} + - DB_PASSWORD=${DB_PASSWORD} + volumes: + # You generally only ever need to map this one volume. + # This maps it to a "bookstack_app_data" folder in the same + # directory as this compose config file. + - ./bookstack_app_data:/config + ports: + # This exposes port 6875 for general web access. + # Commonly you'd have a reverse proxy in front of this, + # redirecting incoming requests to this port. + - 8080:80 + restart: unless-stopped + + # The container for the database which BookStack will use to store + # most of its core data/content. + mariadb: + # You should update the version here to match the latest + # main version of the linuxserver mariadb container version: + # https://github.com/linuxserver/docker-mariadb/pkgs/container/mariadb/versions?filters%5Bversion_type%5D=tagged + image: lscr.io/linuxserver/mariadb:11.4.4 + container_name: mariadb + environment: + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + # You may want to change the credentials used below, + # but be aware the latter three options need to align + # with the DB_* options for the BookStack container. + - MYSQL_ROOT_PASSWORD=mysupersecretrootpassword + - MYSQL_DATABASE=bookstack + - MYSQL_USER=bookstack + - MYSQL_PASSWORD=bookstack8432 + volumes: + # You generally only ever need to map this one volume. + # This maps it to a "bookstack_db_data" folder in the same + # directory as this compose config file. + - ./bookstack_db_data:/config + + # These ports are commented out as you don't really need this port + # exposed for normal use, mainly only if connecting direct the the + # database externally. Otherwise, this risks exposing access to the + # database when not needed. + # ports: + # - 3306:3306 + restart: unless-stopped diff --git a/coolApps/flame/compose.yml b/coolApps/flame/compose.yml new file mode 100644 index 0000000..50629da --- /dev/null +++ b/coolApps/flame/compose.yml @@ -0,0 +1,12 @@ +services: + flame: + image: pawelmalak/flame + container_name: flame + volumes: + - ./data:/app/data + # - /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration + ports: + - 5005:5005 + environment: + - PASSWORD=supersecurepassword + restart: unless-stopped diff --git a/coolApps/flame/data/config.json b/coolApps/flame/data/config.json new file mode 100755 index 0000000..27dbcca --- /dev/null +++ b/coolApps/flame/data/config.json @@ -0,0 +1 @@ +{"WEATHER_API_KEY":"","lat":0,"long":0,"isCelsius":true,"customTitle":"Flame","pinAppsByDefault":true,"pinCategoriesByDefault":true,"hideHeader":false,"useOrdering":"createdAt","appsSameTab":false,"bookmarksSameTab":false,"searchSameTab":false,"hideApps":false,"hideCategories":false,"hideSearch":false,"defaultSearchProvider":"l","secondarySearchProvider":"d","dockerApps":false,"dockerHost":"localhost","kubernetesApps":false,"unpinStoppedApps":false,"useAmericanDate":false,"disableAutofocus":false,"greetingsSchema":"Good evening!;Good afternoon!;Good morning!;Good night!","daySchema":"Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday","monthSchema":"January;February;March;April;May;June;July;August;September;October;November;December","showTime":false,"defaultTheme":"tron","isKilometer":true,"weatherData":"cloud","hideDate":false} \ No newline at end of file diff --git a/coolApps/flame/data/customQueries.json b/coolApps/flame/data/customQueries.json new file mode 100644 index 0000000..d068a2b --- /dev/null +++ b/coolApps/flame/data/customQueries.json @@ -0,0 +1 @@ +{"queries":[]} \ No newline at end of file diff --git a/coolApps/flame/data/db.sqlite b/coolApps/flame/data/db.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c91f87496870b7db1448ab517699fff4ae7ff7b5 GIT binary patch literal 40960 zcmeI(Z*SW~90zbaY5r9NZxfYO^}%kBQmf6BZd4P`2(1fIleEj6X_b%?H@R(Qj-A<# zx{U{j(mkDczysa`5)v-}3GtAZ0OBPep7I2V-#M8ZM{N*l#e@25>6)B>cd_qtXD4@Q z9^9{60cVe0Z(s)Ou5?Y3W$8o4BuQGLv`8sKDMd-4v_R?YCck|$=W$88z58{s@Q0Mk zzmb$3<;UW8`8V&bzSCO#rJxnGIW-Z200bZa0SG`KAp*yrW^?Mwiu_s$%tMBof*}S>N@LA_IBB7*Xnm!t!d~V>n*n5sx_*u1GcLluxi`bt2L=wLvI@E ztjk{n+;dF3Zu&uc*f#^-We=;Ztxu}0)jOM;8Wjon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