Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.23 KB

javascript_building_joynr.md

File metadata and controls

27 lines (23 loc) · 1.23 KB

Building joynr JavaScript

The following scripts found within the joynr repository can be used to build joynr inside a docker container without having to install anything on the build machine.

Prerequisites

See Building joynr Java and common components.

Building joynr JavaScript

Joynr JavaScript can be built by executing the following command:

docker run --rm --sig-proxy -e DEV_UID="$(id -u)"
    -v <FULL_PATH_TO_JOYNR_JAVASCRIPT_REPOSITORY>:/data/src
    -v <FULL_PATH_TO_MAVEN_DIRECTORY>:/home/joynr/.m2
    joynr-base
    /data/src/docker/joynr-base/scripts/ci/javascript-clean-build --skipTests

This will start the docker container joynr-base and execute the script docker/joynr-base/scripts/ci/javascript-clean-build in the joynr repository. This script builds joynr JavaScript.

The joynr artifacts necessary for building joynr JavaScript are taken from the local Maven repository <FULL_PATH_TO_HOST_MAVEN_DIRECTORY> mounted at /home/joynr/.m2 in the docker container. Like for building joynr Java, the path to the joynr repository <FULL_PATH_TO_JOYNR_JAVASCRIPT_REPOSITORY> has to be provided to be accessible from the docker container at /data/src.