Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abisekwins29 opened this issue Jan 15, 2020 · 5 comments

Comments

@abisekwins29
Copy link

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?

@vanderzago
Copy link

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.

@abisekwins29
Copy link
Author

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.

@gmarcy
Copy link
Collaborator

gmarcy commented Feb 5, 2020

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.

@abisekwins29
Copy link
Author

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 ?

@rrbbss77
Copy link

rrbbss77 commented Apr 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants