Giter VIP home page Giter VIP logo

linuxdir2html-docker's Introduction

LinuxDir2HTML Docker 增强版

Build image Docker readme update Test image

原始项目页面:https://github.com/homeisfar/LinuxDir2HTML

LinuxDir2HTML 介绍

LinuxDir2HTML 是一个小程序,可帮助您以易于导航的 html 格式创建文件的脱机清单。它是Snap2HTML的仅 CLI 克隆。LinuxDir2HTML 是对DiogenesList的重写,对其进行了重大改进:

  • Python 3.6+
  • 在符号链接上不会失败(符号链接被忽略)
  • 更优雅的调用和理智的使用
  • 快很多很多很多
  • 高度改进的代码

LinuxDir2HTML 将通过使用该项目中的相同 HTML 模板生成与 Snap2HTML 基本相同的输出。

镜像介绍

  1. 增加定时运行功能,可以通过Cron表达式自定义运行时间
  2. 增加内置Nginx,可以直接在网页查看文件情况
  3. alpine 构建,镜像体积更小,层数更少
  4. 支持PUIDPGIDumask设置,减少出现权限问题概率
  5. 支持多目录监控和生成多个HTML文件,通过设置SCAN_DIR_OUT=/Scan:/out/html/index /Scan2:/out/html/index2实现
    • /Scan为监控目录
    • /out/html/index为生成文件的名称(必须在/out/html目录下面)
    • 中间用英文冒号隔开,每组监控之间用空格隔开

部署

docker-cli

docker run -itd \
  --name linuxdir2html \
  -p 4774:4774 \
  -v /out:/out \
  -v /Scan:/Scan \
  -e TZ=Asia/Shanghai \
  -e PUID=1000 \
  -e PGID=1000 \
  -e UMASK=022 \
  -e CRON='0 0 * * *' \
  -e 'SCAN_DIR_OUT=/Scan:/out/html/index /Scan2:/out/html/index2' \
  --log-opt max-size=5m \
  ddsderek/linuxdir2html:latest

docker-compose

version: '3.3'
services:
    linuxdir2html:
        container_name: linuxdir2html
        volumes:
            - '/out:/out'
            - '/Scan:/Scan'
        ports:
            - '4774:4774'
        environment:
            - TZ=Asia/Shanghai
            - PUID=1000
            - PGID=1000
            - UMASK=022
            - 'CRON=0 0 * * *'
            - 'SCAN_DIR_OUT=/Scan:/out/html/index /Scan2:/out/html/index2'
        logging:
          driver: json-file
          options:
            max-size: 5m
        image: 'ddsderek/linuxdir2html:latest'

linuxdir2html-docker's People

Contributors

ddsrem avatar ddsderek avatar renovate[bot] avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.