-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathjboss-docker
46 lines (32 loc) · 1.47 KB
/
jboss-docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#Docker Installation
Install though yum Online:
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
$ sudo systemctl start docker
$ sudo systemctl enable docker.service
$ sudo systemctl enable containerd.service
$ docker compose version
$ docker --version
$ docker version
#If Internet isnot working follow this steps on the docker host (where dockerservice is running)
pkill docker
iptables -t nat -F
ifconfig docker0 down
ifconfig docker0 up
service docker start
#Delete the container and recreate it.
#Create Network:
docker network create --subnet=172.15.0.0/16 my_bridge_network
#Download the dockerfile and jboss installation.
#Looking to encrypt your password on jboss password
https://www.webutils.pl/index.php?idx=base64
Admin= YWRtaW4=
#Loading Image:
docker build -t jboss-master .
docker build -t jboss-slave1 .
docker build -t jboss-slave2 .
#Running Docker:
docker run -d --network=my_bridge_network --ip 172.15.0.10 -p 9990:9990 -v /opt//software/jboss-master/jboss-master/:/opt/jboss/ jboss-master
docker run -d --network=my_bridge_network --ip 172.15.0.11 -p 8080:8080 -v /opt//software/jboss-slave1/jboss-slave1/:/opt/jboss/ jboss-slave1
docker run -d --network=my_bridge_network --ip 172.15.0.12 -p 8081:8081 -v /opt//software/jboss-slave2/jboss-slave2/:/opt/jboss/ jboss-slave2