2020-06-26 14:35:51 -05:00
|
|
|
# Note: this will change the permissions of the files in this directory after
|
|
|
|
|
# running to allow for easy deletion, so this should only be run as part of
|
2020-08-10 17:29:12 -04:00
|
|
|
# boundary's build task.
|
2020-06-26 14:35:51 -05:00
|
|
|
|
2020-06-26 11:49:38 -04:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
node: &node
|
2020-10-29 10:57:15 -07:00
|
|
|
image: docker.mirror.hashicorp.services/node:12
|
2020-06-26 11:49:38 -04:00
|
|
|
volumes:
|
|
|
|
|
- './:/src'
|
|
|
|
|
- 'icu_node_modules:/src/node_modules'
|
2020-06-26 14:15:43 -04:00
|
|
|
- 'icu_addons_api_node_modules:/src/addons/api/node_modules'
|
|
|
|
|
- 'icu_addons_auth_node_modules:/src/addons/auth/node_modules'
|
|
|
|
|
- 'icu_addons_rose_node_modules:/src/addons/rose/node_modules'
|
2020-11-17 11:15:42 -05:00
|
|
|
- 'icu_ui_admin_node_modules:/src/ui/admin/node_modules'
|
2020-06-26 11:49:38 -04:00
|
|
|
working_dir: /src
|
|
|
|
|
|
2020-06-29 18:07:43 -04:00
|
|
|
build:
|
2020-06-26 11:49:38 -04:00
|
|
|
<<: *node
|
|
|
|
|
entrypoint: bash
|
2020-11-17 11:15:42 -05:00
|
|
|
command: '-c "yarn install && yarn build:ui:admin && chmod -R 777 ."'
|
2020-06-26 11:49:38 -04:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
icu_node_modules:
|
2020-06-26 14:15:43 -04:00
|
|
|
icu_addons_api_node_modules:
|
|
|
|
|
icu_addons_auth_node_modules:
|
|
|
|
|
icu_addons_rose_node_modules:
|
2020-11-17 11:15:42 -05:00
|
|
|
icu_ui_admin_node_modules:
|