Skip to content

Commit

Permalink
release 5.2
Browse files Browse the repository at this point in the history
- update CHANGELOG
- add release.sh
- small fix to allow to set initialize url in docker
  • Loading branch information
robkooper committed Mar 11, 2019
1 parent 8d4d62f commit 699d79c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ section for the next release.

For more information about this file see also [Keep a Changelog](http://keepachangelog.com/) .

## [Unreleased]
## [5.2.0] - 2019-03-11

### Added

- Ability to set the initialize URL in docker
- #505 : Added a new attributes table. This table allows to store through polymorphism any additional information with any row in any table. The value stored is a json document.
- #597 : Moved `dump.bety.sh` and `load.bety.sh` from PEcAn to BETY.

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ ARG BETY_GIT_DATE="unknown"
# environment variables used
ENV LOCAL_SERVER=99 \
REMOTE_SERVERS="0 1 2 5" \
INITIALIZE_FLAGS="-g -u" \
INITIALIZE_URL="-w https://ebi-forecast.igb.illinois.edu/pecan/dump/all/bety.tar.gz" \
RAILS_ENV="production" \
RAILS_RELATIVE_URL_ROOT="" \
SECRET_KEY_BASE="ThisIsNotReallySuchAGreatSecret" \
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ case $1 in
echo "Create new database, initialized from all data."
psql -h postgres -p 5432 -U postgres -c "CREATE ROLE bety WITH LOGIN CREATEDB NOSUPERUSER NOCREATEROLE PASSWORD 'bety'"
psql -h postgres -p 5432 -U postgres -c "CREATE DATABASE bety WITH OWNER bety"
./script/load.bety.sh -a "postgres" -d "bety" -p "-h postgres -p 5432" -o bety -c -u -g -m ${LOCAL_SERVER} -r 0 -w https://ebi-forecast.igb.illinois.edu/pecan/dump/all/bety.tar.gz
./script/load.bety.sh -a "postgres" -d "bety" -p "-h postgres -p 5432" -o bety -c ${INITIALIZE_FLAGS} -m ${LOCAL_SERVER} -r 0 ${INITIALIZE_URL}
;;
"sync" )
echo "Synchronize with servers ${REMOTE_SERVERS}"
Expand Down
22 changes: 22 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

VERSION="5.2.0"
#DEBUG=echo

TAGS=""
TMPVERSION="${VERSION}"
OLDVERSION=""
while [ "$OLDVERSION" != "$TMPVERSION" ]; do
TAGS="${TAGS} ${TMPVERSION}"
OLDVERSION="${TMPVERSION}"
TMPVERSION=$(echo ${OLDVERSION} | sed 's/\.[0-9]*$//')
done

${DEBUG} docker pull pecan/bety:${VERSION}

for x in ${TAGS}; do
if [ "$x" == "$VERSION" ]; then continue; fi

${DEBUG} docker tag pecan/bety:${VERSION} pecan/bety:$x
${DEBUG} docker push pecan/bety:$x
done

0 comments on commit 699d79c

Please sign in to comment.