Skip to content

Commit

Permalink
noi-techpark#6 noi-techpark#5 (build) code review
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxXx1313 committed Feb 4, 2025
1 parent 9feb185 commit 9e524ef
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 92 deletions.
4 changes: 2 additions & 2 deletions bundle-config/bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"entryPoint": "dist/components/noi-road-webcam.js",
"outputDir": "dist/bundle/noi-road-webcam",
"manifest": "bundle-config/road-webcam.wcs-manifest.json",
"logo": "wcs-logo.png",
"logo": "bundle-config/wcs-logo.png",
"copy": [
{
"src": "assets/rw_data_a22-1km.json",
Expand All @@ -25,7 +25,7 @@
"entryPoint": "dist/components/noi-traffic-prediction.js",
"outputDir": "dist/bundle/noi-traffic-prediction",
"manifest": "bundle-config/traffic-prediction.wcs-manifest.json",
"logo": "wcs-logo.png",
"logo": "bundle-config/wcs-logo.png",
"copy": [
{
"src": "assets/tp_i18n_en.json",
Expand Down
File renamed without changes
37 changes: 34 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,43 @@ services:
POSTGRES_PASSWORD: wcs
POSTGRES_DB: wcs

wcstore-cli:
container_name: wcstore-cli
# wcstore-cli:
# container_name: wcstore-cli
# image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-cli:latest
# env_file: .env
# command: ./wait-for -t 0 api:${API_SERVER_PORT} -- python webcompstore-cli.py --push ${WC_VERSION}
# depends_on:
# - api
# volumes:
# - ./:/webcomponent

build:
image: node:20-alpine
volumes:
- ./:/code
working_dir: /code
command: sh -c "test -d node_modules || npm install; npm run build"
tty: true
profiles: [ "manual" ] # only runs with manual profile

wcstore-cli-traffic-prediction:
container_name: wcstore-cli-traffic-prediction
image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-cli:latest
env_file: .env
command: ./wait-for -t 0 api:${API_SERVER_PORT} -- python webcompstore-cli.py --push ${WC_VERSION}
depends_on:
- api
volumes:
- ./dist/bundle/noi-traffic-prediction:/webcomponent
profiles: [ "manual" ] # only runs with manual profile

wcstore-cli-road-webcam:
container_name: wcstore-cli-road-webcam
image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-cli:latest
env_file: .env
command: ./wait-for -t 0 api:${API_SERVER_PORT} -- python webcompstore-cli.py --push ${WC_VERSION}
depends_on:
- api
volumes:
- ./:/webcomponent
- ./dist/bundle/noi-road-webcam:/webcomponent
profiles: [ "manual" ] # only runs with manual profile
87 changes: 0 additions & 87 deletions wcs-manifest.json

This file was deleted.

0 comments on commit 9e524ef

Please sign in to comment.