Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 16-trains-with-no-changing-on-file-system
  • 18-predefined-selectable-option-as-an-environment-variable-value
  • 19-error-failed-to-parse-json-when-result-to-big
  • 19-error-failed-to-parse-json-when-result-to-big-2
  • 20-handling-the-telegraf-metrics-on-the-station-software-not-in-the-metadata-generator
  • 25-retrieving-the-station-pid-from-the-initial-env-file-and-setting-it-automatically-at-the
  • 39-add-anonymisation-feature-to-station-software
  • 40-allow-different-base-url-for-web-view
  • 41-update-packages
  • 43-streamlining-deployment
  • 48-adding-gpu-support-installation-to-the-install-script
  • 52-autofill-bind-mount
  • 8-vault-health-status
  • 88-poll-logs-only-if-running
  • 9-error-stdout-maxbuffer-length-exceeded
  • 93-vault-initialization-unsealing-error-in-station-software
  • api-for-keycloak-migration
  • cleaned-publishable-branch
  • cosign-integration
  • decouple-station-builds
  • edc-integration
  • enable-gzip-for-fl-results
  • error-tar-bad-archive
  • federated
  • federatedmerge
  • federatedmerge-backup
  • git-ci-test
  • interopt
  • job-automation-agent
  • keycloak-auth
  • main
  • main-fairds
  • prerelease
  • prerelease-semver
  • protect-routes-with-keycloak
  • redacted
  • renovate-axios-1.x-lockfile
  • renovate-diff2html-3.x-lockfile
  • renovate-eslint-8.x-lockfile
  • renovate-express-fileupload-1.x-lockfile
  • renovate-material-ui-popup-state-5.x-lockfile
  • renovate-mongo-4.x
  • renovate-mongoose-6.x-lockfile
  • renovate-nodemon-3.x-lockfile
  • renovate-reduxjs-toolkit-1.x-lockfile
  • renovate-semantic-release-monorepo
  • renovate/configure
  • replace-hardcoded-cs-path
  • set-sast-config-1
  • station-software-ui-update
  • v
  • v0.0.0
  • v1.0.0
  • v1.0.1
  • v1.0.5
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.0.3
  • v2.0.4
60 results

Target

Select target project
  • padme-development/padme-station-software
1 result
Select Git revision
  • 16-trains-with-no-changing-on-file-system
  • 18-predefined-selectable-option-as-an-environment-variable-value
  • 19-error-failed-to-parse-json-when-result-to-big
  • 19-error-failed-to-parse-json-when-result-to-big-2
  • 20-handling-the-telegraf-metrics-on-the-station-software-not-in-the-metadata-generator
  • 25-retrieving-the-station-pid-from-the-initial-env-file-and-setting-it-automatically-at-the
  • 39-add-anonymisation-feature-to-station-software
  • 40-allow-different-base-url-for-web-view
  • 41-update-packages
  • 43-streamlining-deployment
  • 48-adding-gpu-support-installation-to-the-install-script
  • 52-autofill-bind-mount
  • 8-vault-health-status
  • 88-poll-logs-only-if-running
  • 9-error-stdout-maxbuffer-length-exceeded
  • 93-vault-initialization-unsealing-error-in-station-software
  • api-for-keycloak-migration
  • cleaned-publishable-branch
  • cosign-integration
  • decouple-station-builds
  • edc-integration
  • enable-gzip-for-fl-results
  • error-tar-bad-archive
  • federated
  • federatedmerge
  • federatedmerge-backup
  • git-ci-test
  • interopt
  • job-automation-agent
  • keycloak-auth
  • main
  • main-fairds
  • prerelease
  • prerelease-semver
  • protect-routes-with-keycloak
  • redacted
  • renovate-axios-1.x-lockfile
  • renovate-diff2html-3.x-lockfile
  • renovate-eslint-8.x-lockfile
  • renovate-express-fileupload-1.x-lockfile
  • renovate-material-ui-popup-state-5.x-lockfile
  • renovate-mongo-4.x
  • renovate-mongoose-6.x-lockfile
  • renovate-nodemon-3.x-lockfile
  • renovate-reduxjs-toolkit-1.x-lockfile
  • renovate-semantic-release-monorepo
  • renovate/configure
  • replace-hardcoded-cs-path
  • set-sast-config-1
  • station-software-ui-update
  • v
  • v0.0.0
  • v1.0.0
  • v1.0.1
  • v1.0.5
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.0.3
  • v2.0.4
