This repository has been archived by the owner on Sep 22, 2020. It is now read-only.
-
-
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.
- Loading branch information
Showing
21 changed files
with
34 additions
and
276 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
build | ||
*.egg-info | ||
qemu-*-static | ||
dist | ||
*.yaml | ||
.Dockerfile |
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
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
FROM python:alpine3.6 as builder | ||
FROM openjdk:jre-alpine as builder | ||
|
||
COPY qemu-*-static /usr/bin/ | ||
|
||
FROM builder | ||
|
||
ARG VERSION=webpack-v20180702 | ||
LABEL maintainer="Jay MOULIN <jaymoulin@gmail.com> <https://twitter.com/MoulinJay>" | ||
LABEL version=${VERSION} | ||
|
||
RUN pip install google-closure-compiler-api | ||
RUN apk add wget unzip --update --virtual .build-deps && \ | ||
wget "https://dl.google.com/closure-compiler/compiler-latest.zip" && \ | ||
unzip "compiler-latest.zip" && \ | ||
mv *.jar /bin/compiler.jar && \ | ||
apk del wget --purge .build-deps | ||
COPY ./entrypoint.sh /bin/entrypoint | ||
ENTRYPOINT ["/bin/entrypoint"] | ||
CMD ["google-closure-compiler"] | ||
CMD ["java", "-jar", "/bin/compiler.jar"] |
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 |
---|---|---|
@@ -1,36 +1,20 @@ | ||
VERSION ?= v20180319 | ||
CACHE ?= --no-cache=1 | ||
FULLVERSION ?= v20180319 | ||
archs ?= amd64 i386 arm64v8 arm32v6 | ||
VERSION ?= webpack-v20180702 | ||
FULLVERSION ?= ${VERSION} | ||
archs = amd64 arm32v6 arm64v8 i386 | ||
|
||
.PHONY: docker build-docker publish-docker latest | ||
test: install | ||
twine upload -r testpypi dist/* | ||
publish: install | ||
twine upload dist/* | ||
install: clean check | ||
sudo python3 setup.py sdist | ||
check: | ||
python3 setup.py check --restructuredtext | ||
.PHONY: all build publish latest | ||
all: build publish latest | ||
build: | ||
mkdir -p build | ||
dist: | ||
mkdir -p dist | ||
clean: build dist | ||
sudo rm -Rf build/* | ||
sudo rm -Rf dist/* | ||
docker: build-docker publish-docker latest | ||
build-docker: | ||
cp /usr/bin/qemu-*-static . | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM python:alpine/FROM ${arch}\/python:alpine/g" > .Dockerfile; \ | ||
docker build -t femtopixel/google-closure-compiler:${VERSION}-$(arch) -f .Dockerfile ${CACHE} .;\ | ||
cat Dockerfile | sed "s/FROM openjdk:jre-alpine/FROM ${arch}\/openjdk:jre-alpine/g" > .Dockerfile; \ | ||
docker build -t femtopixel/google-closure-compiler-app:${VERSION}-$(arch) --build-arg VERSION=${VERSION} -f .Dockerfile .;\ | ||
) | ||
publish-docker: | ||
docker push femtopixel/google-closure-compiler | ||
publish: | ||
docker push femtopixel/google-closure-compiler-app | ||
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-docker | ||
FULLVERSION=latest VERSION=${VERSION} make publish-docker | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
image: femtopixel/google-closure-compiler:$FULLVERSION | ||
image: femtopixel/google-closure-compiler-app:$FULLVERSION | ||
manifests: | ||
- | ||
image: femtopixel/google-closure-compiler:$VERSION-arm32v6 | ||
image: femtopixel/google-closure-compiler-app:$VERSION-arm32v6 | ||
platform: | ||
architecture: arm | ||
variant: v6 | ||
os: linux | ||
- | ||
image: femtopixel/google-closure-compiler:$VERSION-arm64v8 | ||
image: femtopixel/google-closure-compiler-app:$VERSION-arm64v8 | ||
platform: | ||
architecture: arm64 | ||
os: linux | ||
- | ||
image: femtopixel/google-closure-compiler:$VERSION-arm64v8 | ||
image: femtopixel/google-closure-compiler-app:$VERSION-arm64v8 | ||
platform: | ||
architecture: arm | ||
variant: v8 | ||
os: linux | ||
- | ||
image: femtopixel/google-closure-compiler:$VERSION-amd64 | ||
image: femtopixel/google-closure-compiler-app:$VERSION-amd64 | ||
platform: | ||
architecture: amd64 | ||
os: linux | ||
- | ||
image: femtopixel/google-closure-compiler:$VERSION-i386 | ||
image: femtopixel/google-closure-compiler-app:$VERSION-i386 | ||
platform: | ||
architecture: 386 | ||
os: linux |
Oops, something went wrong.