Skip to content

Commit

Permalink
fixes #3 - fix arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Mar 2, 2018
1 parent f66d9e8 commit 018d0ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV PATH="/root:$PATH"

COPY bomreplacer.php /usr/bin/bomreplacer
WORKDIR /src
RUN apk add php7 php7-iconv php7-tokenizer php7-dom php7-mbstring --update --no-cache
RUN apk add php7 --update --no-cache
VOLUME ['/src']

CMD [ "bomreplacer" ]
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
VERSION ?= 0.1.0
VERSION ?= 0.1.1
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
archs = amd64 i386 arm32v7
archs ?= amd64 arm32v6 arm64v8 i386
.PHONY: all build publish latest
all: build publish
CACHE= make latest
qemu-arm-static:
cp /usr/bin/qemu-arm-static .
qemu-arm64-static:
cp /usr/bin/qemu-arm64-static .
build: qemu-arm-static qemu-arm64-static
qemu-aarch64-static:
cp /usr/bin/qemu-aarch64-static .
build: qemu-arm-static qemu-aarch64-static
$(foreach arch,$(archs), \
cat Dockerfile | sed -E "s/FROM alpine/FROM $(arch)\/alpine/g" > .build; \
docker build -t femtopixel/utf8-bom-fixer:${VERSION}-$(arch) ${CACHE} -f .build .;\
Expand Down
15 changes: 10 additions & 5 deletions manifest.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
image: femtopixel/utf8-bom-fixer:$FULLVERSION
manifests:
-
image: femtopixel/utf8-bom-fixder:$VERSION-arm32v7
image: femtopixel/utf8-bom-fixer:$VERSION-arm32v6
platform:
architecture: arm
variant: v7
variant: v6
os: linux
-
image: femtopixel/utf8-bom-fixder:$VERSION-i386
image: femtopixel/utf8-bom-fixer:$VERSION-arm64v8
platform:
architecture: 386
architecture: arm64
os: linux
-
image: femtopixel/utf8-bom-fixder:$VERSION-amd64
image: femtopixel/utf8-bom-fixer:$VERSION-amd64
platform:
architecture: amd64
os: linux
-
image: femtopixel/utf8-bom-fixer:$VERSION-i386
platform:
architecture: 386
os: linux

0 comments on commit 018d0ef

Please sign in to comment.