some basics for the good bois

This commit is contained in:
piecka 2025-02-26 10:57:14 +01:00
parent ceb343f038
commit 0b3bcc5be6
11 changed files with 143 additions and 0 deletions

12
basics/Dockerfile Normal file
View file

@ -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"]

15
basics/build.sh Executable file
View file

@ -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

3
basics/compose.yml Normal file
View file

@ -0,0 +1,3 @@
services:
app:
build: .

4
basics/test.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
echo "Hallo von Docker"
cat /etc/os-release

5
coolApps/bookstack/.env Normal file
View file

@ -0,0 +1,5 @@
DATENBANKAPP=mariadb
DATENBANK_PORT=3306
DATENBANKNAME=bookstack
DATENBANKUSER=db_user
DB_PASSWORD=supersecurepassword

View file

@ -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

View file

@ -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

View file

@ -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}

View file

@ -0,0 +1 @@
{"queries":[]}

Binary file not shown.

View file

@ -0,0 +1 @@
{"themes":[{"name":"blackboard","colors":{"background":"#1a1a1a","primary":"#FFFDEA","accent":"#5c5c5c"},"isCustom":false},{"name":"gazette","colors":{"background":"#F2F7FF","primary":"#000000","accent":"#5c5c5c"},"isCustom":false},{"name":"espresso","colors":{"background":"#21211F","primary":"#D1B59A","accent":"#4E4E4E"},"isCustom":false},{"name":"cab","colors":{"background":"#F6D305","primary":"#1F1F1F","accent":"#424242"},"isCustom":false},{"name":"cloud","colors":{"background":"#f1f2f0","primary":"#35342f","accent":"#37bbe4"},"isCustom":false},{"name":"lime","colors":{"background":"#263238","primary":"#AABBC3","accent":"#aeea00"},"isCustom":false},{"name":"white","colors":{"background":"#ffffff","primary":"#222222","accent":"#dddddd"},"isCustom":false},{"name":"tron","colors":{"background":"#242B33","primary":"#EFFBFF","accent":"#6EE2FF"},"isCustom":false},{"name":"blues","colors":{"background":"#2B2C56","primary":"#EFF1FC","accent":"#6677EB"},"isCustom":false},{"name":"passion","colors":{"background":"#f5f5f5","primary":"#12005e","accent":"#8e24aa"},"isCustom":false},{"name":"chalk","colors":{"background":"#263238","primary":"#AABBC3","accent":"#FF869A"},"isCustom":false},{"name":"paper","colors":{"background":"#F8F6F1","primary":"#4C432E","accent":"#AA9A73"},"isCustom":false},{"name":"neon","colors":{"background":"#091833","primary":"#EFFBFF","accent":"#ea00d9"},"isCustom":false},{"name":"pumpkin","colors":{"background":"#2d3436","primary":"#EFFBFF","accent":"#ffa500"},"isCustom":false},{"name":"onedark","colors":{"background":"#282c34","primary":"#dfd9d6","accent":"#98c379"},"isCustom":false},{"name":"mint","colors":{"background":"#282525","primary":"#d9d9d9","accent":"#50fbc2"},"isCustom":false}]}