Skip to content

Commit 16af6e4

Browse files
authored
Merge pull request #720 from PecanProject/release/5.3.1
release 5.3.1
2 parents 7ab931d + b0f8195 commit 16af6e4

99 files changed

Lines changed: 494 additions & 6950 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ log/*
44
tmp/*
55
public/maps/*
66
vendor
7+
initdb/db.dump

.github/pull.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "1"
2+
rules:
3+
- base: master
4+
upstream: pecanproject:master
5+
mergeMethod: none
6+
- base: develop
7+
upstream: pecanproject:develop
8+
mergeMethod: none

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
ruby:
21-
- 2.4
2221
- 2.5
2322
- 2.6
2423
# - 2.7 is not supported, results in error

.github/workflows/dbdump.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: DB Dump
22

33
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
49
schedule:
510
- cron: '0 0 * * *'
611

@@ -39,10 +44,12 @@ jobs:
3944
run: script/load.bety.sh -a "postgres" -p "-h localhost" -d "bety" -o bety -m 99 -r 2 -w ftp://anon:anon@ftp.test.bnl.gov/outgoing/betydb/bety.tar.gz
4045

4146
- name: Sync with Wisconsin
42-
run: script/load.bety.sh -a "postgres" -p "-h localhost" -d "bety" -o bety -m 99 -r 5 -w http://tree.aos.wisc.edu:6480/sync/dump/bety.tar.gz
47+
run: script/load.bety.sh -a "postgres" -p "-h localhost" -d "bety" -o bety -m 99 -r 5 -w http://fen.aos.wisc.edu:6480/sync/dump/bety.tar.gz
4348

4449
- name: Dump Database
45-
run: pg_dump -h localhost -U postgres -F c bety > initdb/db.dump
50+
run: |
51+
PG=$(docker ps | awk '/postgis/ { print $1 }')
52+
docker exec ${PG} pg_dump -h localhost -U postgres -F c bety > initdb/db.dump
4653
4754
- name: Build Docker with Database dump
4855
run: |

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea/
22
.bundle/
3+
.gem/
34
.yardoc/
45
vendor/bundle
56
log
@@ -20,8 +21,12 @@ config/initializers/site_keys.rb
2021
.Rproj.user
2122
public/assets
2223

24+
.env
2325
docker-compose.override.yml
2426
docker-compose.override.yaml
2527

2628
# Ignore encrypted secrets key file.
2729
config/secrets.yml.key
30+
31+
# Ignore db dump
32+
initdb/db.dump

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.3.8
1+
ruby-2.5.9

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,25 @@ You will need to install the latest version of BETY (or the version you want to
1717

1818
In this case you can simply pull down the version you want, and run `docker-compose bety migrate`.
1919

20-
## [Unreleased]
20+
## [5.3.1] - 2021-10-07
21+
22+
### Added
23+
- configuration to sync forks of BETY using https://github.com/wei/pull
24+
- configuration to set root_url
25+
26+
### Fixes
27+
- Fixes to the docker build to fit in kubernetes helm chart.
28+
- Added Wisconsin back to database dump workflow
29+
- Catch exception when load.bety fails and cleans up /tmp folder
30+
- Fix problem with sendmail causing error on new user sign up https://github.com/PecanProject/bety/issues/677
31+
32+
### Changed
33+
34+
- [#705](https://github.com/PecanProject/bety/pull/705) : More clearly indicate method is optional in bulk upload
35+
- updated rails to 5.2.4.5
36+
- removed static route, it was only used to render 404.
37+
- allow n=1 in bulk upload https://github.com/PecanProject/bety/pull/704
38+
2139

2240
## [5.3.0] - 2020-04-15
2341

Dockerfile

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,5 @@
1-
FROM ruby:2.3
2-
MAINTAINER Max Burnette <mburnet2@illinois.edu>
3-
4-
# Install dependencies
5-
RUN apt-get update \
6-
&& apt-get install --no-install-recommends -y \
7-
curl \
8-
git \
9-
libgeos-dev \
10-
netcat \
11-
nodejs \
12-
postgresql-client \
13-
&& rm -rf /var/lib/apt/lists/*
14-
15-
# change to working directory
16-
WORKDIR /home/bety
17-
18-
# install gems (allowing for caching)
19-
COPY /Gemfile* /home/bety/
20-
RUN gem install bundler \
21-
&& bundle install --with docker --without "test development production debug javascript_testing"
22-
23-
24-
# port that is exposed (standard ruby port)
25-
EXPOSE 8000
26-
27-
# copy rest of the files
28-
COPY / /home/bety
29-
COPY /docker/database.yml /home/bety/config/database.yml
30-
COPY /docker/config.ru /home/bety/config.ru
31-
32-
# configure app
33-
RUN /bin/sed -e '/serve_static_assets/ s/false$/true/' -i config/environments/production.rb
1+
FROM ruby:2.6
2+
LABEL maintainer="Max Burnette <mburnet2@illinois.edu>, Rob Kooper <kooper@illinois.edu>"
343

354
# arguments that are added at the bottom of BETY
365
ARG BETY_GIT_TAGS="unknown"
@@ -51,10 +20,51 @@ ENV LOCAL_SERVER=99 \
5120
BETY_GIT_TAGS=${BETY_GIT_TAGS} \
5221
BETY_GIT_BRANCH=${BETY_GIT_BRANCH} \
5322
BETY_GIT_CHECKSUM=${BETY_GIT_CHECKSUM} \
54-
BETY_GIT_DATE=${BETY_GIT_DATE}
23+
BETY_GIT_DATE=${BETY_GIT_DATE} \
24+
PGHOST=postgres \
25+
PGUSER=postgres \
26+
PGDATABASE=postgres \
27+
BETYUSER=bety \
28+
BETYPASSWORD=bety \
29+
BETYDATABASE=bety
30+
31+
# Install dependencies
32+
RUN apt-get update \
33+
&& apt-get install --no-install-recommends -y \
34+
curl \
35+
git \
36+
libgeos-dev \
37+
netcat \
38+
nodejs \
39+
postgresql-client \
40+
&& rm -rf /var/lib/apt/lists/* \
41+
&& useradd -m -u 1000 -s /bin/bash bety
42+
43+
# change to working directory
44+
USER bety
45+
WORKDIR /home/bety
46+
47+
# install gems (allowing for caching)
48+
COPY --chown=bety /Gemfile* /home/bety/
49+
RUN gem install bundler -v 1.17.3 \
50+
&& bundle config path vendor/bundle \
51+
&& bundle config without 'test development production debug javascript_testing' \
52+
&& bundle config with 'docker' \
53+
&& bundle install --jobs 4 --retry 3
54+
55+
# copy rest of the files
56+
COPY --chown=bety / /home/bety
57+
COPY --chown=bety /docker/database.yml /home/bety/config/database.yml
58+
COPY --chown=bety /docker/config.ru /home/bety/config.ru
59+
60+
# configure app
61+
RUN /bin/sed -e '/serve_static_assets/ s/false$/true/' -i config/environments/production.rb
5562

5663
# expose public files
57-
VOLUME ["/home/bety/public"]
64+
VOLUME ["/home/bety/log"]
65+
66+
# port that is exposed
67+
EXPOSE 8000
5868

5969
# default command to run bety web-app
6070
ENTRYPOINT ["/home/bety/docker/entrypoint.sh"]

Gemfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
source "http://rubygems.org"
22

3-
gem "rails", "5.1.5"
3+
gem "rails", "5.2.4.5"
44
# needed for rails 3.1 and above until we phase out prototype:
55
## gem 'prototype-rails', github: 'rails/prototype-rails', branch: '4.2' # see https://github.com/rails/prototype-rails/issues/37
66
gem "nokogiri"
77
gem "narray", "0.6.0.4"
88
gem "choice", "0.1.6"
99
gem "comma", "~> 4.3.2"
1010
gem "json"
11-
gem "rgeo", "~> 0.5.0"
11+
gem "rgeo"
1212
gem "multi_json"
1313
gem "railroad", "0.5.0"
1414
gem "recaptcha", "4.8.0", :require => "recaptcha/rails"
@@ -45,7 +45,7 @@ gem "pg"
4545
gem "activerecord-postgis-adapter"
4646

4747

48-
gem "trollop" # for Rails scripts
48+
gem "optimist" # for Rails scripts
4949

5050

5151
group :development, :test do
@@ -56,11 +56,6 @@ group :development, :test do
5656
gem "yard"
5757
end
5858

59-
group :development, :test do
60-
gem "pry-rails"
61-
gem "pry-byebug"
62-
end
63-
6459
group :test do
6560
# phasing out webrat:
6661
# gem "webrat", "0.7.1"
@@ -83,6 +78,8 @@ end
8378
group :debug do
8479
gem "selenium-webdriver"
8580
gem "pry"
81+
gem "pry-rails"
82+
gem "pry-byebug"
8683
end
8784

8885
group :production do

0 commit comments

Comments
 (0)