Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noteed/rsync-hackage
Rsync daemon to serve Hackage
https://github.com/noteed/rsync-hackage
Last synced: about 2 months ago
JSON representation
Rsync daemon to serve Hackage
- Host: GitHub
- URL: https://github.com/noteed/rsync-hackage
- Owner: noteed
- Created: 2014-08-06T16:38:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-08T21:55:47.000Z (over 10 years ago)
- Last Synced: 2023-04-13T10:31:56.700Z (over 1 year ago)
- Language: Shell
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rsync daemon to serve Hackage
This is a Docker image to serve Hackage packages through an anonymous rsync
daemon.It is used at http://hackage.reesd.com/. The whole archive is about 3.6G.
## Create the Docker image
Assuming you want to name the resulting image `noteed/rsync-hackage`, you can
run the following command to build it:> docker build -t noteed/rsync-hackage .
## Run the Docker image
Assuming you have built a `static` directory (that can be served with Nginx, as
explained at https://github.com/noteed/nginx-hackage), you can expose it
through rsync with:> docker run -d \
-p 873:873 \
-v `pwd`/static:/hackage \
noteed/rsync-hackage## Downloading from the daemon
You can make a copy of the exposed directory with:
> rsync -az rsync://xxx.xxx.xxx.xxx/hackage static
This will create a `static` directory in the current directory. Ready to be
served with either rsync or Nginx.