bcgov / vc-authn-oidc

Apache License 2.0
142 stars 74 forks source link

No image available for arm64, no swagger UI available during demo #301

Closed finnformica closed 1 year ago

finnformica commented 1 year ago

Hi all,

When attempting the demo after running ./manage build the next command ./manage start failed with the error that not image was available for the host platform - I am using an M1 Macbook Pro, Ventura 13.2.1. I ran into a similar problem with the ACA-py repo and putting this block of code in the manage file solved the issue.

# Set default platform to linux/amd64 when running on Arm based MAC since there are no arm based images available currently.
if [[ $OSTYPE == 'darwin'* ]]; then
  architecture=$(uname -m)
  if [[ "${architecture}" == 'arm'* ]] || [[ "${architecture}" == 'aarch'* ]]; then
    export DOCKER_DEFAULT_PLATFORM=linux/amd64
  fi
fi

However, after solving this problem I tried to access the swagger UI to submit a presentation request and I was unable to access on localhost:5001 or localhost:5432 (this last port I found in the logs). Is anyone able to replicate this and know a fix to this bug? Thank you!

finnformica commented 1 year ago

I've just built and started the images without that block of code and it built successfully from cache and the swagger UI is now available at localhost:5001. Not sure whats happened but the problem seems solved for now.

WadeBarnes commented 1 year ago

The issue may have been due to a startup issue and unrelated to the build, assuming the previous build was successful. You'd have to review the startup logs to know for sure.

esune commented 1 year ago

Closing since it is not a problem anymore, please feel free to reopen if further help is needed.