Skip to content

Commit

Permalink
Merge pull request #2 from cgs-earth/iow
Browse files Browse the repository at this point in the history
Add IoW style
  • Loading branch information
webb-ben authored Oct 28, 2024
2 parents 9b9b731 + 4fb99bd commit 4c173ed
Show file tree
Hide file tree
Showing 38 changed files with 3,807 additions and 558 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- rise
release:
types: [published]

Expand Down Expand Up @@ -51,7 +52,8 @@ jobs:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=raw,value=rise
type=pep440,pattern={{version}}
- name: Build and push
uses: docker/[email protected]
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM node:14.18.1 as ui-builder
FROM node:14.18.1 AS ui-builder

RUN mkdir /usr/src/app
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list \
&& apt-get update \
&& apt-get upgrade \
&& apt-get install -y chromium

ENV PATH /usr/src/app/node_modules/.bin:$PATH
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PATH=/usr/src/app/node_modules/.bin:$PATH
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

COPY package.json /usr/src/app/package.json

Expand Down
2 changes: 2 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ window.VUE_APP_MQTT='${WIS2BOX_MQTT_URL}'\n
window.VUE_APP_WAF='${WIS2BOX_URL}/data/'\n
window.VUE_APP_BASEMAP_URL='${WIS2BOX_BASEMAP_URL:-https://\{s\}.tile.openstreetmap.org/\{z\}/\{x\}/\{y\}.png}'\n
window.VUE_APP_BASEMAP_ATTRIBUTION='${WIS2BOX_BASEMAP_ATTRIBUTION:-&copy; <a href=\"https://osm.org/copyright\">OpenStreetMap</a> contributors}'\n
window.VUE_APP_CLUSTER='${WIS2BOX_UI_CLUSTER}'\n
window.VUE_APP_LANG='${WIS2BOX_UI_LANG}'
"
echo $env >> /usr/share/nginx/html/env.js
Loading

0 comments on commit 4c173ed

Please sign in to comment.