-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding multi arch and pipeline logic to repo for its first run on the…
… ci server
- Loading branch information
Showing
5 changed files
with
650 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.