Skip to content

Commit

Permalink
Merge pull request #932 from gisaia/feat/enhance_build
Browse files Browse the repository at this point in the history
Enhance build process
  • Loading branch information
MohamedHamouGisaia authored Jan 23, 2025
2 parents 7d0b950 + 0829b4e commit 651812e
Show file tree
Hide file tree
Showing 12 changed files with 2,432 additions and 2,098 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
- name: Build -opensource and cloud- Docker images
run: |
docker build -f docker/Dockerfile-production-cloud -t docker.io/gisaia/arlas-wui-cloud:${{ github.sha }} .
docker build -f docker/Dockerfile-production-opensource -t docker.io/gisaia/arlas-wui-opensource:${{ github.sha }} .
docker build -f docker/Dockerfile-production-opensource -t docker.io/gisaia/arlas-wui:${{ github.sha }} .
- name: Run Trivy vulnerability scanner on opensource image
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
with:
image-ref: "docker.io/gisaia/arlas-wui-opensource:${{ github.sha }}"
image-ref: "docker.io/gisaia/arlas-wui:${{ github.sha }}"
format: "table"
exit-code: "1"
ignore-unfixed: true
Expand Down
13 changes: 7 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
"src/styles.scss",
"node_modules/iv-viewer/dist/iv-viewer.css",
"node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css"
],
"scripts": [
"node_modules/mapbox-gl/dist/mapbox-gl.js"
]
},
"configurations": {
Expand Down Expand Up @@ -79,6 +76,9 @@
"sourceMap": true,
"browser": "src/main-cloud.ts",
"tsConfig": "src/tsconfig.app.cloud.json",
"scripts": [
"node_modules/mapbox-gl/dist/mapbox-gl.js"
],
"styles": [
"src/styles/variables.scss",
"src/styles/arlas-wui-theme.scss",
Expand All @@ -89,7 +89,6 @@
],
"namedChunks": true,
"extractLicenses": false,

"budgets": []
},
"production": {
Expand Down Expand Up @@ -177,6 +176,9 @@
"styles": [
"node_modules/mapbox-gl/dist/mapbox-gl.css"
],
"scripts": [
"node_modules/mapbox-gl/dist/mapbox-gl.js"
],
"index": {
"input": "src/index.html",
"output": "index.html"
Expand Down Expand Up @@ -320,7 +322,6 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"defaultConfiguration": "production-cloud",

"configurations": {
"production-cloud": {
"tsConfig": "tsconfig.lib.prod.cloud.json",
Expand Down Expand Up @@ -371,4 +372,4 @@
"setParserOptionsProject": true
}
}
}
}
3 changes: 1 addition & 2 deletions docker/Dockerfile-production-cloud
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# We label our stage as 'builder'
FROM node:18.20.5 AS builder

COPY ./package.json ./
COPY ./package-lock.json ./
COPY ./packages/cloud/package-docker.json ./package.json

RUN npm set progress=false && npm config set depth 0 && npm cache clean --force

Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile-production-opensource
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# We label our stage as 'builder'
FROM node:18.20.5 AS builder

COPY ./package.json ./
COPY ./package-lock.json ./
COPY ./packages/opensource/package-docker.json ./package.json

RUN npm set progress=false && npm config set depth 0 && npm cache clean --force

Expand Down
Loading

0 comments on commit 651812e

Please sign in to comment.