Skip to content

Commit 699d79c

Browse files
committed
release 5.2
- update CHANGELOG - add release.sh - small fix to allow to set initialize url in docker
1 parent 8d4d62f commit 699d79c

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ section for the next release.
55

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

8-
## [Unreleased]
8+
## [5.2.0] - 2019-03-11
99

1010
### Added
1111

12+
- Ability to set the initialize URL in docker
1213
- #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.
1314
- #597 : Moved `dump.bety.sh` and `load.bety.sh` from PEcAn to BETY.
1415

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ ARG BETY_GIT_DATE="unknown"
4141
# environment variables used
4242
ENV LOCAL_SERVER=99 \
4343
REMOTE_SERVERS="0 1 2 5" \
44+
INITIALIZE_FLAGS="-g -u" \
45+
INITIALIZE_URL="-w https://ebi-forecast.igb.illinois.edu/pecan/dump/all/bety.tar.gz" \
4446
RAILS_ENV="production" \
4547
RAILS_RELATIVE_URL_ROOT="" \
4648
SECRET_KEY_BASE="ThisIsNotReallySuchAGreatSecret" \

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ case $1 in
66
echo "Create new database, initialized from all data."
77
psql -h postgres -p 5432 -U postgres -c "CREATE ROLE bety WITH LOGIN CREATEDB NOSUPERUSER NOCREATEROLE PASSWORD 'bety'"
88
psql -h postgres -p 5432 -U postgres -c "CREATE DATABASE bety WITH OWNER bety"
9-
./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
9+
./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}
1010
;;
1111
"sync" )
1212
echo "Synchronize with servers ${REMOTE_SERVERS}"

release.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
VERSION="5.2.0"
4+
#DEBUG=echo
5+
6+
TAGS=""
7+
TMPVERSION="${VERSION}"
8+
OLDVERSION=""
9+
while [ "$OLDVERSION" != "$TMPVERSION" ]; do
10+
TAGS="${TAGS} ${TMPVERSION}"
11+
OLDVERSION="${TMPVERSION}"
12+
TMPVERSION=$(echo ${OLDVERSION} | sed 's/\.[0-9]*$//')
13+
done
14+
15+
${DEBUG} docker pull pecan/bety:${VERSION}
16+
17+
for x in ${TAGS}; do
18+
if [ "$x" == "$VERSION" ]; then continue; fi
19+
20+
${DEBUG} docker tag pecan/bety:${VERSION} pecan/bety:$x
21+
${DEBUG} docker push pecan/bety:$x
22+
done

0 commit comments

Comments
 (0)