Merge branch 'dev' of https://github.com/opf/openproject into dev
commit
b90ea49e42
@ -1,30 +1,90 @@ |
||||
db: |
||||
image: mysql |
||||
volumes: |
||||
- ~/.docker-volumes/openproject/db:/var/lib/mysql |
||||
expose: |
||||
- "3306" |
||||
environment: |
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=true |
||||
version: "3.7" |
||||
|
||||
networks: |
||||
frontend: |
||||
backend: |
||||
|
||||
volumes: |
||||
pgdata: |
||||
opdata: |
||||
|
||||
worker: &ruby |
||||
x-op-restart-policy: &restart_policy |
||||
restart: unless-stopped |
||||
x-op-image: &image |
||||
build: . |
||||
image: openproject/community:${TAG:-10-test} |
||||
x-op-app: &app |
||||
<<: *image |
||||
<<: *restart_policy |
||||
environment: |
||||
- "RAILS_CACHE_STORE=memcache" |
||||
- "OPENPROJECT_CACHE__MEMCACHE__SERVER=cache:11211" |
||||
- "OPENPROJECT_RAILS__RELATIVE__URL__ROOT=${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}" |
||||
- "DATABASE_URL=postgres://postgres:p4ssw0rd@db/openproject" |
||||
- "USE_PUMA=true" |
||||
# set to true to enable the email receiving feature. See ./docker/cron for more options |
||||
- "IMAP_ENABLED=false" |
||||
volumes: |
||||
- .:/usr/src/app |
||||
links: |
||||
- "opdata:/var/openproject/assets" |
||||
depends_on: |
||||
- db |
||||
environment: |
||||
- "RAILS_CACHE_STORE=file_store" |
||||
command: "./docker/worker" |
||||
- cache |
||||
|
||||
web: |
||||
<<: *ruby |
||||
ports: |
||||
- "8080:8080" |
||||
command: "./docker/web" |
||||
services: |
||||
db: |
||||
image: postgres:10 |
||||
<<: *restart_policy |
||||
stop_grace_period: "3s" |
||||
volumes: |
||||
- "pgdata:/var/lib/postgresql/data" |
||||
environment: |
||||
- POSTGRES_PASSWORD=p4ssw0rd |
||||
- POSTGRES_DB=openproject |
||||
networks: |
||||
- backend |
||||
|
||||
frontend: |
||||
build: . |
||||
volumes: |
||||
- .:/usr/src/app |
||||
command: "./docker/webpack-watch" |
||||
cache: |
||||
image: memcached |
||||
<<: *restart_policy |
||||
networks: |
||||
- backend |
||||
|
||||
proxy: |
||||
<<: *image |
||||
<<: *restart_policy |
||||
command: "./docker/proxy" |
||||
ports: |
||||
- "8080:80" |
||||
environment: |
||||
- APP_HOST=web |
||||
- "OPENPROJECT_RAILS__RELATIVE__URL__ROOT=${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}" |
||||
depends_on: |
||||
- web |
||||
networks: |
||||
- frontend |
||||
|
||||
web: |
||||
<<: *app |
||||
command: "./docker/web" |
||||
networks: |
||||
- frontend |
||||
- backend |
||||
|
||||
worker: |
||||
<<: *app |
||||
command: "./docker/worker" |
||||
networks: |
||||
- backend |
||||
|
||||
cron: |
||||
<<: *app |
||||
command: "./docker/cron" |
||||
networks: |
||||
- backend |
||||
|
||||
seeder: |
||||
<<: *app |
||||
command: "./docker/seeder" |
||||
restart: on-failure |
||||
networks: |
||||
- backend |
||||
|
@ -1,21 +1,19 @@ |
||||
#!/bin/bash |
||||
|
||||
set -e |
||||
set -o pipefail |
||||
|
||||
cd /opt |
||||
|
||||
# install Clozure CL to avoid memory issues with the standard SBCL |
||||
wget -q https://github.com/Clozure/ccl/releases/download/v1.11.5/ccl-1.11.5-linuxx86.tar.gz |
||||
tar -xzf ccl-1.11.5-linuxx86.tar.gz |
||||
rm ccl-1.11.5-linuxx86.tar.gz |
||||
curl -sL https://github.com/Clozure/ccl/releases/download/v1.11.5/ccl-1.11.5-linuxx86.tar.gz -o - | tar xzf - -C /opt/ |
||||
ln -s /opt/ccl/scripts/ccl64 /usr/local/bin/ccl |
||||
|
||||
export CCL_DEFAULT_DIRECTORY=/opt/ccl |
||||
|
||||
# build pgloader from source using CCL as the lisp runtime |
||||
git clone https://github.com/dimitri/pgloader.git |
||||
git clone -q https://github.com/dimitri/pgloader.git --branch v3.6.1 --depth 1 |
||||
cd pgloader |
||||
git checkout v3.6.1 |
||||
make CL=ccl pgloader >& /tmp/pgloader-compile.log || (cat /tmp/pgloader-compile.log && exit 1) |
||||
mv /opt/pgloader/build/bin/pgloader /usr/local/bin/pgloader-ccl |
||||
rm -rf /opt/pgloader |
||||
|
||||
rm -rf /opt/pgloader /tmp/pgloader-compile.log /usr/local/bin/ccl /opt/ccl |
||||
|
@ -0,0 +1,11 @@ |
||||
#!/bin/bash -e |
||||
|
||||
echo "Executing database migration and database seed..." |
||||
bundle exec rake db:migrate db:seed |
||||
if [ "$1" = "--set" ]; then |
||||
shift |
||||
echo "Update application settings..." |
||||
bundle exec rake setting:set["$@"] |
||||
fi |
||||
|
||||
exit 0 |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,42 @@ |
||||
#-- encoding: UTF-8 |
||||
|
||||
#-- copyright |
||||
# OpenProject is an open source project management software. |
||||
# Copyright (C) 2012-2020 the OpenProject GmbH |
||||
# |
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU General Public License version 3. |
||||
# |
||||
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: |
||||
# Copyright (C) 2006-2017 Jean-Philippe Lang |
||||
# Copyright (C) 2010-2013 the ChiliProject Team |
||||
# |
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU General Public License |
||||
# as published by the Free Software Foundation; either version 2 |
||||
# of the License, or (at your option) any later version. |
||||
# |
||||
# This program is distributed in the hope that it will be useful, |
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
# GNU General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program; if not, write to the Free Software |
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||
# |
||||
# See docs/COPYRIGHT.rdoc for more details. |
||||
#++ |
||||
module BimSeeder |
||||
module BasicData |
||||
class CustomStyleSeeder < Seeder |
||||
def seed_data! |
||||
CustomStyle.create data |
||||
end |
||||
|
||||
def data |
||||
{ theme: 'OpenProject Dark' } |
||||
end |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue