-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #3 - added multiarch + crossbuild
- Loading branch information
Showing
7 changed files
with
69 additions
and
24 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,3 @@ | ||
.Dockerfile | ||
*.yaml | ||
qemu-*-static |
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,15 @@ | ||
FROM debian:stable-slim as builder | ||
|
||
COPY qemu-*-static /usr/bin/ | ||
|
||
FROM builder | ||
|
||
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>" | ||
|
||
RUN apt-get update && apt-get install libav-tools -y --force-yes | ||
|
||
ADD ./convert.sh /usr/bin/convert.sh | ||
|
||
VOLUME /media | ||
|
||
CMD ["convert.sh"] |
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,20 @@ | ||
VERSION ?= 0.2.0 | ||
FULLVERSION ?= ${VERSION} | ||
archs = amd64 arm32v5 arm32v7 arm64v8 i386 | ||
|
||
.PHONY: all build publish latest | ||
all: build publish latest | ||
build: | ||
cp /usr/bin/qemu-*-static . | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM debian:stable-slim/FROM ${arch}\/debian:stable-slim/g" > .Dockerfile; \ | ||
docker build -t jaymoulin/rpi-plex-video-converter:${VERSION}-$(arch) -f .Dockerfile .;\ | ||
) | ||
publish: | ||
docker push jaymoulin/rpi-plex-video-converter | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest.yaml | ||
cat manifest.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest2.yaml | ||
mv manifest2.yaml manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: build | ||
FULLVERSION=latest VERSION=${VERSION} make publish |
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,30 @@ | ||
image: jaymoulin/rpi-plex-video-converter:$FULLVERSION | ||
manifests: | ||
- | ||
image: jaymoulin/rpi-plex-video-converter:$VERSION-arm32v5 | ||
platform: | ||
architecture: arm | ||
variant: v5 | ||
os: linux | ||
- | ||
image: jaymoulin/rpi-plex-video-converter:$VERSION-arm32v7 | ||
platform: | ||
architecture: arm | ||
variant: v7 | ||
os: linux | ||
- | ||
image: jaymoulin/rpi-plex-video-converter:$VERSION-arm64v8 | ||
platform: | ||
architecture: arm | ||
variant: v8 | ||
os: linux | ||
- | ||
image: jaymoulin/rpi-plex-video-converter:$VERSION-amd64 | ||
platform: | ||
architecture: arm64 | ||
os: linux | ||
- | ||
image: jaymoulin/rpi-plex-video-converter:$VERSION-i386 | ||
platform: | ||
architecture: 386 | ||
os: linux |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.