Skip to content

Commit bc2531b

Browse files
committed
More formatting
1 parent 05c86e1 commit bc2531b

6 files changed

Lines changed: 35 additions & 35 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@ RUN \
1414
git && \
1515
echo "**** install runtime packages ****" && \
1616
apk add --no-cache --upgrade \
17-
nodejs \
18-
npm \
19-
openssl && \
17+
nodejs \
18+
npm \
19+
openssl && \
2020
echo "**** install app ****" && \
2121
mkdir -p \
22-
/opt/mstream && \
22+
/opt/mstream && \
2323
if [ -z ${MSTREAM_RELEASE+x} ]; then \
24-
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
24+
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
2525
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
2626
fi && \
2727
curl -o \
2828
/tmp/mstream.tar.gz -L \
29-
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
29+
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
3030
tar xzf \
31-
/tmp/mstream.tar.gz -C \
31+
/tmp/mstream.tar.gz -C \
3232
/opt/mstream/ --strip-components=1 && \
3333
cd /opt/mstream && \
3434
npm install --only=production && \
3535
npm link && \
3636
echo "**** cleanup ****" && \
3737
apk del --purge \
38-
build-dependencies && \
38+
build-dependencies && \
3939
rm -rf \
40-
/tmp/*
40+
/tmp/*
4141

4242
# add local files
4343
COPY root/ /

Dockerfile.aarch64

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@ RUN \
1414
git && \
1515
echo "**** install runtime packages ****" && \
1616
apk add --no-cache --upgrade \
17-
nodejs \
18-
npm \
19-
openssl && \
17+
nodejs \
18+
npm \
19+
openssl && \
2020
echo "**** install app ****" && \
2121
mkdir -p \
22-
/opt/mstream && \
22+
/opt/mstream && \
2323
if [ -z ${MSTREAM_RELEASE+x} ]; then \
24-
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
24+
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
2525
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
2626
fi && \
2727
curl -o \
2828
/tmp/mstream.tar.gz -L \
29-
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
29+
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
3030
tar xf \
31-
/tmp/mstream.tar.gz -C \
31+
/tmp/mstream.tar.gz -C \
3232
/opt/mstream/ --strip-components=1 && \
3333
cd /opt/mstream && \
3434
npm install --only=production && \
3535
npm link && \
3636
echo "**** cleanup ****" && \
3737
apk del --purge \
38-
build-dependencies && \
38+
build-dependencies && \
3939
rm -rf \
40-
/tmp/*
40+
/tmp/*
4141

4242
# add local files
4343
COPY root/ /

Dockerfile.armhf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ LABEL maintainer="chbmb"
1010
RUN \
1111
echo "**** install build packages ****" && \
1212
apk add --no-cache --virtual=build-dependencies \
13-
curl \
13+
curl \
1414
git && \
1515
echo "**** install runtime packages ****" && \
1616
apk add --no-cache --upgrade \
17-
nodejs \
18-
npm \
19-
openssl && \
17+
nodejs \
18+
npm \
19+
openssl && \
2020
echo "**** install app ****" && \
2121
mkdir -p \
22-
/opt/mstream && \
22+
/opt/mstream && \
2323
if [ -z ${MSTREAM_RELEASE+x} ]; then \
24-
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
24+
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
2525
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
2626
fi && \
2727
curl -o \
2828
/tmp/mstream.tar.gz -L \
29-
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
29+
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
3030
tar xf \
31-
/tmp/mstream.tar.gz -C \
31+
/tmp/mstream.tar.gz -C \
3232
/opt/mstream/ --strip-components=1 && \
3333
cd /opt/mstream && \
3434
npm install --only=production && \
3535
npm link && \
3636
echo "**** cleanup ****" && \
3737
apk del --purge \
38-
build-dependencies && \
38+
build-dependencies && \
3939
rm -rf \
40-
/tmp/*
40+
/tmp/*
4141

4242
# add local files
4343
COPY root/ /

root/etc/cont-init.d/20-certs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# make our folders
44
[[ ! -d /config/keys ]] && \
55
mkdir -p \
6-
/config/keys
6+
/config/keys
77

88
# create keys
99
[[ ! -e /config/keys/certificate.pem ]] && \
10-
openssl req -x509 -nodes -days 3650 \
11-
-newkey rsa:2048 -keyout /config/keys/private-key.pem -out /config/keys/certificate.pem \
12-
-subj "/CN=mstream"
10+
openssl req -x509 -nodes -days 3650 \
11+
-newkey rsa:2048 -keyout /config/keys/private-key.pem -out /config/keys/certificate.pem \
12+
-subj "/CN=mstream"

root/etc/cont-init.d/30-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ mkdir -p \
1010

1111
# permissions
1212
chown abc:abc -R \
13-
/config
13+
/config
1414

root/etc/services.d/mstream/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ cd /opt/mstream || exit
44

55
if [ "$USE_JSON" == "true" ]; then
66
exec \
7-
s6-setuidgid abc mstream -j /config/config.json
7+
s6-setuidgid abc mstream -j /config/config.json
88
else
99
exec \
10-
s6-setuidgid abc mstream -m /music -I /config/album-art/ -d /config/db/ -u ${USER} -x ${PASSWORD}
10+
s6-setuidgid abc mstream -m /music -I /config/album-art/ -d /config/db/ -u ${USER} -x ${PASSWORD}
1111
fi

0 commit comments

Comments
 (0)