docker / getting-started

Getting started with Docker
Apache License 2.0
2.91k stars 6.4k forks source link

Neither Microsoft azurite nor ArangoDB would launch or become available within docker #430

Open Arash-Sabet opened 8 months ago

Arash-Sabet commented 8 months ago

We are following the steps outlined in this article to create a Keda build agent, and it was a successful process. We added the following steps to the docker file to include and run azurite and arangodb in the docker image to utilize in our Azure DevOps pipelines' integration tests:

RUN echo arangodb3 arangodb3/password root | debconf-set-selections
RUN echo arangodb3 arangodb3/password_again root | debconf-set-selections
RUN echo arangodb3 arangodb3/backup boolean false | debconf-set-selections
RUN echo arangodb3 arangodb3/upgrade boolean true | debconf-set-selections
RUN sudo apt-get install arangodb3=3.11.6-1
RUN sudo service arangodb3 start

RUN sudo apt-get -y install nodejs
RUN sudo apt-get install -y nodejs npm
RUN sudo npm install -g azurite
RUN sudo npm fund
RUN sudo mkdir azurite
RUN sudo azurite --silent --location azuritefiles --debug azuritefiles\debug.log &

Unfortunately the integration tests in our Azure DevOps' build pipelines are failing due to the following errors:

It's unclear whether or not the azurite and ArangoDB instances refrain from launching or their ports are unavailable internally within the image which sound unlikely. Regardless, we are not observing any error messages suggesting a failure in building and running the docker image.

Any suggestions on how to fix this issue?