mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
add piknik
This commit is contained in:
parent
6e8d68d589
commit
02ae02e92b
@ -73,6 +73,7 @@ A collection of delicious docker recipes.
|
||||
- [x] openhab
|
||||
- [x] openssh
|
||||
- [x] phantomjs
|
||||
- [x] piknik
|
||||
- [x] portia
|
||||
- [x] pure-ftpd
|
||||
- [x] redis-arm
|
||||
|
@ -52,6 +52,10 @@ $ docker-compose exec mpd sh
|
||||
>>> mpc repeat on
|
||||
>>> mpc random on
|
||||
>>> mpc
|
||||
>>> mpc clear
|
||||
>>> mpc lsplaylists
|
||||
>>> mpc load shoutcast
|
||||
>>> mpc play
|
||||
>>> exit
|
||||
```
|
||||
|
||||
|
21
piknik/Dockerfile
Normal file
21
piknik/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Dockerfile for piknik
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <norely@easypi.info>
|
||||
|
||||
ENV PIKNIK_VERSION 0.9
|
||||
ENV PIKNIK_FILE piknik-linux_x86_64-${PIKNIK_VERSION}.tar.gz
|
||||
ENV PIKNIK_URL https://github.com/jedisct1/piknik/releases/download/${PIKNIK_VERSION}/${PIKNIK_FILE}
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache curl libc6-compat tar \
|
||||
&& curl -sSL ${PIKNIK_URL} | tar xz -C /usr/local/bin --strip 1 linux-x86_64/piknik \
|
||||
&& ln -s /lib /lib64 \
|
||||
&& apk del curl tar
|
||||
|
||||
EXPOSE 8075
|
||||
|
||||
ENTRYPOINT ["piknik"]
|
||||
CMD ["-config", "/etc/piknik.toml", "-server"]
|
64
piknik/README.md
Normal file
64
piknik/README.md
Normal file
@ -0,0 +1,64 @@
|
||||
piknik
|
||||
======
|
||||
|
||||
Copy/paste anything over the network.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
piknik:
|
||||
image: vimagick/piknik
|
||||
ports:
|
||||
- "8075:8075"
|
||||
volumes:
|
||||
- ./piknik.toml:/etc/piknik.toml
|
||||
restart: always
|
||||
```
|
||||
|
||||
## Server Setup
|
||||
|
||||
```bash
|
||||
$ touch piknik.toml
|
||||
$ docker-compose run --rm piknik -genkeys > piknik.toml
|
||||
$ vim piknik.toml
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
> `piknik.toml` contains server/client settings.
|
||||
|
||||
## Client Setup
|
||||
|
||||
```bash
|
||||
# ~/.bashrc
|
||||
|
||||
# pkc : read the content to copy to the clipboard from STDIN
|
||||
alias pkc='piknik -copy'
|
||||
|
||||
# pkp : paste the clipboard content
|
||||
alias pkp='piknik -paste'
|
||||
|
||||
# pkm : move the clipboard content
|
||||
alias pkm='piknik -move'
|
||||
|
||||
# pkz : delete the clipboard content
|
||||
alias pkz='piknik -copy < /dev/null'
|
||||
```
|
||||
|
||||
```bash
|
||||
$ vim ~/.piknik.toml
|
||||
|
||||
$ source ~/.bashrc
|
||||
|
||||
$ pkc
|
||||
hello world
|
||||
^D
|
||||
|
||||
$ pkp
|
||||
hello world
|
||||
|
||||
$ pkm
|
||||
hello world
|
||||
|
||||
$ pkm
|
||||
The clipboard might be empty
|
||||
```
|
7
piknik/docker-compose.yml
Normal file
7
piknik/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
piknik:
|
||||
image: vimagick/piknik
|
||||
ports:
|
||||
- "8075:8075"
|
||||
volumes:
|
||||
- ./piknik.toml:/etc/piknik.toml
|
||||
restart: always
|
0
piknik/piknik.toml
Normal file
0
piknik/piknik.toml
Normal file
Loading…
Reference in New Issue
Block a user