У меня есть образ докера, который устанавливает WAS 8.5 (Developer Edition) с пакетами исправлений.
Теперь я создаю и запускаю свой контейнер Docker (was8cont), открывая несколько публичных портов.
Теперь, когда я запускаю сервер приложений с помощью команды --
docker exec was8cont /opt/IBM/WebSphere/AppServer/bin/startServer.sh server1
Я получаю сообщение об ошибке
Error response from daemon:
502 Bad Gateway -- nginx
У меня есть память контейнера как 2GB.
Мой файл Docker:
From ubuntu:14.04
MAINTAINER Nandakumar Kuthalaraja <[email protected]>
RUN apt-get install -y unzip
################ Installation manager ##############
#Install Installation Manager
COPY agent.installer.linux.gtk.x86_64_1.8.3000.20150606_0047.zip /tmp/
RUN mkdir /tmp/im && unzip -qd /tmp/im /tmp/agent*.zip \
&& /tmp/im/installc -acceptLicense -accessRights admin \
-installationDirectory "/opt/IBM/InstallationManager" \
-dataLocation "/var/ibm/InstallationManager" -showProgress \
&& rm -fr /tmp/agent*.zip /tmp/im
#Install IBM WAS v8 --com.ibm.websphere.BASE.v85
COPY WAS_V8_1_OF_3.zip /tmp/
COPY WAS_V8_2_OF_3.zip /tmp/
COPY WAS_V8_3_OF_3.zip /tmp/
RUN mkdir /tmp/was && unzip -qd /tmp/was /tmp/WAS_V8_1_OF_3.zip \
&& unzip -qd /tmp/was /tmp/WAS_V8_2_OF_3.zip \
&& unzip -qd /tmp/was /tmp/WAS_V8_3_OF_3.zip \
&& /opt/IBM/InstallationManager/eclipse/tools/imcl -showProgress \
-acceptLicense install com.ibm.websphere.DEVELOPERSILAN.v85 \
-repositories /tmp/was/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
&& rm -fr /tmp/was /tmp/WAS_V8_1_OF_3.zip \
/tmp/WAS_V8_2_OF_3.zip /tmp/WAS_V8_3_OF_3.zip
# Install fixpack
COPY 8.5.5-WS-WAS-FP0000005-part1.zip /tmp/
COPY 8.5.5-WS-WAS-FP0000005-part2.zip /tmp/
RUN mkdir /tmp/wasfp \
&& unzip -qd /tmp/wasfp /tmp/8.5.5-WS-WAS-FP0000005-part1.zip \
&& rm -fr /tmp/8.5.5-WS-WAS-FP0000005-part1.zip \
&& unzip -qd /tmp/wasfp /tmp/8.5.5-WS-WAS-FP0000005-part2.zip \
&& rm -fr /tmp/8.5.5-WS-WAS-FP0000005-part2.zip \
&& /opt/IBM/InstallationManager/eclipse/tools/imcl -showProgress \
-acceptLicense install com.ibm.websphere.DEVELOPERSILAN.v85 \
-repositories /tmp/wasfp/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
&& rm -fr /tmp/wasfp
# Create AppServer Profile
RUN /opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default/ -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
EXPOSE 2809 9402 9403 9353 9633 9100 11004 11003 9401 7276 7286 5558 5578 5060 5061 9943 9080 9043 9060 8880