60 results
Show changes
Commits on Source (8)
...@@ -106,34 +106,46 @@ variables: ...@@ -106,34 +106,46 @@ variables:
prepare_release: prepare_release:
stage: prepare stage: prepare
rules: # rules:
- if: $CI_COMMIT_TAG # - if: $CI_COMMIT_TAG
when: never # - when: never
- if: '$CI_COMMIT_BRANCH == "prerelease-semver"' # - if: '$CI_COMMIT_BRANCH == "prerelease-semver"'
script: script:
- echo "EXTRA_DESCRIPTION=some message" >> variables.env # - echo "EXTRA_DESCRIPTION=some message" >> variables.env
- echo "TAG=v$(cat VERSION)" >> variables.env # - echo "TAG=v$(cat VERSION)" >> variables.env
artifacts: - echo "TAG=v$(cat VERSION)"
reports: # artifacts:
dotenv: variables.env # reports:
# dotenv: variables.env
release_station_software: # release_station_software:
# stage: release
# image: registry.gitlab.com/gitlab-org/release-cli:latest
# needs:
# - job: prepare_release
# artifacts: true
# rules:
# - if: $CI_COMMIT_TAG
# - when: never
# - if: '$CI_COMMIT_BRANCH == "prerelease-semver"'
# script:
# - echo "Running the release job for $TAG"
# release:
# name: "Release $TAG"
# description: "[TEST] Release created using the release-cli after merging commit. $EXTRA_DESCRIPTION"
# tag_name: "$TAG"
# ref: "$CI_COMMIT_SHA"
release:
image: node:18-buster-slim
stage: release stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest before_script:
needs: - apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- job: prepare_release - npm install -g semantic-release @semantic-release/git @semantic-release/gitlab
artifacts: true
rules:
- if: $CI_COMMIT_TAG
when: never
- if: '$CI_COMMIT_BRANCH == "prerelease-semver"'
script: script:
- echo "Running the release job for $TAG" - semantic-release
release: rules:
name: "Release $TAG" - if: $CI_COMMIT_BRANCH == "prerelease-semver"
description: "[TEST] Release created using the release-cli after merging commit. $EXTRA_DESCRIPTION"
tag_name: "$TAG"
ref: "$CI_COMMIT_SHA"
# include: # include:
# - template: Code-Quality.gitlab-ci.yml # - template: Code-Quality.gitlab-ci.yml
......
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit "$1"
...@@ -3,11 +3,16 @@ FROM node:latest as node_cache ...@@ -3,11 +3,16 @@ FROM node:latest as node_cache
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV NODE_ENV=production
# Install app dependencies # Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied # A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+) # where available (npm@5+)
COPY package*.json ./ COPY package*.json ./
RUN npm install
# Disable husky in CI/Docker/Prod
# Install only production dependencies in the Docker image to reduce size
RUN npm pkg delete scripts.prepare && npm ci --only=production
#Install dependencies for wizard UI #Install dependencies for wizard UI
COPY wizard-frontend/package*.json ./wizard-frontend/ COPY wizard-frontend/package*.json ./wizard-frontend/
......
FROM node:latest as node_cache
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
#Install dependencies for wizard UI
COPY wizard-frontend/package*.json ./wizard-frontend/
RUN npm --prefix wizard-frontend install
#Install dependencies for main UI
COPY station-frontend/package*.json ./station-frontend/
RUN npm --prefix station-frontend install
FROM gcr.io/projectsigstore/cosign:v2.2.1 as cosign-bin
FROM node:latest
WORKDIR /usr/src/app
COPY --from=node_cache /usr/src/app/ .
# Bundle app source
COPY . .
RUN mkdir /lockfiledir
# Copy cosign binary
COPY --from=cosign-bin /ko-app/cosign /usr/local/bin/cosign
EXPOSE 3030
CMD [ "npm", "run", "dev" ]
...@@ -55,7 +55,9 @@ services: ...@@ -55,7 +55,9 @@ services:
restart: unless-stopped restart: unless-stopped
pht-web: pht-web:
build: ../ build:
context: ../
dockerfile: Dockerfile.dev
container_name: '${PROJECTNAME}pht-web' container_name: '${PROJECTNAME}pht-web'
command: ${COMMAND-/bin/sh -c "while sleep 1000; do :; done"} command: ${COMMAND-/bin/sh -c "while sleep 1000; do :; done"}
ports: ports:
......
...@@ -19,7 +19,7 @@ function randomString(size = 21) { ...@@ -19,7 +19,7 @@ function randomString(size = 21) {
var app = express(); var app = express();
if (process.env.NODE_ENV) { if (process.env.NODE_ENV === "development") {
app.use( app.use(
cors({ cors({
origin: ["http://localhost:3001", "http://127.0.0.1:3001"], origin: ["http://localhost:3001", "http://127.0.0.1:3001"],
......
module.exports = {
extends: ["@commitlint/config-conventional"],
};
...@@ -12,7 +12,7 @@ const app = express(); ...@@ -12,7 +12,7 @@ const app = express();
* Port can be replaced with whatever port react * Port can be replaced with whatever port react
* app is running on. * app is running on.
*/ */
if (process.env.NODE_ENV) { if (process.env.NODE_ENV === "development") {
app.use( app.use(
cors({ cors({
origin: ["http://localhost:3001", "http://127.0.0.1:3001"], origin: ["http://localhost:3001", "http://127.0.0.1:3001"],
......
This diff is collapsed.
{ {
"name": "pht-web", "name": "@padme-development/padme-station-software",
"version": "0.0.0", "version": "1.0.1",
"description": "A Dockerized Javascript Web Application providing interfaces for Monitoring of the algorithms and components, which manage the business logic e.g. pulling a train, execute a train, inspect the results, and many more.",
"license": "MIT",
"homepage": "https://git.rwth-aachen.de/padme-development/padme-station-software",
"private": true, "private": true,
"scripts": { "scripts": {
"cm": "cz",
"build:wizard": "npm run build --prefix wizard-frontend", "build:wizard": "npm run build --prefix wizard-frontend",
"build:station": "npm run build --prefix station-frontend", "build:station": "npm run build --prefix station-frontend",
"start": "npm run build:wizard && npm run build:station && node ./bin/www", "start": "npm run build:wizard && npm run build:station && node ./bin/www",
"dev": "NODE_ENV=development nodemon ./bin/www", "dev": "NODE_ENV=development nodemon ./bin/www",
"test": "jest" "test": "jest",
"semantic-release": "semantic-release",
"prepare": "husky install"
}, },
"dependencies": { "dependencies": {
"async-mutex": "^0.4.0", "async-mutex": "^0.4.0",
...@@ -35,12 +41,52 @@ ...@@ -35,12 +41,52 @@
"wait-queue": "^1.1.4" "wait-queue": "^1.1.4"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"commitizen": "^4.3.0",
"cors": "^2.8.5", "cors": "^2.8.5",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.48.0", "eslint": "^8.48.0",
"eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.28.1", "eslint-plugin-import": "^2.28.1",
"husky": "^8.0.3",
"jest": "^29.6.4", "jest": "^29.6.4",
"jest-junit": "^16.0.0", "jest-junit": "^16.0.0",
"nodemon": "^3.0.1" "nodemon": "^3.0.1",
"semantic-release": "^22.0.8"
},
"publishConfig": {
"access": "public"
},
"release": {
"branches": [
"main",
"prerelease-semver"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
} }
} }