Skip to content

Commit

Permalink
adding multi arch and pipeline logic to repo for its first run on the…
Browse files Browse the repository at this point in the history
… ci server
  • Loading branch information
thelamer committed Jul 29, 2018
1 parent 6e1e5b0 commit e677350
Show file tree
Hide file tree
Showing 5 changed files with 650 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ FROM lsiobase/alpine:3.7
# set version label
ARG BUILD_DATE
ARG VERSION
ARG SMOKEPING_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="ironicbadger,sparklyballs"

# copy tcpping script
# copy tcpping script
COPY tcpping /defaults/

RUN \
Expand Down
49 changes: 49 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM lsiobase/alpine.arm64:3.7

# Add qemu to build on x86_64 systems
COPY qemu-aarch64-static /usr/bin

# set version label
ARG BUILD_DATE
ARG VERSION
ARG SMOKEPING_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="ironicbadger,sparklyballs"

# copy tcpping script
COPY tcpping /defaults/

RUN \
echo "**** install packages ****" && \
apk add --no-cache \
apache2 \
apache2-ctl \
apache2-utils \
bc \
bind-tools \
curl \
smokeping \
ssmtp \
sudo \
tcptraceroute \
ttf-dejavu && \
echo "**** give abc sudo access to traceroute & tcptraceroute ****" && \
echo \
"abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \
/etc/sudoers.d/traceroute && \
echo \
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \
/etc/sudoers.d/tcptraceroute && \
echo "**** fix path to cropper.js ****" && \
sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \
echo "**** install tcping script ****" && \
install -m755 -D /defaults/tcpping /usr/bin/ && \
echo "**** remove default apache conf ****" && \
rm -f /etc/apache2/httpd.conf

# add local files
COPY root/ /

# ports and volumes
EXPOSE 80
VOLUME /config /data
48 changes: 48 additions & 0 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM lsiobase/alpine.armhf:3.7
# Add qemu to build on x86_64 systems
COPY qemu-arm-static /usr/bin

# set version label
ARG BUILD_DATE
ARG VERSION
ARG SMOKEPING_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="ironicbadger,sparklyballs"

# copy tcpping script
COPY tcpping /defaults/

RUN \
echo "**** install packages ****" && \
apk add --no-cache \
apache2 \
apache2-ctl \
apache2-utils \
bc \
bind-tools \
curl \
smokeping \
ssmtp \
sudo \
tcptraceroute \
ttf-dejavu && \
echo "**** give abc sudo access to traceroute & tcptraceroute ****" && \
echo \
"abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \
/etc/sudoers.d/traceroute && \
echo \
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \
/etc/sudoers.d/tcptraceroute && \
echo "**** fix path to cropper.js ****" && \
sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \
echo "**** install tcping script ****" && \
install -m755 -D /defaults/tcpping /usr/bin/ && \
echo "**** remove default apache conf ****" && \
rm -f /etc/apache2/httpd.conf

# add local files
COPY root/ /

# ports and volumes
EXPOSE 80
VOLUME /config /data
Loading

0 comments on commit e677350

Please sign in to comment.