Skip to content
Snippets Groups Projects
Verified Commit e8087035 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(synadm): Add synadm command image to administrate synapse

This patch adds a new container image for synadm, which should help to
administrate synapse using a CLI.
parent e80a732d
No related branches found
No related tags found
No related merge requests found
Pipeline #15053 failed
......@@ -36,6 +36,7 @@
- [Dovecot](images/dovecot.md)
- [Koolbox](images/koolbox.md)
- [Postfix](images/postfix.md)
- [synadm](images/synadm.md)
---
......
../../../images/synadm/README.md
\ No newline at end of file
......@@ -5,6 +5,7 @@
- dovecot
- postfix
- koolbox
- synadm
container-build:
......
release=0.1.0
FROM docker.io/library/python:3
RUN true \
&& pip3 install synadm \
&& mkdir -p /workspace \
&& true
WORKDIR /workspace
ENTRYPOINT ["/usr/local/bin/synadm"]
.DEFAULT_GOAL := help
include ../.utils/container-build.mk
include ../../utils/help.mk
.PHONY: preflight
preflight:
# Check for required tools
command -v podman > /dev/null
.PHONY: install
install: preflight build ## Install koolbox, the Kubernetes Toolbox for SI-Infrastructure
install -m 755 ./synadm ~/bin/synadm
Synadm
===
Simple container providing the [synadm](https://github.com/JOJ0/synadm) CLI with nicely isolated from the system.
Requirements
---
Have podman installed. And in best case running [Fedora Workstation](https://getfedora.org/en/workstation/) or [Silverblue](https://silverblue.fedoraproject.org/).
Installation
---
In order to install it, you just build the container yourself and get a neat little shell script installed in `~/bin/`
```
make install REGISTRY_HOST=quay.io USERNAME=shivering-isles
synadm --help
```
#!/bin/bash
set -x
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
SYNADM_CONFIG_HOME="${XDG_CONFIG_HOME}/synadm"
mkdir -p "$SYNADM_CONFIG_HOME"
touch "$SYNADM_CONFIG_HOME/synadm.yaml"
podman run -it --rm -v "${SYNADM_CONFIG_HOME}:/root/.config/:z" quay.io/shivering-isles/synadm:latest $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment