forked from CDCgov/ex-ui-datalake-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (29 loc) · 762 Bytes
/
Makefile
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
docker-pull:
echo "Nothing to pull at this time"
build-app:
mkdir -p dist
npm i
PUBLIC_URL=/datahub/ui/ npm run build
cd build && tar -czvf ../dist/bundle.tar.gz *
docker-build:
docker build \
-t datahub-ui-dashboard \
--rm \
--build-arg SECURE_MODE=false \
--build-arg REPORTING_URL="/reporting/" \
--build-arg INDEXING_URL="/indexing/" \
--build-arg STORAGE_URL="/storage/" \
--build-arg DATAHUB_URL="/datahub/" \
--build-arg CONSENT_URL="https://localhost:9443" \
.
docker-start:
docker run -d \
-p 5000:80 \
--name datahub-ui-dashboard_main \
datahub-ui-dashboard
docker-stop:
docker stop datahub-ui-dashboard_main
docker rm datahub-ui-dashboard_main
docker-restart:
make docker-stop 2>/dev/null || true
make docker-start