Skip to content

Commit

Permalink
* Releasing v0.0.56
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berger <[email protected]>
  • Loading branch information
chrberger committed Mar 31, 2018
1 parent b763140 commit 58253ee
Show file tree
Hide file tree
Showing 6 changed files with 13,420 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git*
.multi*
Dockerfile*
README*
LICENSE*
21 changes: 21 additions & 0 deletions .multi-arch.sh
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
44 changes: 44 additions & 0 deletions Dockerfile.aarch64
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"]

35 changes: 35 additions & 0 deletions Dockerfile.amd64
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"]

44 changes: 44 additions & 0 deletions Dockerfile.armhf
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"]

Loading

0 comments on commit 58253ee

Please sign in to comment.