add an S3 storage variant image
This commit is contained in:
parent
2fa45c2159
commit
ce58ceb146
4 changed files with 15 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
FROM alpine:3.16.2
|
FROM alpine:3.16.2
|
||||||
|
|
||||||
ARG ALPINE_PACKAGES="php8-pdo_mysql php8-pdo_pgsql php8-openssl"
|
ARG ALPINE_PACKAGES="php8-pdo_mysql php8-pdo_pgsql php8-openssl"
|
||||||
ARG COMPOSER_PACKAGES=google/cloud-storage
|
ARG COMPOSER_PACKAGES="aws/aws-sdk-php google/cloud-storage"
|
||||||
ARG PBURL=https://github.com/PrivateBin/PrivateBin/
|
ARG PBURL=https://github.com/PrivateBin/PrivateBin/
|
||||||
ARG RELEASE=1.4.0
|
ARG RELEASE=1.4.0
|
||||||
ARG UID=65534
|
ARG UID=65534
|
||||||
|
|
|
@ -6,10 +6,11 @@ This repository contains the Dockerfile and resources needed to create a docker
|
||||||
|
|
||||||
## Image variants
|
## Image variants
|
||||||
|
|
||||||
This is the all-in-one image that can be used with any storage backend supported by PrivateBin: File based storage, database or Google Cloud Storage. We also offer dedicated images for each backend:
|
This is the all-in-one image that can be used with any storage backend supported by PrivateBin: File based storage, databases, Google Cloud or S3 Storage. We also offer dedicated images for each backend:
|
||||||
- [Image for file based storage](https://hub.docker.com/r/privatebin/fs)
|
- [Image for file based storage](https://hub.docker.com/r/privatebin/fs)
|
||||||
- [Image for PostgreSQL, MariaDB & MySQL](https://hub.docker.com/r/privatebin/pdo)
|
- [Image for PostgreSQL, MariaDB & MySQL](https://hub.docker.com/r/privatebin/pdo)
|
||||||
- [Image for Google Cloud Storage](https://hub.docker.com/r/privatebin/gcs)
|
- [Image for Google Cloud Storage](https://hub.docker.com/r/privatebin/gcs)
|
||||||
|
- [Image for S3 Storage](https://hub.docker.com/r/privatebin/s3)
|
||||||
|
|
||||||
## Image tags
|
## Image tags
|
||||||
|
|
||||||
|
|
7
README.s3.md
Normal file
7
README.s3.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# PrivateBin on Nginx, php-fpm & Alpine with S3 Storage backend
|
||||||
|
|
||||||
|
**PrivateBin** is a minimalist, open source online [pastebin](https://en.wikipedia.org/wiki/Pastebin) where the server has zero knowledge of pasted data. Data is encrypted and decrypted in the browser using 256bit AES in [Galois Counter mode](https://en.wikipedia.org/wiki/Galois/Counter_Mode).
|
||||||
|
|
||||||
|
## Image variants
|
||||||
|
|
||||||
|
This is an image optimized for the S3 Storage backend. Please see the [generic image](https://hub.docker.com/r/privatebin/nginx-fpm-alpine) for details on how to use this image, other images variants and the different tags.
|
|
@ -56,11 +56,14 @@ main() {
|
||||||
fs)
|
fs)
|
||||||
BUILD_ARGS="--build-arg ALPINE_PACKAGES= --build-arg COMPOSER_PACKAGES="
|
BUILD_ARGS="--build-arg ALPINE_PACKAGES= --build-arg COMPOSER_PACKAGES="
|
||||||
;;
|
;;
|
||||||
|
gcs)
|
||||||
|
BUILD_ARGS="--build-arg ALPINE_PACKAGES=php8-openssl --build-arg COMPOSER_PACKAGES=google/cloud-storage"
|
||||||
|
;;
|
||||||
pdo)
|
pdo)
|
||||||
BUILD_ARGS="--build-arg ALPINE_PACKAGES=php8-pdo_mysql,php8-pdo_pgsql --build-arg COMPOSER_PACKAGES="
|
BUILD_ARGS="--build-arg ALPINE_PACKAGES=php8-pdo_mysql,php8-pdo_pgsql --build-arg COMPOSER_PACKAGES="
|
||||||
;;
|
;;
|
||||||
gcs)
|
s3)
|
||||||
BUILD_ARGS="--build-arg ALPINE_PACKAGES=php8-openssl"
|
BUILD_ARGS="--build-arg ALPINE_PACKAGES=php8-openssl --build-arg COMPOSER_PACKAGES=aws/aws-sdk-php"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
BUILD_ARGS=""
|
BUILD_ARGS=""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue