- Fix a bug introduced in the last version that would exit with code 1 even with success due to bad syntax
- Adds file checks on output database exports to ensure they are valid
- Adds error output when a database cannot be exported
- Adds
SRVINFRA_DATABASE_EXECUTABLE
as an env var which can be set tomariadb
to override the defaultmysql
allowing users to change the database executable used with srvinfra - Sets
set -e
flag to ensure srvinfra fails on any error where previously it could fail silently
- Now uses
-md sha512 -pbkdf2
flags for openssl commands when encrypting and decrypting databases to fix deprecation warning- NOTE: Exported databases prior to v1.0.0 will not be able to be decrypted with this version due to the new flags, if older/newer database files need (d)encypring, you may need to change versions of this tool to match the one the original file was generated with
- Passes the
-c
command to gzip to supress theunknown compression format
error
- Consolidates
SRVINFRA_WEBSITES_DIR
andSRVINFRA_SERVICES_DIR
intoSRVINFRA_SERVICES_DIR
- srvinfra will now determine if there are prod
docker-compose
files in the directory specified and use those when possible and do a normaldocker compose up
when not - When deploying a service, you will no longer need to specify
website
orservice
since srvinfra will determine which kind ofdocker-compose
files are present and change the underlying command accordingly
- srvinfra will now determine if there are prod
- Fixes a command that missed the force recreate flag
- Force recreating containers even if config or images haven't changed
- Attempts to start Traefik before other services on
deploy_all
command - Adds an
import_encrypted_database
command that combines thedecrypt_database_backup
andimport_database
commands
- Removes the hard-coded env vars of the website and service directories and adds instructions on how users can customize their own locations on installation
- Fixes the invocation of the
quiet-pull
flag onupdate
actions
- Uses the
quiet-pull
flag to suppress verbose (unnecessary) output during deployments
- Updates path to projects
- Docker compose commands changed from old
docker-compose
to newdocker compose
invocation
- Added a parameter when importing/exporing databases to specify the database name instead of inferring it based on the image name (closes #1)
- Adds new
decrypt_database_backup
command - Adds new
export_database_secure
command - Adds new
help
command to list all available commands
- Fixes a bug that didn't properly pass the database name to the import/export function after the changes in
v0.3.1
- Adds default filename to sql export of
db.sql
in the current directory - No longer assumes
-db
suffix on database container names (was not compatible with clustered containers) - Changes directories when running the deploy commands instead of referencing
docker-compose
files from another directory (fixes an issue where relative paths inside ofdocker-compose
files could not be found due to how we were referencing them) - Removes a bunch of additional unnecessary
cd
commands
- Adds
import_database
andexport_database
commands for easy data migration to and from Docker containers
- Adds a new
status
command to retrieve the status of a Docker container by name - Always rebuilds Docker images via
--build
- Fixes a bug where the reference to deploy a website was incorrect
- Fixes a bug where parameters were offset by 1 (this was due to the command to run being the 1st parameter which offset everything by 1)
- Initial release allowing one to update or deploy a website or service and update or deploy all of them