mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
7e2e05c88f
* core/shared/features in progress
* shared/components in progress
* Fix rebase errors
* core: added admin + apiv3
* shared: attachments + attirbute-help-text
* core: OpenprojectAugmentingModule
* shared: OpenprojectAutocompleterModule
* shared: Autocompleter
* feature: backlog
* feature: bim
* feature: boards
* shared: calendar
* core: userModule
* feature: dashboards
* shared: editor
* shared: fields
* shared: focus
* core: globalsearch
* shared: grid
* shared: grid fix
* core: hal
* shared: icon
* feature: invite user modal
* feature: job status
* shared: members autocomplete
* shared: modal
* feature: my page
* feature: overview
* shared: principal
* feature: projects
* feature: repoting
* core: routing
* shared: time entries
* shared: OpenprojectWorkPackageGraphsModule
* feature: workpackages
* core: active window
* shared: autofocus
* features: wp: back-button
* core: browser
* shared: collapseible section
* core: config
* shared: copy-to-clipboard
* shared: date-time
* shared: helpers: drag-and-drop
* shared: draggable autocompleter
* shared: dynamic bootstrapper
* shared: dynamic forms
* features: wp: edit actions bar
* shared: EditableToolbarTitleComponent
* core: BannersService
* shared: OpFormFieldComponent
* shared: hide section
* shared: highlight col
* core: I18 + Sanitizer
* shared: isClickedWithModifier
* core: LoadingIndicator
* core: Modal Heading
* core: Model auth
* shared: no results
* shared: notifications
* shared: datepicker
* shared: option-list
* core: path helper
* shared: persistent toggle
* shared: remote field
* shared: set click position
* shared: slide toggle
* shared: tabs
* shared: drag-scroll
* shared: keyCodes
* shared: OPSharedModule
* global styles: common
* core:
* import fixes
* shared: Enterprise banner
* features: wps: filters
* features: home screen
* import fixes
* core: html
* import fixes
* core: main-menu
* features: home screen
* shared: modals
* shared: op-context-menu
* core + shared: current project
* core: schema-cache
* shared: table-pagination
* features: wps: time-entries
* shared: user-link
* features: wps
* features: wps
* features: wps: all wp-* components
* core: states
* Rename: angular4-modules to app.module
* core: expression service
* Modules just with plugins
* Test fixes
* added missing content-tabs.component.sass
* Replaced with .op-ckeditor--wrapper
* Replaced by .op-ckeditor-source-element
* Replaced by the entire wysiwyg_editor.rb with dev version
* Replacements by ckeditor-augmented-textarea
* Fixes ./spec/support/components/work_packages/table_configuration_modal.rb:106
* Fixes ./modules/reporting/spec/features/update_entries_spec.rb:69
* work_packages renamed to work-packages
* TimeEntryChangeset moved to helpers
* 'filters' moved to wps/components
* 'admin' moved to features
* HAL moved to shared
* plugins moved to features
* plugins moved to features
* Test fixes
* Unit test fixes
* plugin generator into /features/plugins
* fix sass rule indentation
* Revert "plugins moved to features"
This reverts commit f65ccbfd4b.
* Import fixes
* Avoid commiting in linked plugins
Co-authored-by: ulferts <jens.ulferts@googlemail.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
227 lines
5.6 KiB
YAML
227 lines
5.6 KiB
YAML
version: "3.7"
|
|
|
|
networks:
|
|
network:
|
|
testing:
|
|
|
|
volumes:
|
|
downloads-test:
|
|
pgdata:
|
|
tmp:
|
|
opdata:
|
|
bundle:
|
|
npm:
|
|
pgdata-test:
|
|
tmp-test:
|
|
fedata-test:
|
|
|
|
x-op-restart-policy: &restart_policy
|
|
restart: unless-stopped
|
|
x-op-build: &build
|
|
context: .
|
|
dockerfile: ./docker/dev/backend/Dockerfile
|
|
args:
|
|
DEV_UID: $DEV_UID
|
|
DEV_GID: $DEV_GID
|
|
x-op-image: &image
|
|
image:
|
|
openproject/dev:latest
|
|
x-op-frontend-build: &frontend-build
|
|
context: .
|
|
dockerfile: ./docker/dev/frontend/Dockerfile
|
|
args:
|
|
DEV_UID: $DEV_UID
|
|
DEV_GID: $DEV_GID
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
<<: *build
|
|
target: develop
|
|
<<: *image
|
|
<<: *restart_policy
|
|
command: run-app
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
LOCAL_DEV_CHECK: "${LOCAL_DEV_CHECK:?The docker-compose file for OpenProject has moved to https://github.com/opf/openproject-deploy}"
|
|
RAILS_ENV: development
|
|
RAILS_CACHE_STORE: file_store
|
|
OPENPROJECT_CACHE__MEMCACHE__SERVER: cache:11211
|
|
OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"
|
|
DATABASE_URL: postgresql://${DB_USERNAME:-postgres}:${DB_PASSWORD:-postgres}@${DB_HOST:-db}:${DB_PORT:-5432}/${DB_DATABASE:-openproject}
|
|
volumes:
|
|
- ".:/home/dev/openproject"
|
|
- "opdata:/var/openproject/assets"
|
|
- "bundle:/usr/local/bundle"
|
|
- "tmp:/home/dev/openproject/tmp"
|
|
depends_on:
|
|
- db
|
|
- cache
|
|
networks:
|
|
- network
|
|
|
|
frontend:
|
|
build:
|
|
<<: *frontend-build
|
|
command: "npm run serve"
|
|
volumes:
|
|
- ".:/home/dev/openproject"
|
|
- "../commonmark-ckeditor-augmented-textarea-build/build/:/home/dev/openproject/frontend/src/vendor/ckeditor-augmented-textarea/"
|
|
ports:
|
|
- "4200:4200"
|
|
environment:
|
|
PROXY_HOSTNAME: backend
|
|
networks:
|
|
- network
|
|
depends_on:
|
|
- backend
|
|
|
|
db:
|
|
image: postgres:10
|
|
<<: *restart_policy
|
|
stop_grace_period: "3s"
|
|
volumes:
|
|
- "pgdata:/var/lib/postgresql/data"
|
|
environment:
|
|
POSTGRES_USER: ${DB_USERNAME:-postgres}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
|
|
POSTGRES_DB: ${DB_DATABASE:-openproject}
|
|
networks:
|
|
- network
|
|
|
|
cache:
|
|
image: memcached
|
|
<<: *restart_policy
|
|
networks:
|
|
- network
|
|
|
|
######### Testing stuff below ############
|
|
|
|
db-test:
|
|
image: postgres:10
|
|
stop_grace_period: "3s"
|
|
volumes:
|
|
- "pgdata-test:/var/lib/postgresql/data"
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_DB: openproject
|
|
POSTGRES_USER: openproject
|
|
POSTGRES_PASSWORD: openproject
|
|
networks:
|
|
- testing
|
|
|
|
frontend-test:
|
|
build:
|
|
<<: *frontend-build
|
|
command: "npm run serve-test"
|
|
volumes:
|
|
- ".:/home/dev/openproject"
|
|
- "fedata-test:/home/dev/openproject/public/assets/frontend"
|
|
environment:
|
|
PROXY_HOSTNAME: backend-test
|
|
networks:
|
|
- testing
|
|
|
|
backend-test:
|
|
build:
|
|
<<: *build
|
|
target: test
|
|
command: setup-tests
|
|
hostname: backend-test
|
|
networks:
|
|
- testing
|
|
depends_on:
|
|
- db-test
|
|
- selenium-hub
|
|
- frontend-test
|
|
environment:
|
|
RAILS_ENV: test
|
|
OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"
|
|
DATABASE_URL: postgresql://openproject:openproject@db-test/openproject
|
|
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
|
|
SELENIUM_GRID_URL: http://selenium-hub:4444/wd/hub
|
|
CAPYBARA_SERVER_PORT: 3000
|
|
CAPYBARA_DYNAMIC_BIND_IP: 1
|
|
CAPYBARA_APP_HOSTNAME: backend-test
|
|
OPENPROJECT_CLI_PROXY: http://frontend-test:4200
|
|
OPENPROJECT_TESTING_NO_HEADLESS: "true"
|
|
OPENPROJECT_TESTING_AUTO_DEVTOOLS: "true"
|
|
volumes:
|
|
- ".:/home/dev/openproject"
|
|
- "fedata-test:/home/dev/openproject/public/assets/frontend"
|
|
- "opdata:/var/openproject/assets"
|
|
- "bundle:/usr/local/bundle"
|
|
- "tmp-test:/home/dev/openproject/tmp"
|
|
|
|
# https://vitobotta.com/2019/09/04/rails-parallel-system-tests-selenium-docker/
|
|
selenium-hub:
|
|
image: selenium/hub:latest
|
|
container_name: selenium-hub
|
|
hostname: selenium-hub
|
|
environment:
|
|
GRID_MAX_SESSION: "${CI_JOBS:-4}"
|
|
depends_on:
|
|
- chrome
|
|
- firefox
|
|
- opera
|
|
networks:
|
|
- testing
|
|
ports:
|
|
- "4444:4444"
|
|
|
|
chrome:
|
|
image: selenium/node-chrome-debug:latest
|
|
volumes:
|
|
- /dev/shm:/dev/shm
|
|
- "downloads-test:/home/seluser/Downloads"
|
|
networks:
|
|
- testing
|
|
ports:
|
|
- "5900-5915:5900"
|
|
environment:
|
|
HUB_HOST: selenium-hub
|
|
HUB_PORT: 4444
|
|
SCREEN_WIDTH: 1920
|
|
SCREEN_HEIGHT: 1080
|
|
# in case we want multiple sessions per container
|
|
NODE_MAX_INSTANCES: "${CI_JOBS:-4}"
|
|
NODE_MAX_SESSION: "${CI_JOBS:-4}"
|
|
|
|
firefox:
|
|
image: selenium/node-firefox-debug:latest
|
|
volumes:
|
|
- /dev/shm:/dev/shm
|
|
- "downloads-test:/home/seluser/Downloads"
|
|
networks:
|
|
- testing
|
|
ports:
|
|
- "5916-5931:5900"
|
|
environment:
|
|
HUB_HOST: selenium-hub
|
|
HUB_PORT: 4444
|
|
SCREEN_WIDTH: 1920
|
|
SCREEN_HEIGHT: 1080
|
|
# in case we want multiple sessions per container
|
|
NODE_MAX_INSTANCES: "${CI_JOBS:-4}"
|
|
NODE_MAX_SESSION: "${CI_JOBS:-4}"
|
|
|
|
opera:
|
|
image: selenium/node-opera-debug:latest
|
|
volumes:
|
|
- /dev/shm:/dev/shm
|
|
- "downloads-test:/home/seluser/Downloads"
|
|
networks:
|
|
- testing
|
|
ports:
|
|
- "5932-5957:5900"
|
|
environment:
|
|
HUB_HOST: selenium-hub
|
|
HUB_PORT: 4444
|
|
SCREEN_WIDTH: 1920
|
|
SCREEN_HEIGHT: 1080
|
|
# in case we want multiple sessions per container
|
|
NODE_MAX_INSTANCES: "${CI_JOBS:-4}"
|
|
NODE_MAX_SESSION: "${CI_JOBS:-4}"
|