Skip to content

Commit

Permalink
Test versions pulled in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
1activegeek committed Dec 12, 2021
1 parent 7566caf commit dced325
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ RUN apt-get update && apt-get install -y \
libssl1.0.0 \
libssl-dev
COPY root/ /

# Grab latest version of the app
RUN wget -O /bin/airupnp-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/airupnp-$ARCH_VAR \
&& chmod +x /bin/airupnp-$ARCH_VAR \
&& wget -O /bin/aircast-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/aircast-$ARCH_VAR \
&& chmod +x /bin/aircast-$ARCH_VAR
6 changes: 6 additions & 0 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ RUN apt-get update && apt-get install -y \
libssl1.0.0 \
libssl-dev
COPY root/ /

# Grab latest version of the app
RUN wget -O /bin/airupnp-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/airupnp-$ARCH_VAR \
&& chmod +x /bin/airupnp-$ARCH_VAR \
&& wget -O /bin/aircast-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/aircast-$ARCH_VAR \
&& chmod +x /bin/aircast-$ARCH_VAR
6 changes: 6 additions & 0 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ RUN apt-get update && apt-get install -y \
libssl1.0.0 \
libssl-dev
COPY root/ /

# Grab latest version of the app
RUN wget -O /bin/airupnp-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/airupnp-$ARCH_VAR \
&& chmod +x /bin/airupnp-$ARCH_VAR \
&& wget -O /bin/aircast-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/aircast-$ARCH_VAR \
&& chmod +x /bin/aircast-$ARCH_VAR
4 changes: 0 additions & 4 deletions root/etc/cont-init.d/30-install
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ case $ARCH_VAR in
;;
esac

# Grab latest versions of the app
wget -O /bin/airupnp-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/airupnp-$ARCH_VAR && chmod +x /bin/airupnp-$ARCH_VAR
wget -O /bin/aircast-$ARCH_VAR https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/aircast-$ARCH_VAR && chmod +x /bin/aircast-$ARCH_VAR

# Insert runtime commands if users has entered them as environment variables
[ -z "$AIRUPNP_VAR" ] && sed -i 's;command=/bin/airupnp-x86-64 -l 1000:2000;command=/bin/airupnp-'"$ARCH_VAR"' -l 1000:2000;' /etc/supervisord.conf || sed -i 's;command=/bin/airupnp-x86-64 -l 1000:2000;command=/bin/airupnp-'"$ARCH_VAR $AIRUPNP_VAR"';' /etc/supervisord.conf
[ -z "$AIRCAST_VAR" ] && sed -i 's;command=/bin/aircast-x86-64;command=/bin/aircast-'"$ARCH_VAR"';' /etc/supervisord.conf || sed -i 's;command=/bin/aircast-x86-64;command=/bin/aircast-'"$ARCH_VAR $AIRCAST_VAR"';' /etc/supervisord.conf
Expand Down

0 comments on commit dced325

Please sign in to comment.