forked from WASdev/ci.docker.websphere-traditional
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.prereq
executable file
·73 lines (58 loc) · 3.31 KB
/
Dockerfile.prereq
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
###########################################################################
# (C) Copyright IBM Corporation 2015. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.#
# See the License for the specific language governing permissions and #
# limitations under the License. #
###########################################################################
FROM ubuntu:14.04
MAINTAINER Kavitha Suresh Kumar <[email protected]>
RUN apt-get install -y unzip wget
ARG user=was
ARG group=was
RUN groupadd $group && useradd $user -g $group -m \
&& chown -R $user:$group /var /opt /tmp
USER $user
ARG URL
####################### IBM Installation Manager #########################
# Install IBM Installation Manager
RUN wget -q $URL/Install_Mgr_v1.6.2_Lnx_WASv8.5.5.zip -O /tmp/IM.zip \
&& mkdir /tmp/im && unzip -qd /tmp/im /tmp/IM.zip \
&& /tmp/im/installc -acceptLicense -accessRights nonAdmin \
-installationDirectory "/opt/IBM/InstallationManager" \
-dataLocation "/var/ibm/InstallationManager" -showProgress \
&& rm -fr /tmp/IM.zip /tmp/im
#################### WebSphere Application Server #######################
# Install IBM WebSphere Application Server v855
RUN wget -q $URL/WAS_V8.5.5_1_OF_3.zip -O /tmp/was1.zip \
&& wget -q $URL/WAS_V8.5.5_2_OF_3.zip -O /tmp/was2.zip \
&& wget -q $URL/WAS_V8.5.5_3_OF_3.zip -O /tmp/was3.zip \
&& mkdir /tmp/was && unzip -qd /tmp/was /tmp/was1.zip \
&& unzip -qd /tmp/was /tmp/was2.zip \
&& unzip -qd /tmp/was /tmp/was3.zip \
&& /opt/IBM/InstallationManager/eclipse/tools/imcl -showProgress \
-acceptLicense install com.ibm.websphere.BASE.v85 \
-repositories /tmp/was/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
&& rm -fr /tmp/was /tmp/was1.zip /tmp/was2.zip /tmp/was3.zip
################ WebSphere Application Server Fixpack ###################
# Install WebSphere Application Server Fixpack v8558
RUN wget -q $URL/8.5.5-WS-WAS-FP0000008-part1.zip -O /tmp/wasfp1.zip \
&& wget -q $URL/8.5.5-WS-WAS-FP0000008-part2.zip -O /tmp/wasfp2.zip \
&& mkdir /tmp/wasfp \
&& unzip -qd /tmp/wasfp /tmp/wasfp1.zip \
&& unzip -qd /tmp/wasfp /tmp/wasfp2.zip \
&& /opt/IBM/InstallationManager/eclipse/tools/imcl -showProgress \
-acceptLicense install com.ibm.websphere.BASE.v85 \
-repositories /tmp/wasfp/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
&& rm -fr /tmp/wasfp /tmp/wasfp1.zip /tmp/wasfp2.zip
CMD ["tar","cvf","/tmp/was.tar","/opt/IBM/WebSphere/AppServer"]