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

Problems starting structurizr/onpremises Docker Container on OSX #6

Closed
UBessle opened this issue Oct 26, 2022 · 1 comment
Closed

Comments

@UBessle
Copy link

UBessle commented Oct 26, 2022

Hi Simon,

i'm having unexpected problems using structurizr/onpremises Docker Container on OSX (MacBook Pro)

I'm starting the container with

docker run -it --rm -p 8080:8080 -v /Users/uwe/architecture/c4model/.structurizr_data:/usr/local/structurizr structurizr/onpremises

I get the following error message back

Cannot find /usr/local/tomcat/bin/setclasspath.sh
This file is needed to run this program

A similar behaviour for tomcat in Docker Containers is described here and here
Somehow it has to do with some incompatibilities between the installed Tomcat version in the Docker container and the used Docker version, that leads to a situation, where a simple test in the started catalina.sh fails

  if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
    . "$CATALINA_HOME"/bin/setclasspath.sh
  else
    echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
    echo "This file is needed to run this program"
  fi

Unfortunately my possibilities to fix this are very limited as i have no possibility to change the content of the provided Docker Container and the used Tomcat version there.

I've already upgraded my Docker installation to latest available version

docker --version
Docker version 20.10.20, build 9fdeb9c3de

I'm running on

uname -a
Darwin LT958.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64 

Do you have any suggestions how to make structurizr/onpremises working?

Thanks a lot
Uwe

@UBessle UBessle changed the title Problems starting Docker Container on OSX Problems starting structurizr/onpremises Docker Container on OSX Oct 26, 2022
@UBessle
Copy link
Author

UBessle commented Oct 26, 2022

Sorry for bothering you, but i found the root cause for the problem myself. I've upgraded docker cli to 20.10.20, but the docker daemon still used an old version (18.x.x). After restarting the upgraded docker daemon the mysterous problems were gone.

Cheers, Uwe

@UBessle UBessle closed this as completed Oct 26, 2022
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

1 participant