Sign inSign up

opavlova/resin

By opavlova

•Updated about 10 years ago

Image
0

383

opavlova/resin repository overview

⁠Resin

Base docker images to run a Resin application server.

⁠Image tags:

 opavlova/resin
⁠Deploy an application in Intellij IDEA:
  1. Create HelloDocker.war file and place it to the same directory where will be the corresponding Dockerfile

  2. Create this Dockerfile:

FROM opavlova/resin
ADD HelloDocker.war /var/resin/webapps

RESIN_HOME: /usr/local/share/resin-4.0.40

  1. Create container_settings.json with the binding to port:
{
  "_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.

  1. 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
    
  2. Run the created Configutarion Results are in the Docker View

  3. 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

Tag summary

Content type

Image

Digest

Size

317.8 MB

Last updated

about 10 years ago

docker pull opavlova/resin