Sign inSign up

arpanpal010/alpine-autoindex

By arpanpal010

•Updated almost 9 years ago

Automated NGINX/JSON/Autoindex image built from nginx on a Raspberry Pi 3/Intel NUC.

Image
1

1.8K

arpanpal010/alpine-autoindex repository overview

⁠Alpine-AutoIndex

⁠Container for File Server based on NGINX.

Image⁠ for a nginx-autoindex-js⁠ running with NGINX⁠ in a container.

Built from my alpine-nginx⁠ image. Based on Alpine Linux⁠

The image is tagged respectively for 2 architectures,

  • armhf
  • x86_64

NGINX listens on port 64801 and make all the files available at the volume /storage indexed as /media/* and is displayed using the autoindex webapp at /. The webapp is slightly modified to match up with the download urls of NGINX. PS: The image only provides the service and does not have any security/authentication and is meant to be proxied out through another server.


⁠Get the Image

Pull the image for your architecture it's already available from Docker Hub.

# make pull
docker pull arpanpal010/alpine-autoindex:x86_64


⁠Run

# make
docker run --rm -it \
  --name docker_autoindex --hostname autoindex \
  -e PGID=100 -e PUID=1000 \
  -c 64 -m 64m \
  -p 64801:64801 \
  -v storage:/storage:ro \
  -v /etc/hosts:/etc/hosts:ro \
  -v /etc/localtime:/etc/localtime:ro \
  -e TZ=Asia/Kolkata \
  arpanpal010/alpine-autoindex:x86_64

# make stop
docker stop -t 2 docker_autoindex

# make rm
# stop first
docker rm -f docker_autoindex

# make restart
docker restart docker_autoindex


⁠Shell access

# make rshell
docker exec -u root -it docker_autoindex /bin/bash

# make shell
docker exec -it docker_autoindex /bin/bash

# make logs
docker logs -f docker_autoindex


⁠Services

PS: this bit is for dev only as you need the files from the repo.

# make systemd
# add systemd.service as a service if it exists, load it, and start or restart
# it if already running.

# make logs
docker logs -f docker_autoindex


⁠Development


If you have the repository access, you can clone and build the image yourself for your own system, and can push after.


⁠Setup

Before you clone the repo, you must have Git⁠, GNU make⁠, and Docker⁠ setup on the machine.

git clone <repository url>
cd <repository>

You can always skip installing make but you will have to type the whole docker commands then instead of using the sweet make targets.


⁠Build

To locally build the image for your system.

# make build
  docker build --rm --force-rm \
  -t arpanpal010/alpine-autoindex:x86_64
  --no-cache=true --pull .

# make push
docker push arpanpal010/alpine-autoindex:x86_64


⁠Maintenance


Currently built daily on a RaspberryPi3 (armhf builds) or IntelNUC (x64 builds). Docker hub builds maintained by arpanpal010⁠.

Tag summary

Content type

Image

Digest

Size

8.5 MB

Last updated

almost 9 years ago

docker pull arpanpal010/alpine-autoindex:x86_64