-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Berger <[email protected]>
- Loading branch information
Showing
6 changed files
with
13,420 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.git* | ||
.multi* | ||
Dockerfile* | ||
README* | ||
LICENSE* |
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,21 @@ | ||
#!/bin/sh | ||
|
||
VERSION=$1 | ||
|
||
cat <<EOF >/tmp/multi.yml | ||
image: chrberger/cluon-livefeed-multi:$VERSION | ||
manifests: | ||
- image: chrberger/cluon-livefeed-amd64:$VERSION | ||
platform: | ||
architecture: amd64 | ||
os: linux | ||
- image: chrberger/cluon-livefeed-armhf:$VERSION | ||
platform: | ||
architecture: arm | ||
os: linux | ||
- image: chrberger/cluon-livefeed-aarch64:$VERSION | ||
platform: | ||
architecture: arm64 | ||
os: linux | ||
EOF | ||
manifest-tool-linux-amd64 push from-spec /tmp/multi.yml |
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,44 @@ | ||
# Copyright (C) 2018 Christian Berger | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# Part to build cluon-livefeed. | ||
FROM docker.io/project31/aarch64-alpine-qemu:3.5-7 as builder | ||
MAINTAINER Christian Berger "[email protected]" | ||
|
||
RUN [ "cross-build-start" ] | ||
|
||
RUN cat /etc/apk/repositories && \ | ||
echo http://dl-4.alpinelinux.org/alpine/v3.7/main > /etc/apk/repositories && \ | ||
echo http://dl-4.alpinelinux.org/alpine/v3.7/community >> /etc/apk/repositories | ||
|
||
RUN apk update && \ | ||
apk --no-cache add \ | ||
g++ | ||
ADD . /opt/sources | ||
WORKDIR /opt/sources | ||
RUN ln -sf cluon-complete-v0.0.56.hpp cluon-complete.cpp && \ | ||
g++ -std=c++14 -Wall -D HAVE_CLUON_LIVEFEED -pthread -s -static -static-libgcc -static-libstdc++ -o /tmp/cluon-livefeed cluon-complete.cpp | ||
|
||
RUN [ "cross-build-end" ] | ||
|
||
|
||
# Part to deploy cluon-livefeed. | ||
FROM docker.io/project31/aarch64-alpine-qemu:3.5-7 | ||
MAINTAINER Christian Berger "[email protected]" | ||
|
||
WORKDIR /usr/bin | ||
COPY --from=builder /tmp/cluon-livefeed . | ||
ENTRYPOINT ["cluon-livefeed"] | ||
|
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,35 @@ | ||
# Copyright (C) 2018 Christian Berger | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# Part to build cluon-livefeed. | ||
FROM alpine:3.7 as builder | ||
MAINTAINER Christian Berger "[email protected]" | ||
|
||
RUN apk update && \ | ||
apk --no-cache add \ | ||
g++ | ||
ADD . /opt/sources | ||
WORKDIR /opt/sources | ||
RUN ln -sf cluon-complete-v0.0.56.hpp cluon-complete.cpp && \ | ||
g++ -std=c++14 -Wall -D HAVE_CLUON_LIVEFEED -pthread -s -static -static-libgcc -static-libstdc++ -o /tmp/cluon-livefeed cluon-complete.cpp | ||
|
||
|
||
# Part to deploy cluon-livefeed. | ||
FROM scratch | ||
MAINTAINER Christian Berger "[email protected]" | ||
|
||
COPY --from=builder /tmp/cluon-livefeed / | ||
ENTRYPOINT ["/cluon-livefeed"] | ||
|
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,44 @@ | ||
# Copyright (C) 2018 Christian Berger | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# Part to build cluon-livefeed. | ||
FROM pipill/armhf-alpine:edge as builder | ||
MAINTAINER Christian Berger "[email protected]" | ||
|
||
RUN [ "cross-build-start" ] | ||
|
||
RUN cat /etc/apk/repositories && \ | ||
echo http://dl-4.alpinelinux.org/alpine/v3.7/main > /etc/apk/repositories && \ | ||
echo http://dl-4.alpinelinux.org/alpine/v3.7/community >> /etc/apk/repositories | ||
|
||
RUN apk update && \ | ||
apk --no-cache add \ | ||
g++ | ||
ADD . /opt/sources | ||
WORKDIR /opt/sources | ||
RUN ln -sf cluon-complete-v0.0.56.hpp cluon-complete.cpp && \ | ||
g++ -std=c++14 -Wall -D HAVE_CLUON_LIVEFEED -pthread -s -static -static-libgcc -static-libstdc++ -o /tmp/cluon-livefeed cluon-complete.cpp | ||
|
||
RUN [ "cross-build-end" ] | ||
|
||
|
||
# Part to deploy cluon-livefeed. | ||
FROM pipill/armhf-alpine:edge | ||
MAINTAINER Christian Berger "[email protected]" | ||
|
||
WORKDIR /usr/bin | ||
COPY --from=builder /tmp/cluon-livefeed . | ||
ENTRYPOINT ["cluon-livefeed"] | ||
|
Oops, something went wrong.