-
Notifications
You must be signed in to change notification settings - Fork 3
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
8 changed files
with
38 additions
and
4 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 |
---|---|---|
|
@@ -5,4 +5,5 @@ docker/c2wasm-api | |
docker/wasi-sdk | ||
docker/clangd | ||
docker/hook-cleaner | ||
wasi-sdk.ts | ||
docker/qjsc | ||
wasi-sdk.ts |
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
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,4 +1,5 @@ | ||
version: '3.6' | ||
name: c2wasm-api | ||
services: | ||
server: | ||
container_name: c2wasm-api | ||
|
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,5 @@ | ||
FROM --platform=linux/amd64 node:17-alpine | ||
MAINTAINER Vaclav Barta "[email protected]" | ||
RUN apk --no-cache add --update bash build-base | ||
ADD build.sh . | ||
CMD ./build.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,17 @@ | ||
# must be run as root | ||
|
||
QJSC_BUILD_CONTAINER_TAG?=qjsc-build | ||
|
||
all: build1 build2 install | ||
|
||
build1: | ||
docker build -t $(QJSC_BUILD_CONTAINER_TAG) . | ||
|
||
build2: | ||
docker run -v $(realpath ../quickjslite):/mnt/qjsc $(QJSC_BUILD_CONTAINER_TAG):latest | ||
|
||
install: | ||
cp ../quickjslite/qjsc ../bin | ||
|
||
clean: | ||
-rm -r ../quickjslite/qjsc ../quickjslite/.obj |
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,7 @@ | ||
#!/bin/sh | ||
|
||
echo running build.sh... | ||
set -e | ||
|
||
cd /mnt/qjsc | ||
make qjsc |