Jetty Servers for deploying applications in IntelliJ IDEA
683
Base docker images to run a Jetty application server.
opavlova/jetty
opavlova/jetty:9.3.8
opavlova/jetty:9.2.15-jre8
opavlova/jetty:9.2.15-jre7
Create HelloDocker.war file and place it to the same directory where will be the corresponding Dockerfile
Create this Dockerfile:
FROM opavlova/tomcat:6-jre7
ADD HelloDocker.war $JETTY_BASE/webapps/
{
"_comment": "FOR DETAILED FORMAT LOOK AT https://docs.docker.com/reference/api/docker_remote_api_v1.16/#create-a-container",
"AttachStdin": true,
"OpenStdin": true,
"HostConfig": {
"PortBindings":{ "8080/tcp": [{ "HostIp": "192.168.99.100", "HostPort": "18080" }] }
}
}
Correct "HostIp" value in the container_settings.json if needed.
Create a new Docker Run Configuration - choose "Docker Deployment" in Run/Debug Configuration dialog - add values on the Deployment tab: check Docker server - the installed Docker choose Dockerfile - the copied Dockerfile file enter imageName, enter containerName, - add values on the Container tab: add path to container_settings.json in the "JSON file" field
- press Apply/Ok
Run the created Configutarion Results are in the Docker View
Go to the corresponding url with the deployed artifact http://192.168.99.100:18080/HelloDocker/ NB: "HostIp" and "HostPort" are taken from container_settings.json file
Content type
Image
Digest
Size
125.9 MB
Last updated
about 10 years ago
docker pull opavlova/jetty