{
	"user": "archiveteam",
	"name": "warrior-dockerfile",
	"namespace": "archiveteam",
	"repository_type": "image",
	"status": 1,
	"description": "",
	"is_private": false,
	"is_automated": true,
	"can_edit": false,
	"star_count": 16,
	"pull_count": 10990263,
	"last_updated": "2018-12-17T00:42:59.374566Z",
	"is_migrated": true,
	"collaborator_count": 0,
	"affiliation": null,
	"hub_user": "archiveteam",
	"has_starred": false,
	"full_description": "## A Dockerfile for the [ArchiveTeam Warrior](https://www.archiveteam.org/index.php?title=ArchiveTeam_Warrior)\n<img alt=\"Warrior logo\" src=\"https://www.archiveteam.org/images/f/f3/Archive_team.png\" height=\"100px\"><img alt=\"Docker logo\" src=\"https://upload.wikimedia.org/wikipedia/commons/7/79/Docker_%28container_engine%29_logo.png\" height=\"100px\">\n\nBuild, run, grab the container IP and access the web interface on port 8001.\n\nAvailable as a Trusted Build on the index as [`archiveteam/warrior-dockerfile`](https://index.docker.io/u/archiveteam/warrior-dockerfile/) so you can just\n\n```\ndocker pull archiveteam/warrior-dockerfile\n# run without -d to follow the warrior install process\n# you will need to detach or stop-and-start the container.\n# use -p to bind port 8001 on the docker container\n# (default ip 172.17.0.x) to port 8001 on localhost.\ndocker run [-d] [-p 127.0.0.1:8001:8001] archiveteam/warrior-dockerfile\n```\n\nIf you prefer to just run the process in the background, and automatically start it again after machine reboot, use this instead:\n\n``` shell-interaction\ndocker run --detach \\\n  --publish 127.0.0.1:8001:8001 \\\n  --restart always \\\n  archiveteam/warrior-dockerfile\n```\n\n\n### Configuration\n\n\n#### Manual Using the Web Interface\nTo access the web interface get the container IP from `docker inspect` and point your browser to `http://IP:8001`. If you are running this container on a headless machine, be sure to bind the docker container's port to a port on that machine (e.g. `-p 8001:8001`) so that you can access the web interface on your LAN.\n\nYou can stop and resume the Warrior with `docker stop` and `docker start`\n\n\n#### Using Environment Variables\n\nIf you don't mount a `projects.json` configuration, you can provide seed settings using\nenvironment variables. Once a `projects.json` file exists, environment variables\nwill be ignored. Please note: This is currently not available in the Raspberry PI image.\n\n##### Example:\n\n```shell\n  docker run \\\n      --detach \\\n      --env DOWNLOADER=\"your name\" -e \\\n      --env SELECTED_PROJECT=\"auto\" \\\n      --publish 8001:8001 \\\n      --restart always \\\n      archiveteam/warrior-dockerfile\n```\n\n##### Mapping\n\n| ENV                  | JSON key             | Example           | Default |\n|----------------------|----------------------|-------------------|---------|\n| DOWNLOADER           | downloader           |                   |         |\n| HTTP_PASSWORD        | http_password        |                   |         |\n| HTTP_USERNAME        | http_username        |                   |         |\n| SELECTED_PROJECT     | selected_project     | `auto`, `tumblr`  |         |\n| SHARED_RSYNC_THREADS | shared:rsync_threads |                   | `20`    |\n| WARRIOR_ID           | warrior_id           |                   |         |\n| CONCURRENT_ITEMS     | concurrent_items     |                   | `3`     |\n\n## Raspberry Pi\nYou can build the container with the following command:\n``` shell-interaction\ndocker build --rm -t warrior-arm32v5:latest -f Dockerfile.raspberry .\n```\n\nThe image needs a place to store the downloaded data as well as its\nconfiguration.  Say you have a location suitable at /var/local/warrior\nuse the command below, otherwise update the data and config.json paths.\n\nFirst, create an empty config.json if it doesn't exist.  Otherwise when you\nmount the path with docker it will create it as a directory.\n``` shell-interaction\ntouch /var/local/warrior/config.json\n```\n\nNow start the container.\n``` shell-interaction\ndocker run \\\n\t--volume /var/local/warrior/data:/data/data \\\n\t--volume /var/local/warrior/config.json:/home/warrior/projects/config.json \\\n\t--publish 8001:8001 \\\n\t--restart always \\\n\twarrior-arm32v5:latest\n```\n",
	"permissions": {
		"read": true,
		"write": false,
		"admin": false
	}
}