From 74ccf9f62678aecf127e77c23f144c5cbcaed544 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Thu, 23 Mar 2023 09:52:23 +0100 Subject: [PATCH] updated info on new docker container source --- README.md | 12 ++++++++++++ rtfm/DOCKER.md | 12 ++++++------ rtfm/INSTALL.md | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eb4d16c..206b070 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,13 @@ PictShare demo

+# [INFO] March '23 +Since Docker Hub won't allow team Organizations anymore, we moved our images to GitHub Container Registry. +So if you want to use the latest version, please use the new image `ghcr.io/hascheksolutions/pictshare` instead of `hascheksolutions/pictshare` Table of contents ================= +* [Quick Start](#quickstart) * [Features](#features) * [Installation](/rtfm/INSTALL.md) * [Configuration](/rtfm/CONFIG.md) @@ -41,6 +45,14 @@ Table of contents --- +## Quickstart + +```bash +docker run -d -p 8080:80 --name=pictshare ghcr.io/hascheksolutions/pictshare +``` + +Then open http://localhost:8080 in your browser + ## New Features in v2 - Added support for external storage diff --git a/rtfm/DOCKER.md b/rtfm/DOCKER.md index 2663e73..386d1eb 100644 --- a/rtfm/DOCKER.md +++ b/rtfm/DOCKER.md @@ -1,8 +1,8 @@ # Docker -The fastest way to deploy PictShare is via the [official Docker repo](https://hub.docker.com/r/hascheksolutions/pictshare/) +The fastest way to deploy PictShare is via the [official Docker package](https://github.com/HaschekSolutions/pictshare/pkgs/container/pictshare) ```bash -docker run -d -p 80:80 -e "TITLE=My own PictShare" -e "URL=http://localhost/" hascheksolutions/pictshare +docker run -d -p 80:80 -e "TITLE=My own PictShare" -e "URL=http://localhost/" ghcr.io/hascheksolutions/pictshare ``` [![Docker setup](http://www.pictshare.net/b65dea2117.gif)](https://www.pictshare.net/8a1dec0973.mp4) @@ -11,26 +11,26 @@ docker run -d -p 80:80 -e "TITLE=My own PictShare" -e "URL=http://localhost/" ha ### Building it ```bash -docker build -t hascheksolutions/pictshare . +docker build -t pictshare . ``` ### Quick start ```bash -docker run -d -p 80:80 --name=pictshare hascheksolutions/pictshare +docker run -d -p 80:80 --name=pictshare ghcr.io/hascheksolutions/pictshare ``` ### Persistent data ```bash mkdir /data/pictshareuploads chown 1000 -R /data/pictshareuploads -docker run -d -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare hascheksolutions/pictshare +docker run -d -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare ghcr.io/hascheksolutions/pictshare ``` ### Persistent data with increased max upload size ```bash mkdir /data/pictshareuploads chown 1000 -R /data/pictshareuploads -docker run -d -e "MAX_UPLOAD_SIZE=1024" -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare hascheksolutions/pictshare +docker run -d -e "MAX_UPLOAD_SIZE=1024" -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare ghcr.io/hascheksolutions/pictshare ``` ## ENV Variables diff --git a/rtfm/INSTALL.md b/rtfm/INSTALL.md index 1ba1893..1980756 100644 --- a/rtfm/INSTALL.md +++ b/rtfm/INSTALL.md @@ -2,7 +2,7 @@ PictShare is written to be run on a linux server with PHP 7 and nginx. We tried to support Windows for some time but ever since we started integrating ffmpeg for MP4 hosting we ditched Windows. - It's highly recommended t hat you use [the official Docker container](https://hub.docker.com/r/hascheksolutions/pictshare) so you don't have to do any manual setup. But if you know what you're doing, you can set it up yourself. + It's highly recommended t hat you use [the official Docker container](https://github.com/HaschekSolutions/pictshare/pkgs/container/pictshare) so you don't have to do any manual setup. But if you know what you're doing, you can set it up yourself. - Make sure you have all PHP7 libraries installed (note on some systems the packages are not called php7-* but just php-* also on some systems php7-mbstring is called php7-mb): ```apt-get install php7-exif php7-gd php7-json php7-openssl php7-fileinfo php7-mbstring php7-mcrypt``` - If you are not using windows, make sure your os have the ```file``` command working: ```apt-get install file```