From 8778b2719c063b3b91233deb30af0ddb830c2e87 Mon Sep 17 00:00:00 2001 From: apb Date: Sun, 19 Dec 2021 22:40:24 +0000 Subject: [PATCH] [add] wsdd --- README.md | 4 ++-- crontab-ui/docker-compose.yml | 2 +- gitea/README.md | 6 ++++-- gitea/backup_gitea.sh | 8 ++++---- piwigo/README.md | 6 ++++++ piwigo/piwigo-db.env | 2 +- plantuml/DockerFile | 7 +++++++ wsdd/.gitignore | 1 + wsdd/DockerFile | 24 ++++++++++++++++++++++++ wsdd/README.md | 1 + wsdd/docker-compose.yml | 9 +++++++++ 11 files changed, 60 insertions(+), 10 deletions(-) create mode 100644 plantuml/DockerFile create mode 100644 wsdd/.gitignore create mode 100644 wsdd/DockerFile create mode 100644 wsdd/README.md create mode 100644 wsdd/docker-compose.yml diff --git a/README.md b/README.md index d34a0fb..654bdf2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# docks +# thedocks set of docker compose files 1. [tvheadend](/tvheadend) -1. [wireguard](/wireguard) +1[wireguard](/wireguard) 1. Item diff --git a/crontab-ui/docker-compose.yml b/crontab-ui/docker-compose.yml index 42a3bf1..78e89d9 100644 --- a/crontab-ui/docker-compose.yml +++ b/crontab-ui/docker-compose.yml @@ -6,5 +6,5 @@ services: image: donaldrich/crontab-ui container_name: crontab-ui ports: - - 8000:8000 + - 8003:8000 restart: unless-stopped diff --git a/gitea/README.md b/gitea/README.md index e33d255..62918f9 100644 --- a/gitea/README.md +++ b/gitea/README.md @@ -1,5 +1,7 @@ # Gitea -##backup scripts +## backup scripts -from https://gist.github.com/sinbad/4bb771b916fa8facaf340af3fc49ee43 \ No newline at end of file +from https://gist.github.com/sinbad/4bb771b916fa8facaf340af3fc49ee43 + +### backup_gitea.sh \ No newline at end of file diff --git a/gitea/backup_gitea.sh b/gitea/backup_gitea.sh index 4486a1f..aded7ab 100644 --- a/gitea/backup_gitea.sh +++ b/gitea/backup_gitea.sh @@ -18,13 +18,13 @@ set -e # Gitea config / SQL DB backup rotation -CONTAINER=gitea_server_1 +CONTAINER=gitea # Backup dir from our perspective -HOST_BACKUP_DIR="/volume1/backups/gitea" +HOST_BACKUP_DIR="/mnt/drive/backups" # Git repo dir from our perspective (it's outside container) -HOST_GIT_REPO_DIR="/volume1/docker/gitea/git/repositories" +HOST_GIT_REPO_DIR="/mnt/drive/docker/thedocks/gitea/data/git/repositories" # Git LFS dir from our perspective (it's outside container) -HOST_GIT_LFS_DIR="/volume1/docker/gitea/git/lfs" +HOST_GIT_LFS_DIR="/mnt/drive/docker/thedocks/gitea/data/git/lfs" # Where we work on things (host and container) TEMP_DIR="/tmp" diff --git a/piwigo/README.md b/piwigo/README.md index 9fde21f..c50125c 100644 --- a/piwigo/README.md +++ b/piwigo/README.md @@ -1,6 +1,7 @@ # piwigo notes ##Setup + 1. Ensure empty folders `config` and `gallery`. 1. run `docker-compose up` 1. Activate plugins: @@ -17,6 +18,11 @@ 1. `mount --bind /mnt/media/pictures/ /home/odroid/thedocks/piwigo/gallery/galleries/picassa` 1. run `Presync AutoRename` 1. Sync +###Source +``` +root@n2-plus:/mnt/media# +rsync -av root@odroid-n2.local:/mnt/drive/backups/velvet/PicasaStarter/pictures/Pictures/ pictures/ --delete +``` ## Based on https://github.com/jkirk/docker-piwigo/blob/main/docker-compose.yml diff --git a/piwigo/piwigo-db.env b/piwigo/piwigo-db.env index 8a54bef..9c4b362 100644 --- a/piwigo/piwigo-db.env +++ b/piwigo/piwigo-db.env @@ -2,4 +2,4 @@ MARIADB_ROOT_PASSWORD=uksapl MARIADB_DATABASE=thedb MARIADB_USER=piwigo -MARIADB_PASSWORD=piwigo \ No newline at end of file +MARIADB_PASSWORD=piwigo diff --git a/plantuml/DockerFile b/plantuml/DockerFile new file mode 100644 index 0000000..852dfea --- /dev/null +++ b/plantuml/DockerFile @@ -0,0 +1,7 @@ +FROM openjdk:8u181-jdk-alpine3.8 +LABEL maintainer="Rob Bell" +ARG PLANTUML_VERSION=1.2020.0 +RUN apk add --no-cache graphviz wget ttf-dejavu && \ + wget "http://sourceforge.net/projects/plantuml/files/plantuml.${PLANTUML_VERSION}.jar/download" -O plantuml.jar +ENTRYPOINT ["java", "-jar", "plantuml.jar"] +CMD ["-p"] \ No newline at end of file diff --git a/wsdd/.gitignore b/wsdd/.gitignore new file mode 100644 index 0000000..94f7b77 --- /dev/null +++ b/wsdd/.gitignore @@ -0,0 +1 @@ +# ignore diff --git a/wsdd/DockerFile b/wsdd/DockerFile new file mode 100644 index 0000000..74d1011 --- /dev/null +++ b/wsdd/DockerFile @@ -0,0 +1,24 @@ +FROM alpine:latest as build + +LABEL org.label-schema.build-date=$BUILD_DATE \ + org.label-schema.name="wsdd" \ + org.label-schema.description=" Web Service Discovery host daemon (wsdd) in a docker container " \ + org.label-schema.url="https://guillaumedsde.gitlab.io/docker-wsdd/" \ + org.label-schema.vcs-ref="$VCS_REF" \ + org.label-schema.version="$VERSION" \ + org.label-schema.vcs-url="https://github.com/guillaumedsde/docker-wsdd" \ + org.label-schema.vendor="guillaumedsde" \ + org.label-schema.schema-version="1.0" + +ARG VERSION=master + +WORKDIR / + +RUN wget "https://raw.githubusercontent.com/christgau/wsdd/${VERSION}/src/wsdd.py" -O /wsdd \ + && chmod 755 /wsdd + +FROM gcr.io/distroless/python3 + +COPY --from=build /wsdd /usr/bin/wsdd + +ENTRYPOINT [ "python", "/usr/bin/wsdd" ] \ No newline at end of file diff --git a/wsdd/README.md b/wsdd/README.md new file mode 100644 index 0000000..ef68230 --- /dev/null +++ b/wsdd/README.md @@ -0,0 +1 @@ +🐋 Web Service Discovery host daemon (wsdd) diff --git a/wsdd/docker-compose.yml b/wsdd/docker-compose.yml new file mode 100644 index 0000000..c05a970 --- /dev/null +++ b/wsdd/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + wsdd: + wsdd: wsdd:0.0.0 + build: . + container_name: wsdd-docker + restart: unless-stopped +