Sign inSign up

wavemakerapp/rn-app-build

By wavemakerapp

•Updated almost 3 years ago

Image
0

204

wavemakerapp/rn-app-build repository overview

⁠rn-app-build

WaveMaker supports micro-service enabled architecture. This allows you to build and deploy applications using container-based technology. The rn-app-build Docker image is packed with required software packages and libraries to deploy WaveMaker Application in Docker containers.

⁠Software packages Installed in Docker Image

  • Installed software packages for WaveMaker Application Build
    • Node
    • Npm
    • Maven
    • java

⁠How to Use this image

⁠Generate War file
  • Using the rn-app-build Docker image users can generate war file for WaveMaker Applications.
  • Export the project to your local or you can directly clone from a repository. we will mount the application directory location to /usr/local/content/app during container creation for generating application war.
  • Use the below commands for creating Docker container using the image for generating war file.
docker container run --rm -it --name <container-name> -v $HOME/.m2:$HOME/.m2 -v $HOME/.npm:$HOME/.npm -v <project-location>:/usr/local/content/app -e profile=<deployment-profile> -e MAVEN_CONFIG=$HOME/.m2 wavemakerapp/rn-app-build:latest
example: docker container run --rm -it --name wmapp -v $HOME/.m2:/root/.m2 -v $HOME/.npm:/root/.npm -v /home/user/MySampleApp:/usr/local/content/app -e profile=deployment -e MAVEN_CONFIG=$HOME/.m2 wavemakerapp/rn-app-build:latest
⁠Run Container
  • After Completing the project build it will create a project war file in <project-location>/dist folder, user can use the war file to deploy in Host tomcat or in Tomcat Docker container.
  • For deploying project war using Tomcat Docker container , please use the below command.
docker container run -d --name <container-name> -v <project-location>/dist/:/usr/local/tomcat/webapps/ -p <host_port>:8080 tomcat:9.0.82
example: docker container run -d --name wm-app -v /home/user/MySampleApp/dist/:/usr/local/tomcat/webapps/ -p 80:8080 tomcat:9.0.82
⁠Access Application

If Docker Running on Host network, use Host IP address for acess Application on the web.Get an Instance IP Address using the following command to access the application on the web. Please run the below command in the web application hosting Instance.

ifconfig
  • Above command will provide the network interfaces and their respective IP Address in Instance, please use the respective IP Address to access the Application in the web,You can access the application with http://<HOST_IP:HOST_PORT>/<APPLICATION_CONTEXT>/.

Tag summary

Content type

Image

Digest

sha256:57a9af2a8…

Size

292.3 MB

Last updated

almost 3 years ago

docker pull wavemakerapp/rn-app-build