From 2cbcf6176a6187ca84e34977240bfc40370c1514 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 3 Jan 2020 15:19:33 +0100 Subject: [PATCH] Add compiler --- Makefile | 9 +++++++++ ci/Dockerfile.compile | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Makefile create mode 100644 ci/Dockerfile.compile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bee887f --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +sourcefiles := $(wildcard *.jscad) + +default: $(sourcefiles) + +%.jscad: docker-build + docker run --rm -i -v "$(CURDIR):$(CURDIR)" -w "$(CURDIR)" registry.local/openjscad:cli "$@" + +docker-build: + docker build -q -f ci/Dockerfile.compile -t registry.local/openjscad:cli ci diff --git a/ci/Dockerfile.compile b/ci/Dockerfile.compile new file mode 100644 index 0000000..7cb67ca --- /dev/null +++ b/ci/Dockerfile.compile @@ -0,0 +1,10 @@ +FROM node:10-alpine + +RUN set -ex \ + && apk --no-cache add \ + build-base \ + python \ + && npm install --global @jscad/cli + +ENTRYPOINT ["openjscad"] +CMD ["--help"]