2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

upgrade piknik to 0.10.1 (FIX #172)

This commit is contained in:
kev
2021-03-10 16:26:43 +08:00
parent edc7687961
commit 5840efd29b
4 changed files with 15 additions and 13 deletions

View File

@@ -2,20 +2,21 @@
# Dockerfile for piknik # Dockerfile for piknik
# #
FROM alpine FROM alpine:3
MAINTAINER kev <norely@easypi.pro> MAINTAINER EasyPi Software Foundation
ENV PIKNIK_VERSION 0.9.1 ENV PIKNIK_VERSION=0.10.1
ENV PIKNIK_FILE piknik-linux_x86_64-${PIKNIK_VERSION}.tar.gz 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} ENV PIKNIK_URL=https://github.com/jedisct1/piknik/releases/download/${PIKNIK_VERSION}/${PIKNIK_FILE}
RUN set -xe \ RUN set -xe \
&& apk add --no-cache curl libc6-compat tar \ && apk add --no-cache curl libc6-compat tar \
&& curl -sSL ${PIKNIK_URL} | tar xz -C /usr/local/bin --strip 1 linux-x86_64/piknik \ && curl -sSL ${PIKNIK_URL} | tar xz -C /usr/local/bin --strip 1 linux-x86_64/piknik \
&& mkdir -p /etc/piknik \
&& ln -s /lib /lib64 \ && ln -s /lib /lib64 \
&& apk del curl tar && apk del curl tar
EXPOSE 8075 EXPOSE 8075
ENTRYPOINT ["piknik"] ENTRYPOINT ["piknik"]
CMD ["-config", "/etc/piknik.toml", "-server"] CMD ["-config", "/etc/piknik/piknik.toml", "-server"]

View File

@@ -11,16 +11,17 @@ piknik:
ports: ports:
- "8075:8075" - "8075:8075"
volumes: volumes:
- ./piknik.toml:/etc/piknik.toml - ./data:/etc/piknik
restart: always restart: unless-stopped
``` ```
## Server Setup ## Server Setup
```bash ```bash
$ touch piknik.toml $ mkdir -p data
$ docker-compose run --rm piknik -genkeys > piknik.toml $ touch data/piknik.toml
$ vim piknik.toml $ docker-compose run --rm piknik -genkeys > data/piknik.toml
$ vim data/piknik.toml
$ docker-compose up -d $ docker-compose up -d
``` ```

View File

@@ -3,5 +3,5 @@ piknik:
ports: ports:
- "8075:8075" - "8075:8075"
volumes: volumes:
- ./piknik.toml:/etc/piknik.toml - ./data:/etc/piknik
restart: always restart: unless-stopped