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.
See Building joynr Java and common components.
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.