ci.docker.websphere-traditional icon indicating copy to clipboard operation
ci.docker.websphere-traditional copied to clipboard

Running the image by passing values for the environment variables - giving error

Open abisekwins29 opened this issue 5 years ago • 5 comments

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=, how can this be possible?

abisekwins29 avatar Jan 15 '20 22:01 abisekwins29

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.

vanderzago avatar Feb 04 '20 12:02 vanderzago

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.

abisekwins29 avatar Feb 05 '20 12:02 abisekwins29

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.

gmarcy avatar Feb 05 '20 16:02 gmarcy

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 ?

abisekwins29 avatar Feb 05 '20 17:02 abisekwins29

I ran into the same issue. I need to run or more so build a container with non default profile name. Could someone help?

rrbbss77 avatar Apr 06 '22 02:04 rrbbss77