spotlight icon indicating copy to clipboard operation
spotlight copied to clipboard

Spotlight Docker image is missing

Open corylown opened this issue 3 years ago • 3 comments

The Spotlight repository includes a dockerfile, but it does not appear to work -- and support for Docker is undocumented. When running docker-compose up --build I get the following error:

spotlight % docker-compose up --build
Pulling db_migrate (spotlight:)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling db_migrate (spotlight:)...
ERROR: pull access denied for spotlight, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

corylown avatar Jun 29 '22 18:06 corylown

sorry for not seeing this sooner; that error is because of an issue docker compose has with named images -- it fails if they can't be pulled from a remote repository, instead of falling back on building them locally. to get around this you can run docker-compose build first, then docker-compose up -- instead of using the up --build shortcut.

dunn avatar Sep 21 '22 17:09 dunn

opened #2844 to document this, but note that docker builds are currently broken until https://github.com/projectblacklight/spotlight/pull/2845 is merged.

dunn avatar Sep 21 '22 19:09 dunn

docker-compose build && docker-compose up should work now.

dunn avatar Oct 10 '22 21:10 dunn