Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
8 changes: 8 additions & 0 deletions ui/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
approvedGitRepositories:
- "**"

enableScripts: true

nodeLinker: node-modules

npmMinimalAgeGate: 0
18 changes: 11 additions & 7 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
FROM node:24 AS build
FROM docker.io/library/node:24 AS build

# yarn is provided by corepack
RUN corepack enable

# Install the dependencies separately using only the required files
# This allows better use of the build cache
COPY package.json yarn.lock /application/
# This allows better use of the build cache (by making them seperate
# steps, install of deps does not have to happen if application code
# changes.)
COPY package.json yarn.lock .yarnrc.yml /application/
RUN cd /application && \
yarn install --frozen-lockfile --network-timeout 3600000 && \
yarn install --immutable --network-timeout 3600000 && \
cd /

# Build the application
COPY . /application
RUN cd /application && \
yarn build


# This intermediate image is used to fetch the GPG key for the NGINX repo
# without polluting the runtime image with GPG packages
FROM ubuntu:24.04 AS nginx-gpg-key
FROM docker.io/library/ubuntu:24.04 AS nginx-gpg-key

ENV NGINX_GPG_KEY="2FD21310B49F6B46"

Expand All @@ -27,7 +31,7 @@ RUN gpg2 --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options timeout=1
gpg2 --export "$NGINX_GPG_KEY" > /usr/share/keyrings/nginx-archive-keyring.gpg


FROM ubuntu:24.04
FROM docker.io/library/ubuntu:24.04

# Copy the GPG key from the intermediate container
COPY --from=nginx-gpg-key /usr/share/keyrings/nginx-archive-keyring.gpg /usr/share/keyrings/
Expand Down
37 changes: 20 additions & 17 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"homepage": "https://github.com/azimuth-cloud/azimuth",
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/preset-env": "^7.29.7",
"@babel/preset-react": "^7.29.7",
"@babel/core": "^8.0.1",
"@babel/plugin-transform-class-properties": "^8.0.1",
"@babel/plugin-transform-object-rest-spread": "^8.0.1",
"@babel/preset-env": "^8.0.2",
"@babel/preset-react": "^8.0.1",
"add-asset-html-webpack-plugin": "^6.0.0",
"assert": "^2.1.0",
"babel-loader": "^10.1.1",
Expand All @@ -33,31 +33,33 @@
"stream-browserify": "^3.0.0",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "5.6.1",
"webpack": "^5.107.2",
"webpack-cli": "^7.0.3",
"webpack-dev-server": "^5.2.5",
"tslib": "2",
"webpack": "^5.108.4",
"webpack-cli": "^7.2.1",
"webpack-dev-server": "^6.0.0",
"webpack-merge": "^6.0.1"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^7.2.0",
"@fortawesome/free-regular-svg-icons": "^7.2.0",
"@fortawesome/free-solid-svg-icons": "^7.2.0",
"@fortawesome/react-fontawesome": "^3.3.1",
"@fortawesome/fontawesome-svg-core": "^7.3.0",
"@fortawesome/free-regular-svg-icons": "^7.3.0",
"@fortawesome/free-solid-svg-icons": "^7.3.0",
"@fortawesome/react-fontawesome": "^3.4.0",
"@types/react": "*",
"ajv": "^8.20.0",
"ajv-formats": "^3.0.1",
"http-status-codes": "^2.3.0",
"js-cookie": "3.0.7",
"js-cookie": "3.0.8",
"lodash": "4.x",
"luxon": "^3.7.2",
"nunjucks": "^3.2.4",
"react": "19.2.6",
"react": "19.2.7",
"react-bootstrap": "^2.10.10",
"react-circular-progressbar": "^2.2.0",
"react-dom": "19.2.6",
"react-dom": "19.2.7",
"react-markdown": "^10.1.0",
"react-redux": "9.3.0",
"react-router-bootstrap": "^0.26.3",
"react-router-dom": "7.15.1",
"react-router-dom": "7.18.1",
"react-select": "^5.10.2",
"redux": "5.0.1",
"redux-observable": "^3.0.0-rc.3",
Expand All @@ -67,5 +69,6 @@
"sshpk": "^1.18.0",
"vm-browserify": "^1.1.2"
},
"main": "./src/main.js"
"main": "./src/main.js",
"packageManager": "yarn@4.17.1"
}
4 changes: 2 additions & 2 deletions ui/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ module.exports = {
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
"@babel/plugin-transform-object-rest-spread",
"@babel/plugin-transform-class-properties"
]
}
}
Expand Down
Loading
Loading