forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmicrofrontend.yml
35 lines (33 loc) · 1.05 KB
/
microfrontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file contains configuration common to all microfrontends
version: "2.1"
services:
microfrontend:
# Use `npm ci` rather than `npm install` for a few reasons:
#
# - Repeatability: Respect the currently checked out package
# versions rather than upgrading when package.json and
# package-lock.json don't match. (Two people using this at
# different times on the same commit should get the same
# results.)
# - Immutability: Don't change the repo's working directory
# unexpectedly when there's a lock mismatch.
#
# Fail fast if package install fails to avoid mysterious
# errors later.
command:
- bash
- -c
- |
npm ci || exit 1
if [ -n "$(printenv PARAGON_BRAND_PACKAGE)" ]; then
npx paragon install-theme "$(printenv PARAGON_BRAND_PACKAGE)" || exit 1
fi
while true; do
npm start
sleep 2
done
stdin_open: true
tty: true
image: node:18
environment:
- NODE_ENV=development