Commit af09e97b authored by Dominique Feyer's avatar Dominique Feyer

TASK: Use ttree/flowapp:7.1-cron as base image

parent c261ae4f
Pipeline #914 passed with stages
in 43 seconds
FROM php:7.1.2-alpine
FROM ttree/flowapp:7.1-cron
MAINTAINER Dominique Feyer <dfeyer@ttree.ch>
......
The MIT License (MIT)
Copyright (c) 2015 Dominique Feyer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
include ./Makefile.base
build: ##@base build images in test-stack
$(DOCKER_COMPOSE) build --pull
......@@ -6,9 +6,6 @@ DOCKER_HOST ?= localhost
default: help
build: ##@base build images in test-stack
$(DOCKER_COMPOSE) build --pull
up: ##@base start stack
$(DOCKER_COMPOSE) up -d
......
Manage for backup from a docker container
=========================================
Based on https://phpbu.de/
You can use this container to build your own, check the documentation on phpbu.de.
# Build your own
You can start with this ```Dockerfile```:
FROM ttree/phpbu:latest
ADD phpbu.xml /phpbu.xml
# Simple run
Here a simple example to use the container to backup a local directory and a database. The backup will be stored in the ```destination``` director of the working directory.
docker run \
--link youdbcontainer:mysql \
-v /data:/source \
-v $(pwd)/destination:/destination \
-e "CRYPT_PASSWORD=h33lo" \
--rm -it phpbu_app
PHPBU support exporting the backup to S3, Dropbox, ... so you don't need to touch the disk of the host machine. You can also mount volumes from other containers, ... Feel free to be creative ;)
Acknowledgments
---------------
Development sponsored by [ttree ltd - neos solution provider](http://ttree.ch).
We try our best to craft this package with a lots of love, we are open to
sponsoring, support request, ... just contact us.
License
-------
Licensed under MIT, see [LICENSE](LICENSE)
......@@ -16,13 +16,6 @@
<option name="password" value="adapter:env:CRYPT_PASSWORD"/>
<option name="algorithm" value="adapter:dotenv:CRYPT_WITH"/>
</crypt>
<sync type="amazons3">
<option name="key" value="adapter:env:AWS_KEY"/>
<option name="secret" value="adapter:env:AWS_SECRET"/>
<option name="bucket" value="adapter:env:AWS_BUCKET"/>
<option name="region" value="adapter:env:AWS_REGION"/>
<option name="path" value="adapter:env:AWS_PATH"/>
</sync>
<cleanup type="quantity">
<option name="amount" value="10"/>
</cleanup>
......@@ -38,13 +31,6 @@
<option name="password" value="adapter:env:CRYPT_PASSWORD"/>
<option name="algorithm" value="adapter:dotenv:CRYPT_WITH"/>
</crypt>
<sync type="amazons3">
<option name="key" value="adapter:env:AWS_KEY"/>
<option name="secret" value="adapter:env:AWS_SECRET"/>
<option name="bucket" value="adapter:env:AWS_BUCKET"/>
<option name="region" value="adapter:env:AWS_REGION"/>
<option name="path" value="adapter:env:AWS_PATH"/>
</sync>
<cleanup type="quantity">
<option name="amount" value="10"/>
</cleanup>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment