Initial commit

main
Georg Krause 2020-09-15 20:03:07 +02:00
commit afd314ff97
No known key found for this signature in database
GPG Key ID: FD479B9A4D48E632
4 changed files with 65 additions and 0 deletions

33
.drone.yml Normal file
View File

@ -0,0 +1,33 @@
---
kind: pipeline
type: exec
name: build
platform:
os: linux
arch: arm64
steps:
- name: pull
commands:
- git submodule init
- git submodule update
- cd papermerge
- git checkout $(git ls-remote -q --tags --refs --sort="committerdate" | tail -n1 | cut -d "/" -f3-)
- cd ..
- name: build
commands:
- cd papermerge/docker/1.4/
- docker build -t gcrkrause/papermerge-app:$(git submodule status | awk -F"[()]" '{print $2}') app.dockerfile --no-cache
- docker tag gcrkrause/papermerge-app:$(git submodule status | awk -F"[()]" '{print $2}') gcrkrause/papermerge-app:latest
- name: push
environment:
USERNAME:
from_secret: docker-hub-user
PASSWORD:
from_secret: docker-hub-pw
commands:
- docker login -u $USERNAME -p $PASSWORD
- docker push gcrkrause/papermerge-app:latest
- docker push gcrkrause/papermerge-app:$(git submodule status | awk -F"[()]" '{print $2}')
- docker image prune -a -f

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "papermerge"]
path = papermerge
url = https://github.com/ciur/papermerge.git

28
docker-compose.yml Normal file
View File

@ -0,0 +1,28 @@
---
version: '2'
services:
cryptpad:
image: "promasu/cryptpad:latest"
hostname: cryptpad
volumes:
- ./data/blob:/cryptpad/blob
- ./data/block:/cryptpad/block
- ./customize:/cryptpad/customize
- ./data/config.js:/cryptpad/config/config.js
- ./data/data:/cryptpad/data
- ./data/files:/cryptpad/datastore
ports:
- "3000:3000"
- "3001:3001"
expose:
- "3000"
- "3001"
ulimits:
nofile:
soft: 1000000
hard: 1000000

1
papermerge Submodule

@ -0,0 +1 @@
Subproject commit fcee465c30f7d781e46dce3795a062852178c23e