ci.docker.websphere-traditional
ci.docker.websphere-traditional copied to clipboard
Running the image by passing values for the environment variables - giving error
I am following instruction from: https://github.com/WASdev/ci.docker.websphere-traditional
while running docker run -i -t -e PROFILE_NAME=AppSrv02 -p 9043:9043 -p 9443:9443 --name webshpere-8.5 7c3b17e0a924
I am getting error : WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[/work/config-ibm/webContainer.props]" Starting server ................... /work/start_server.sh: line 22: /opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/startServer.sh: No such file or directory
Also, I would like to have custom CELL_NAME=
Hi,
I think that "No such file or directory" issue is related with the line break type. I have faced with this issue too. Be sure that all shell scripts is LF line break type in your local machine. Open your favorite IDE and save the scripts as Unix Line Break Formmat.
Thanks @vanderzago for your response. But i am using the standard image from dockerhub, and while spawning container from image I am getting this error. All the scripts are part of image and getting run at the time of creating container.
when you built the container 7c3b17e0a924 for webshpere-8.5 did you create it with the AppSrv02 profile name ? if not you need to RUN /work/create_profile.sh to create that profile.
This is the image id which i downloaded from dockerhub, while spawning container from that image i am passing parameter -e PROFILE_NAME=AppSrv02, and expecting that container will create this.
Based on the section: "Running the image by passing values for the environment variables" at https://github.com/WASdev/ci.docker.websphere-traditional
When i need to run RUN /work/create_profile.sh ?
I ran into the same issue. I need to run or more so build a container with non default profile name. Could someone help?