Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.02 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.02 KB

Compiler Environment

This is the build environment for creating the lib folder contents in CI/CD.

It is essentially all the build tools required for creating the FastEdge runtime wasm.

Tools include things like:

Clang18 / Cmake / Rust / wasm32-wasi toolchain etc..

Creating the Compiler image (from the rootdir):

docker build -t harbor.p.gc.onl/fastedge/clang-monkey-compiler:0.0.1 -f ./compiler/Dockerfile .

Pushing it to Harbor

docker login https://harbor.p.gc.onl/

docker push harbor.p.gc.onl/fastedge/clang-monkey-compiler:0.0.1

How to use it locally:

Creating a Build Image (from the rootdir):

This uses the compiler image from above harbor.p.gc.onl/fastedge/clang-monkey-compiler:0.0.1

and loads the codebase ready for compiling.

docker build -t clang-monkey .

Then run it to compile the binary files:

  • release build
docker run -v $(pwd)/lib:/usr/src/app/lib clang-monkey
  • dev build
docker run -v $(pwd)/lib:/usr/src/app/lib clang-monkey --debug