Sign inSign up

phlummox/hackage-server

By phlummox

Updated over 4 years ago

docker image for running hackage-server (https://github.com/haskell/hackage-server)

Image
0

1.3K

phlummox/hackage-server repository overview

phlummox/hackage-server

build status

A Docker image for running an instance of hackage-server for testing purposes. It includes an "admin" user (created with password "admin"), that has been added to the "uploaders" group.

hackage-server is built from the hackage-deployment-2020-05-03 tag of the hackage-server Git repository.

The hackage-server documentation claims that the server can be cleanly stopped using ctrl-c, but (since 2016, and as at December 2021) this doesn't always seem to be the case.

The suggested command-line invocation for running a container is:

docker run --rm -it --net=host phlummox/hackage-server:latest \
			hackage-server run  --static-dir=datafiles --base-uri=http://localhost:8080/

If you get errors about lock-files, try:

docker run --rm -it --net=host phlummox/hackage-server:latest \
			bash -c 'rm -f state/db/*/*/*.lock && rm -f state/db/*/*.lock && hackage-server run --static-dir=datafiles --base-uri=http://localhost:8080/'

The Dockerfile used to build the image is available at: https://github.com/phlummox-dev/docker-hackage-server

Tag summary

Content type

Image

Digest

Size

83.4 MB

Last updated

over 4 years ago

docker pull phlummox/hackage-server