Revant Nandgaonkar
|
93c1dc50d5
|
fix: only download and restore latest backup
|
2020-05-22 15:15:33 +05:30 |
|
Revant Nandgaonkar
|
e1f0e62211
|
fix: restore backup grant privileges command
|
2020-04-29 22:52:15 +05:30 |
|
Revant Nandgaonkar
|
3181bc66b3
|
fix: restore backup create user password command
|
2020-04-29 19:32:51 +05:30 |
|
Chinmay D. Pai
|
8f20e5e00d
|
chore: escape backticks on db commands
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
|
2020-04-29 11:44:58 +05:30 |
|
Chinmay D. Pai
|
884a82d814
|
fix: make semantic changes to commands
* add missing __main__ call to commands.py
* remove unnecessary imports
* fix backup WITH_FILES logic
* follow python semantics (?)
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
|
2020-04-29 01:45:59 +05:30 |
|
Revant Nandgaonkar
|
479ce83f5c
|
fix: required region s3 compatible backup/restore
|
2020-04-26 22:48:35 +05:30 |
|
girish pasupathy
|
7498d5439a
|
Support for reading Mariadb and Admin password from file when using docker secrets
With this PR, password can be read from docker secrets in both compose as well as swarm environment.
```YAML
secrets:
mariadb-root-password:
file: mariadb-root-password.txt
erpnext-admin-password:
file: erpnext-admin-password.txt
services:
erpnext:
image: frappe/erpnext-worker:${ERPNEXT_VERSION:-v12.5.2}
environment:
- SITE_NAME=example.com
- DB_ROOT_USER=root
- MARIADB_HOST=mariadb
- INSTALL_APPS=erpnext
- FORCE=1
- REDIS_CACHE=redis-cache:6379
- REDIS_QUEUE=redis-queue:6379
- REDIS_SOCKETIO=redis-socketio:6379
- SOCKETIO_PORT=9000
- AUTO_MIGRATE=1
- ADMIN_PASSWORD_FILE=/run/secrets/erpnext-admin-password
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mariadb-root-password
secrets:
- erpnext-admin-password
- mariadb-root-password
restart: on-failure
volumes:
- erpnext-data:/home/frappe/frappe-bench/sites
- assets-data:/home/frappe/frappe-bench/sites/assets
links:
- redis-cache
- redis-queue
- redis-socketio
- mariadb
depends_on:
- mariadb
- redis-cache
- redis-queue
- redis-socketio
networks:
- erpnext-net
```
Reference: [Addind docker secrets in to your images](https://docs.docker.com/engine/swarm/secrets/#build-support-for-docker-secrets-into-your-images)
Changes to be committed:
modified: ../../README.md
modified: ../common/commands/new.py
modified: ../common/commands/restore_backup.py
modified: ../erpnext-nginx/docker-entrypoint.sh
|
2020-04-16 11:49:40 +05:30 |
|
Revant Nandgaonkar
|
4e7b7690ee
|
fix: backup and restore
new command FORCE=1 error fixed
only push backups if exists
prepare and process db restore
|
2020-03-27 16:07:12 +05:30 |
|
Revant Nandgaonkar
|
3a6f7e1934
|
feat: resotre backups from volume or cloud
|
2020-03-27 00:28:50 +05:30 |
|