An extension of jhipster docker devlopment env
367
The present docker is an extension of the Jhipster docker, including a MySql database, Grunt, Bower, and a bash script which creates a database and runs the application using the production profile.
This docker is an extension of Dubois docker, including a MySql database, Grunt, Bower, and a bash script which creates a database and runs the application using the production profile.
to obtain the docker image run this command:
docker pull dieple/docker-devops
Once the image is downloaded, you will need to run your application inside the container and forward all local ports exposed (8080 for tomcat, 3000 and 3001 for grunt, 22 for ssh and 3606 for mysql). Try running the following command and don’t forget to change “your_app_folder” to your local path:
sudo docker run -v /apps/sandboxes:/apps/sandboxes -p 8080:8080 -p 3000:3000 -p 3001:3001 -p 4022:22 -p 3306:3306 -t -i dieple/docker-devops /bin/bash
Finally you will need to run the script in /usr/local/bin, to start the mysql service and run the application using the production profile.
sh /usr/local/bin/script.sh
By default, the script will start the mysql service and will create a database called “devops”. If you would like to change the database name, you will need to modify the script on /usr/local/bin/script.sh:
Use your favourite editor and add your database name at the end of the line 6, instead of “devops”.
If you would like to see any change on the client side and reload your web application instantly then you will need to run the grunt server task. For this purpose, you will need to open a new terminal, access to your container and run grunt following these steps:
Content type
Image
Digest
sha256:988c32118…
Size
613.4 MB
Last updated
about 11 years ago
docker pull dieple/docker-devops