Create custom image Jboss Fuse 6

Gloria Palma González
2 min readJun 30, 2018

--

ZatoryPrivate
  1. - Create Dockerfile
$ vi Dockerfile# dockerfile image Jboss Fuse Java 6

FROM registry.access.redhat.com/jboss-fuse-6/fis-java-openshift

# file author / maintainer
MAINTAINER "FirstName LastName" "emailaddress@gmail.com"

# Copy jar to deployments folder
COPY app.jar /deployments/

# Modify owners jar
USER root
RUN chown jboss:root /deployments/app.jar

# Run whit user 185
USER 185

2.- Modify Dockerfile, for example if you war has other name then, you can change the name, replace app.war for you name war, this war must be to the level at Dockerfile.

3.- Build image.

$ docker build --tag=myuser/myimage:1.0 /path/to/dockerfile

4.- Run image.

Example to run image
$ docker run -d -p 8778:8778 -p 9990:9990 -p 8080:8080 myuser/myimage:1.0

5.- Enjoy, maybe you need to push image to private or public registry, follow the next steps.

$ docker login -u myuser ip-or-domain-registry:port
$ docker tag myuser/myimage:1.0 ip-or-domain-registry:port/myuser/myimage:1.0
$ docker push ip-or-domain-registry:port/myuser/myimage:1.0

This way work to public or private registry.

I hope I’ve helped :)

Zie je later!!

--

--

Gloria Palma González
Gloria Palma González

Written by Gloria Palma González

My life is a paradigm: I can do anything. IT engineer, melomaniac, in love: #Infrastructure #OpenSource #CommunityLeadershipTeams #SoftwareEngineering

No responses yet