Skip to content

Commit

Permalink
Switch to yasu (#170)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max and crazy-max authored Mar 4, 2021
1 parent 3efa499 commit cddc5e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 21.2.0-r1 (2021/03/04)

* Switch to `yasu`

## 21.2.0-r0 (2021/02/16)

* LibreNMS 21.2.0 (#167)
Expand Down
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
ARG LIBRENMS_VERSION="21.2.0"

FROM --platform=${TARGETPLATFORM:-linux/amd64} crazymax/alpine-s6:3.13-2.2.0.3
ARG TARGETPLATFORM
ARG BUILDPLATFORM

FROM crazymax/yasu:latest AS yasu
FROM crazymax/alpine-s6:3.13-2.1.0.2
LABEL maintainer="CrazyMax"

COPY --from=yasu / /
RUN apk --update --no-cache add \
busybox-extras \
acl \
Expand Down Expand Up @@ -63,7 +62,6 @@ RUN apk --update --no-cache add \
rrdtool \
runit \
shadow \
su-exec \
syslog-ng=3.30.1-r0 \
ttf-dejavu \
tzdata \
Expand Down Expand Up @@ -131,7 +129,6 @@ RUN apk --update --no-cache add -t build-dependencies \
/var/cache/apk/*

COPY rootfs /
RUN chmod a+x /usr/local/bin/*

EXPOSE 8000 514 514/udp
VOLUME [ "/data" ]
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/artisan
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

cd /opt/librenms || exit 1
su-exec librenms:librenms php artisan "$@"
yasu librenms:librenms php artisan "$@"
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/lnms
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

su-exec librenms:librenms php -f /opt/librenms/lnms "$@"
yasu librenms:librenms php -f /opt/librenms/lnms "$@"

0 comments on commit cddc5e9

Please sign in to comment.