Commit Graph

12 Commits

Author SHA1 Message Date
Shrikant Sharat Kandula
e9e2df2c28
Store MongoDB creds in separate file from install.sh (#6499)
* Store MongoDB creds in separate file from install.sh

* Move MongoDB credentials to docker.env
2021-08-10 15:07:52 +05:30
Shrikant Sharat Kandula
b7fb9bd58b
Enable auto-start after VM restart (#6428) 2021-08-09 15:17:12 +05:30
Arpit Mohan
9a4b9c27cd
Locking mongo Docker container to 4.4.6 (#5950)
Mongo v5 has some issues with seeding data. Refer:  https://stackoverflow.com/questions/68392064/error-when-running-mongo-image-docker-entrypoint-sh-line-381
Hence, locking the mongo version to a known working tag till we have more information on the problem.
2021-07-19 13:39:37 +05:30
Arpit Mohan
9d1d9ed335
Adding cleanup flag to remove old images when appsmith auto-updates (#3219) 2021-02-25 18:19:16 +05:30
Arpit Mohan
40ddc9b3ee
Giving complete URL for the containers because it's required for auto update container (#1434) 2020-10-28 11:04:03 +05:30
Shrikant Sharat Kandula
681a4bdcc9
Fix Let's Encrypt certificate generation for self-hosted (#491)
* Creating SSL certificates now works

* Work with single domain

* Move certificate generation into install script

* Download templates from master branch, not release
2020-09-03 18:04:58 +05:30
Shrikant Sharat Kandula
868757155a
Add watchtower for auto updates to Appsmith containers (#456)
* Trying to move horizontal rules into separate function

* Delete install_dir if exists already, after confirmation

* Add confirm function to take user conformations

* Resolve warnings on read command without -r option

* Use temporary directory for downloaded templates

* Fix inverted calls to confirm

* nginx template doesn't use global variables now

* docker compose template doesn't depend on global vars now

* Fix port checking for CentOS

* Fix encryption.env to not use global variables

* Fix mongo-init to not use global variables

* Fix docker.env file to not use any global variables

* Fix letsencrypt script to not use any global variables

* Set mongo_database in the docker-compose file

Spotted this after global variables were reduced. The `mongo_database`
was not being used anywhere.

* Move password generation into a function

* Attempt to add watchtower

* Fix port checking in install script for CentOS

* Don't offer to delete install dir if it already exists

* Remove vagrant source for templates (it's a dev-time thing only)
2020-09-02 16:42:33 +05:30
Arpit Mohan
4a62da9b36
Modifying the docker-compose templates to only expose required ports (#207)
* Modifying the docker-compose templates to only expose required ports from Nginx

* Also, adding function to check if the required ports are open & available for use by Appsmith
2020-08-03 20:32:54 +05:30
Manish
391347224d
adding base-install.sh and boot.sh (#92)
Adding the following files in order to create the AWS AMI 
* boot.sh
* base-install.sh
* configure-ssl.sh file to run to modify app.conf file of nginx and to run init-letsencrypt.sh which generate SSL certificate.

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2020-07-21 16:54:08 +05:30
Arpit Mohan
1060423b99
Modifying deploy script to replace nginx configuration at runtime (#106)
* Getting the script to work on Mac OS X Bash Version 3

* Correcting the nginx template configuration and Dockerfile for the appsmith-editor. Now any replaced environment variables will be replaced when the Nginx Docker container restarts.
2020-07-16 11:47:45 +05:30
Trisha Anand
fd0f23b9cc
Database credentials encryption in MongoDB (#80)
* Encrypting the password stored in AuthenticationDTO for every db.

* Adding comment to the properties file to denote that adding encryption salt and password are mandatory to the server coming up.

* Added the encryption salt and password to server.yml to allow the github actions to succeed.

* Adding database migration to encrypt the existing passwords for authentication object (used for storing db connection username/password)

Changes to the installation script install.sh:

1. Instead of overwriting the existing encryption password or salt, giving the user an option to conserve the previous encryption credentials to ensure that the developer users do not lose access to their database configurations (passwords).
2. Added another file for writing encryption credentials (encryption.env) to ensure that we dont delete the encryption password and salt by mistake.
2020-07-14 14:45:08 +05:30
Arpit Mohan
4e08e69351
Adding the deployment shell script for Linux instances (#62)
TODO: Need to add checks for MacOS machines as well.

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2020-07-10 19:18:42 +05:30