-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from unepwcmc/release-3.0.0
Release 3.0.0
- Loading branch information
Showing
358 changed files
with
26,001 additions
and
21,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.git* | ||
log/* | ||
tmp/* | ||
Dockerfile | ||
README.md | ||
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.1.2 | ||
2.6.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,26 @@ before_install: | |
- psql -c 'create database pp_test_backup' -U postgres | ||
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d pp_test | ||
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d pp_test | ||
- curl -s -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.1-amd64.deb | ||
- sudo dpkg -i --force-confnew elasticsearch-7.0.1-amd64.deb | ||
- sudo sed -i.old 's/-Xms1g/-Xms128m/' /etc/elasticsearch/jvm.options | ||
- sudo sed -i.old 's/-Xmx1g/-Xmx128m/' /etc/elasticsearch/jvm.options | ||
- echo -e '-XX:+DisableExplicitGC\n-Djdk.io.permissionsUseCanonicalPath=true\n-Dlog4j.skipJansi=true\n-server\n' | sudo tee -a /etc/elasticsearch/jvm.options | ||
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch | ||
- sudo service elasticsearch start | ||
install: | ||
- nvm install node | ||
- node -v | ||
- npm i -g yarn | ||
- yarn | ||
- bundle install | ||
bundler_args: --without development production staging --jobs=6 | ||
rvm: | ||
- 2.1.2 | ||
- 2.6.3 | ||
before_script: | ||
- sleep 10 | ||
- cp .env.example .env | ||
- RAILS_ENV=test bundle exec rake db:migrate | ||
- RAILS_ENV=test bundle exec rake db:drop db:create db:migrate | ||
notifications: | ||
email: | ||
- [email protected] | ||
|
@@ -45,4 +59,3 @@ addons: | |
postgresql: 9.3 | ||
services: | ||
- redis-server | ||
- elasticsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM unepwcmc/unepwcmc-geospatial-base:20190809 | ||
LABEL maintainer="[email protected]" | ||
|
||
USER unepwcmc | ||
|
||
WORKDIR /ProtectedPlanet | ||
ADD Gemfile /ProtectedPlanet/Gemfile | ||
ADD Gemfile.lock /ProtectedPlanet/Gemfile.lock | ||
ADD package.json /ProtectedPlanet/package.json | ||
ADD docker/scripts /ProtectedPlanet/docker/scripts | ||
|
||
COPY --chown=unepwcmc:unepwcmc . /ProtectedPlanet | ||
|
||
RUN /bin/bash -l -c "bundle install" | ||
RUN /bin/bash -l -c "yarn install" | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["rails", "server", "-b", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.