WASdev / ci.docker.websphere-traditional

Dockerfiles for WebSphere Application Server traditional
Apache License 2.0
171 stars 192 forks source link

Errors trying to build this image #94

Closed cthigh closed 5 years ago

cthigh commented 6 years ago

I went down the path of trying to build the ci.docker.websphere-traditional/developer image locally and hit 2 problems. (I later realized that I didn't need to be doing this but wanted to share what I hit.)

  1. https://github.com/WASdev/ci.docker.websphere-traditional/blob/master/developer/im/Dockerfile contains the line: RUN unzip -qd /tmp/im /tmp/agent.installer.linux.gtk.x8664.zip \ && /tmp/im/installc -acceptLicense -accessRights nonAdmin \ -installationDirectory "/opt/IBM/InstallationManager" \ -dataLocation "/var/ibm/InstallationManager" -showProgress \ && rm -rf /tmp/agent.installer.linux.gtk.x8665.zip /tmp/im

The issue here is in the clean up rm -rf /tmp/agent.installer.linux.gtk.x8665*.zip doesn't match the original file name. NOTE: 65 vs 64.

  1. The second issue was related the IM installer I downloaded. I followed the link in the instructions to get An IBM InstallationManager install .zip for x86 64-bit Linux (agent.installer.linux.gtk.x86_64_*.zip) - The link took me to http://www-01.ibm.com/support/docview.wss?uid=swg27025142 and I downloaded agent.installer.linux.gtk.x86_64_1.6.1000.20121109_1537.zip which is very old. With that IM, I get the following error:
00:00.39 ERROR [main] com.ibm.cic.agent.internal.application.HeadlessApplication run

  {IM install directory}/tools/imcl:
  Problem in command line: -toolId imcl -accessRights nonAdmin -silent -showProgress -acceptLicense install com.ibm.websphere.ILAN.v90_9.0.8.20180530_1827 com.ibm.java.jdk.v8 -repositories http://www.ibm.com/software/repositorymanager/V9WASILAN -installationDirectory /opt/IBM/WebSphere/AppServer -secureStorageFile /tmp/credentials -preferences com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false
  Unrecognized command line argument "-secureStorageFile".

Some updates on what IM level to get would be useful and where to get it.

  1. It would have been good if https://hub.docker.com/r/ibmcom/websphere-traditional/ provided simple examples of a Docker file to build a modified tWAS image. That's what I was really looking to do, but ended down this trail.
patricktiu commented 5 years ago

You should always use the latest IM level (currently 1.8.9.1) available in http://www-01.ibm.com/support/docview.wss?uid=swg27025142.

Also, the -secureStorageFile option is only available in IM 1.6.2 and up.

patricktiu commented 5 years ago

I am also working on a new Dockerfile to create tWAS V90 image in my own fork. You can try it and let me know any feedback.

https://github.com/patricktiu/ci.docker.websphere-traditional/tree/development/v90

arthurdm commented 5 years ago

hi @cthigh - have you tried the build with the latest docs? I have been building them successful after we switched to the new Dockerfiles.

cthigh commented 5 years ago

Hi @arthurdm, I hadn't tried but gave it a go just now. Since I am on MacOS, it doesn't work for me. The only other feedback I have is that finding the IM URL had a few more clicks between each step (at least on MAC). I did finally find it.

I didn't try Linux. If this is working for you on Linux, I am OK with you closing the issue.

2018-11-15 14:15:58 (8.20 MB/s) - 'agent.installer.macosx.cocoa.x86_64_1.8.9002.20181015_1517.zip' saved [123758886/123758886]

unzip:  cannot find or open agent.installer.linux.gtk.x86_64*.zip, agent.installer.linux.gtk.x86_64*.zip.zip or agent.installer.linux.gtk.x86_64*.zip.ZIP.

No zipfiles found.
The command '/bin/sh -c cd /work && wget $IMURL   && unzip agent.installer.linux.gtk.x86_64*.zip -d /work/InstallationManagerKit   && rm -rf agent.installer.linux.gtk.x86_64*.zip   && echo "your_secureStore_password" > /tmp/secureStorePwd   && /work/InstallationManagerKit/tools/imutilsc saveCredential     -userName $IBMID -userPassword $IBMID_PWD     -secureStorageFile /tmp/secureStore     -masterPasswordFile /tmp/secureStorePwd     -url $REPO   && /work/InstallationManagerKit/tools/imcl install     $PRODUCTID com.ibm.java.jdk.v8     -acceptLicense -accessRights nonAdmin -showProgress     -installationDirectory /opt/IBM/WebSphere/AppServer -repositories $REPO     -installFixes $IFIXES -sRD /opt/IBM/WebSphere/AppServerIMShared     -dataLocation /opt/IBM/WebSphere/AppServerIMData     -secureStorageFile /tmp/secureStore -masterPasswordFile /tmp/secureStorePwd     -preferences offering.service.repositories.areUsed=false,com.ibm.cic.common.core.preferences.searchForUpdates=true,com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false,com.ibm.cic.common.core.preferences.keepFetchedFiles=false   && rm -Rf /tmp/secureStorePwd /tmp/secureStore /work/InstallationManagerKit' returned a non-zero code: 9
cthigh@us.ibm.com@cindys-mbp docker-build (master) $ 
arthurdm commented 5 years ago

hi @cthigh - You can build this on a mac too - that's what I am doing. You still pick the linux IM link because it's Ubuntu inside the container.

cthigh commented 5 years ago

It builds sucessfully now. I didn't think about IM running in the container!

I have one question. Are the red status lines displayed when downloading the IM image supposed to overwriting the same line with the new status? It is spewing out 100s of lines: image

A later status works that way: image

patricktiu commented 5 years ago

It is the status from wget. Maybe add "-q" option can suppress the status.

arturdzm commented 5 years ago

Looks to be resolved, closing