Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/5.3.0 #698

Merged
merged 47 commits into from Apr 15, 2020
Merged

Release/5.3.0 #698

merged 47 commits into from Apr 15, 2020

Conversation

robkooper
Copy link
Member

@robkooper robkooper commented Apr 14, 2020

This marks official release of BETY 5.3.0, following are the release notes.

Please read the next two steps to upgrade your system. Not following these steps could break your instance of BETY.

Password encryption

The previous versions of BETY would ignore the environment variable SECRET_KEY_BASE and use the default value defined in config/defaults.yml. If you have set SECRET_KEY_BASE and upgrade BETY you will not be able to login anymore!. It is best to remove SECRET_KEY_BASE if set and default back to the default SECRET_KEY_BASE.

This release requires a migration.

Steps Needed for Upgrade (Non Docker)

  1. Log in to the server.
  2. cd to the Rails root directory.
  3. Run git pull to get the latest version of the master branch.
  4. Update any gems using bundle
  5. Run the migration in the new release with
    bundle exec rake db:migrate RAILS_ENV=production
  6. Restart the Rails server with
    touch tmp/restart.txt

Steps Needed for Upgrade (Docker)

  1. Log in to the server
  2. cd to the directory with the docker-compose file
  3. update the version of bety (if you don't use latest)
  4. stop BETY
    docker-compose rm --stop bety
  5. download latest version
    docker-compose pull bety
  6. run migration
    docker-compose run --rm bety migrate
  7. start bety
    docker-compose up -d bety

PEcAn dump script

There is a change to the script/dump.bety.sh that will keep the creation/update times of the users in the database. This is needed for future work to speed up database synchronizations. If you use the script standalone, please copy latest script.

Complete list of changes

Fixes

Added

  • script to add new users to bety
  • dockerfile to dump database in docker image for faster restore of database.
  • switched to github actions instead of Travis
  • cronjob on github actions to create pecan/db docker image nightly, will safe also with year-weak (i.e 2020-15)

robkooper and others added 30 commits January 15, 2019 09:29
Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](rack/rack@2.0.7...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [rake](https://github.com/ruby/rake) from 12.3.1 to 13.0.1.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](ruby/rake@v12.3.1...v13.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
when doing a restore some functions would fail to find other functions or tables. Prefixing these with public. fixes problem.
creates docker image pecan/betydb that contains full dump of database and script to quickly restore.
instead of depending on hardcoded url, use information in database.
Remove gunload, was deprecated and removed #551
robkooper and others added 16 commits April 2, 2020 22:17
…-1.10.8

Bump nokogiri from 1.8.5 to 1.10.8
Use github actions instead of travis
- push to github registry and dockerhub
- remove travis scripts
* script to dump database
* docker push + cron
* only push to dockerhub if username/password set
* only run on PecanProject/bety
* script to easily add users to BETY
* make sure to use environment variable for secret

The environment variable SECRET_KEY_BASE was ignored. This fixes #696.
If you had SECRET_KEY_BASE set, please unset it now, otherwise you can no longer login.
load-bety.sh script now uses script/betyuser.sh to add users with correct password.
@robkooper robkooper requested a review from dlebauer April 14, 2020 22:47
@robkooper robkooper merged commit e5a9bf6 into master Apr 15, 2020
@robkooper robkooper deleted the release/5.3.0 branch October 12, 2020 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants