Install envsubst alternative (Go version)

This commit is contained in:
sturman 2024-02-24 20:35:15 +02:00
parent 1146ec48fd
commit 62dab7b4c2
2 changed files with 14 additions and 8 deletions

View file

@ -10,8 +10,9 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thespad" LABEL maintainer="thespad"
# environment settings # environment settings
ARG UNIFI_BRANCH="stable" \ ARG UNIFI_BRANCH="stable"
DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ARG ENVSUBST_VERSION=v1.4.2
RUN \ RUN \
echo "**** install packages ****" && \ echo "**** install packages ****" && \
@ -20,8 +21,10 @@ RUN \
jsvc \ jsvc \
logrotate \ logrotate \
openjdk-17-jre-headless \ openjdk-17-jre-headless \
unzip \ unzip && \
gettext && \ curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \
chmod +x envsubst && \
mv envsubst /usr/local/bin && \
echo "**** install unifi ****" && \ echo "**** install unifi ****" && \
if [ -z ${UNIFI_VERSION+x} ]; then \ if [ -z ${UNIFI_VERSION+x} ]; then \
UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \ UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \

View file

@ -10,8 +10,9 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thespad" LABEL maintainer="thespad"
# environment settings # environment settings
ARG UNIFI_BRANCH="stable" \ ARG UNIFI_BRANCH="stable"
DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ARG ENVSUBST_VERSION=v1.4.2
RUN \ RUN \
echo "**** install packages ****" && \ echo "**** install packages ****" && \
@ -20,8 +21,10 @@ RUN \
jsvc \ jsvc \
logrotate \ logrotate \
openjdk-17-jre-headless \ openjdk-17-jre-headless \
unzip \ unzip && \
gettext && \ curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \
chmod +x envsubst && \
mv envsubst /usr/local/bin && \
echo "**** install unifi ****" && \ echo "**** install unifi ****" && \
if [ -z ${UNIFI_VERSION+x} ]; then \ if [ -z ${UNIFI_VERSION+x} ]; then \
UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \ UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \