-
Notifications
You must be signed in to change notification settings - Fork 3
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
Failed to build the image #12
Comments
You can't comment out the ports and leave the # ports:
# - ${C19_BACKEND_PORT}:8000 The ports should be replaced with the ports you want exposed to the outside world. Add the missing |
Thank. My mistake. I've commented out the "port" statements and rerun the compose file. But now I have authorization problem. Please refer to screenshots. Can you please suggested how I can overcome this authorization problem? |
Ok, I went through your reworked docker-compose and can't really understand why you're changing it at all just to put things into a Personally I'd just leave the You will need it to expose ports and the ports are specified in the original compose file and shouldn't need changing. The authentication error is because you are trying to pull directly from the quay.io repository and that doesn't actually contain the required image. I don't know why and it seems a strange thing to do, but you must build the image locally and it just so happens to be called So you must follow the steps in the readme to build the image by cd c19-backend
docker build -t quay.io/opusvl/c19:dev . This will then build the docker image in your local cache, again with the misleading name, but it will work. Then it wont try to pull the image from quay.io. HTH |
Sorry for the delay. |
I don't know what the issue would be for the git clone as the repo is open. Try cloning it using the https version as there could be something on the way causing authentication issues. git clone https://github.com/AppertaFoundation/COVID-19-screening-interface.git As you're also doing this inside vagrant I'm not sure of any special handling for environment:
DJANGO_POSTGRES_USER: ${DJANGO_POSTGRES_USER:-postgres}
DJANGO_POSTGRES_PASSWORD: ${DJANGO_POSTGRES_PASSWORD:-postgres}
DJANGO_POSTGRES_DB: ${DJANGO_POSTGRES_DB:-postgres}
... At least that way it won't matter about a missing That said I'm only a visitor this repo myself. The development on the |
I am using Vagrant because I use Windows OS and one of the Github projects I am toying with have problems running in Windows environment (even when I used Docker for Windows.) So, I switched everything using Vagrant's route. Wrt to environment variables. I looked at what you said and I decided the problem most likely originate from Vagrant side (although I have no issues running docker project using docker compose with .env and vagrantfile). So, following what you suggested, I used the original compose script and .env file the way it is intended to use and run the docker compose up command inside the Ubuntu VM (in the respective directory). Any idea what this is about? And how to resolve this issue? Thank you for your help. |
Sorry, but this is where my knowledge of EHR ends. I can build containers and get it running, but the internal machinations are out of my field and as far as usage, well that's even further from my comfort zone. Ahh, wait a moment. The pg_wal issue - I can't be certain but we couldn't get this built on Azure because the underlying OS is windows and windows doesn't have the same permissions capability as Linux. This cause others with more knowledge of Azure than I to give up and go for a separate instance of postgres. I'm hoping that isn't something you're struggling with here. I do know that using virtualisation like virtual box or vmware with an install of Debian will allow this to run as expected though. |
Paul. Thank you for the response. Just curiously so that I won’t get down the same rabbit hole in the future, did your group move from Azure to AWS or Google Cloud to solve/circumvent the above “pg_wal” access issue? About the Readme file: cd COVID-19-screening-interface/frontend/ What do user do once inside this frontend folder? Readme file didn’t say! Also, the important question is even if I solve all the issues I am experiencing with this project on my laptop, How & where do I access the UI page to see how this screening page looks like and how it works? The Readme page and the main page did not say anything about it. On the main page, instruction ends at "yarn start" I am using this app to understand openEHR protocol & see how it is being used in a use case. Hence this project. Thanks in advance. |
As an update - we are in the process of securing further funding to continue with this project and expect to develop to completion over the next couple of months. We will announce as soon as everything is in place. |
Just by way of clarity, this is where the Azure issue was highlighted for us, thanks to John Meredith of NWIS - https://www.archetextur.es/setting-up-openehr-in-azure-ii-this-time-its-painful/ |
Paul, thanks for the link. |
Hey Stuart, can you give me info on how to access the UI of this app at its current state? |
Sorry, I can't really be of much use once the app is running. I'm an infrastructure guy and get things working, and rarely step into a running app. As Stuart said there is now impetus to continue with this project. In it's current state here we had to build the docker image ourselves - this isn't how we would normally release this type of code, so it's still very much development and at the point the project is now. Let me see if I can find your answers though. |
UI is connecting with middelware right now only to auth users. BACK END:
Troubleshooting: FRONTEND:
file called 'config.js'
|
There are environment variables defined in docker-compose.yml file. I used the example in the dotenv file in docs/example. I got the following errors and failed to build the docker image.
==> default: The Compose file '/vagrant/docker-compose.yml' is invalid because:
==> default: services.c19-backend.ports contains an invalid type, it should be an array
==> default: services.ehrbase.ports contains an invalid type, it should be an array
==> default: services.testprovider.ports contains an invalid type, it should be an array
The following SSH command responded with a non-zero exit status.
What should the above proper array values be?
Attached is my docker-compose.yml and the error screenshot
docker-compose.env.txt
docker-compose.yml.txt
The text was updated successfully, but these errors were encountered: