Note: The following also works with
podman compose up
.
# Create a volume called "warcs"
docker create volume warcs
# Populate the "warcs" volume with files
docker run --rm -v /path/to/my/warcs:/source:Z -v warcs:/target busybox sh -c "cp -r /source/* /target"
If you don't want to create and populate a volume another option is to bind mount the "warcs" volume from a local directory:
# compose.yaml
volumes:
warcs:
# external: true
driver: local
driver_opts:
type: none
o: bind
device: /path/to/my/warcs
Bind mounting a volume can lead to permisssion issues and depends on the container user having permission to read the files mounted on the host.
docker-compose up
The following steps are performed:
- Start solr in cloud mode (with embedded zookeeper).
- Wait for solr to be ready.
- Create a solr configset named "solrwayback".
- Create a solr collection named "solrwayback"
- Index files in the "warc" volume to the Solr "solrwayback" collection.