profanity: First and Ugly version
of a profanity image w/ OMEMO support
This commit is contained in:
parent
062e39cdb1
commit
6b448af6cb
5 changed files with 54 additions and 0 deletions
|
@ -15,4 +15,7 @@ services:
|
|||
build: ./torrelay
|
||||
image: elfrinjo/torrelay:latest
|
||||
|
||||
profanity:
|
||||
build: ./profanity
|
||||
image: elfrinjo/profanity:latest
|
||||
|
||||
|
|
34
profanity/Dockerfile
Normal file
34
profanity/Dockerfile
Normal file
|
@ -0,0 +1,34 @@
|
|||
FROM archlinux/base:latest
|
||||
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
|
||||
|
||||
## Set faster mirrors
|
||||
COPY assets/mirrorlist /etc/pacman.d/mirrorlist
|
||||
|
||||
## Install prereqs and create a user with
|
||||
## administrative privileges to install packages
|
||||
RUN pacman --sync --refresh --needed --noconfirm \
|
||||
base-devel \
|
||||
git \
|
||||
go \
|
||||
&& useradd --create-home user
|
||||
COPY assets/sudoers /etc/sudoers
|
||||
|
||||
## Switch to the new user and install yay from aur
|
||||
USER user
|
||||
RUN cd /home/user \
|
||||
&& git clone https://aur.archlinux.org/yay.git \
|
||||
&& cd yay \
|
||||
&& makepkg --syncdeps --install --noconfirm \
|
||||
&& cd /home/user \
|
||||
&& rm -rf yay
|
||||
|
||||
## Install profanity-git from aur
|
||||
RUN cd /home/user \
|
||||
&& yay --sync --noconfirm profanity-git
|
||||
|
||||
## Cleanup
|
||||
RUN sudo pacman --noconfirm -Rcns go yay texinfo \
|
||||
&& sudo pacman --noconfirm -Rsn $(pacman -Qqdt)
|
||||
|
||||
WORKDIR /home/user
|
||||
CMD ["/usr/sbin/profanity"]
|
12
profanity/README.md
Normal file
12
profanity/README.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
## Profanity XMPP Client
|
||||
Docker image for running the profanity xmpp client based on Arch Linux.
|
||||
Profanity is installed from aur/profanity-git.
|
||||
OMEMO is available,
|
||||
|
||||
## Usage
|
||||
```console
|
||||
# docker run -ti --rm \
|
||||
-v ~/.local/share/profanity:/home/user/.local/share/profanity
|
||||
-v ~/.config/profanity/:/home/user/.config/profanity
|
||||
elfrinjo/profanity:latest
|
||||
```
|
4
profanity/assets/mirrorlist
Normal file
4
profanity/assets/mirrorlist
Normal file
|
@ -0,0 +1,4 @@
|
|||
Server = http://ftp.gwdg.de/pub/linux/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.fau.de/archlinux/$repo/os/$arch
|
||||
Server = https://ftp.fau.de/archlinux/$repo/os/$arch
|
||||
|
1
profanity/assets/sudoers
Normal file
1
profanity/assets/sudoers
Normal file
|
@ -0,0 +1 @@
|
|||
user ALL = NOPASSWD: ALL
|
Reference in a new issue