Giter Site home page Giter Site logo

mileworks / golang-files-preview Goto Github PK

View Code? Open in Web Editor NEW
66.0 3.0 20.0 31.65 MB

Golang 文件预览支持 office\pdf\cad\achieve\txt\image\video files

License: Apache License 2.0

Go 98.86% Dockerfile 1.14%
office file-preview zip pdf image filepreview golang golang-application

golang-files-preview's Introduction

Golang-File-Preview

文件预览服务

1、对Word\Excel\PPT\PDF 在线预览
2、实现CAD标准dwg\dxf 文件预览
3、压缩文件预览:tar.gz\tar.bzip2\tar.xz\zip\rar\tar\brotli\bzip2\flate\gzip\lz4\snappy\xz\zstandard
4、支持txt,java,php,py,md,js,css等所有纯文本
5、支持jpg,jpeg,png,gif等图片预览
6、支持avi,mp4,flv等视频预览

效果图

avatar

构建镜像步骤
1、首先构建基础环境镜像
docker build -t plm-files-preview-services -f Dockerfile .

2、然后执行启动服务指令
docker-compose up -d

golang-files-preview's People

Contributors

long0419 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

golang-files-preview's Issues

能否麻烦更新一下Docker镜像呢?

我看之前你将Docker镜像放在了registry.cn-hangzhou.aliyuncs.com/plm-services/plm_files_preview:latest ,这个目前已经不可访问,可否重新将镜像放出来?

GCP

gcloud compute networks create example-ks --subnet-mode custom
gcloud compute networks subnets create ks-nodes --network example-ks --range 10.240.0.0/24
gcloud compute firewall-rules create example-ks-allow-internal --allow tcp,udp,icmp,ipip --network example-ks --source-ranges 10.240.0.0/24
gcloud compute firewall-rules create example-ks-allow-external --allow tcp:22,tcp:6443,icmp --network example-ks --source-ranges 0.0.0.0/0

gcloud compute instances create controller
--async
--boot-disk-size 200GB
--can-ip-forward
--image-family ubuntu-1804-lts
--image-project ubuntu-os-cloud
--machine-type n1-standard-2
--private-network-ip 10.240.0.11
--scopes compute-rw,storage-ro,service-management,service-control,logging-write,monitoring
--subnet ks-nodes
--zone asia-east1-a
--tags example-ks,controller

for i in 0 1 2; do
gcloud compute instances create worker-${i}
--async
--boot-disk-size 200GB
--can-ip-forward
--image-family ubuntu-1804-lts
--image-project ubuntu-os-cloud
--machine-type n1-standard-2
--private-network-ip 10.240.0.2${i}
--scopes compute-rw,storage-ro,service-management,service-control,logging-write,monitoring
--subnet ks-nodes
--zone asia-east1-a
--tags example-ks,worker
done

https://docs.projectcalico.org/getting-started/kubernetes/self-managed-public-cloud/gce

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.