nifi/nifi-registry/build-and-run.sh

33 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
REGISTRY_SCRIPT=`find nifi-registry-assembly/target/ -name nifi-registry.sh | head -1`
REGISTRY_BIN_DIR=$(dirname "${REGISTRY_SCRIPT}")
REGISTRY_DIR=$REGISTRY_BIN_DIR/..
SKIP_UI=$1
./${REGISTRY_SCRIPT} stop
if [ "$SKIP_UI" == "skipUi" ]; then
NIFI-8899 - Add NiFi Registry version information to the Registry under an "about" button. (#5743) * NIFI-8899 - Add NiFi Registry version information to the Registry under an "about" button. Add a new endpoint to the registry API that serves up the project version. Add a new "about" button to the Registry layout that shows a dialog with version information. * NIFI-8899 - Change where the version information is retrieved from Change from pulling the version information from the POM itself, set by having maven filter the properties file at build time, to getting it from the `NiFiRegistryApiApplication` class's `getImplementationVersion` method. * NIFI-8899 - Remove unused dependency Left in an extra import * NIFI-8899 - Rebase and update npm dependencies Rebased on top of main, merged new dependencies Updated and locking Sass to 1.49.7 * NIFI-8899 - Update typescript Updated typescript to something more modern. (latest) * NIFI-8899 - Change Version to RegistryVersion Changed plain 'Version' to be more explicit about whose version: Registry Changed the url endpoint from 'version' to 'about' to make it more clear it's not a versioned resource but information about the registry itself * NIFI-8899 - Reflect new API in UI, look-and-feel, build-and-run script API changes are now reflected in the UI Bring the look-and-feel more inline with the Nifi about page. It's not perfect, but it looks much better than before. Update the build-and-run script for the registry to not actually run the registry if the build didn't complete * NIFI-8899 - Fix spacing, documentation Removed unused import Fixed param name in javadoc Fixed spacing in HTML * NIFI-8899 - Change to dialogService, fix styling Changed close button to use raised accent styling Moved dialog showing into nf-registry.api.js Changed click call to show dialog using the api method Showing the dialog now makes the api call before rendering. * NIFI-8899 - Fixed styling, refactored the about dialog codepath Changed close button to use raised primary style Changed click call to use nf-regisry.js to call the api method Removed the extra call to show the dialog. Removed some comments and outdated references Merged #5743 into main.
2022-03-11 20:25:47 -05:00
CMND="mvn clean install -Pcontrib-check --projects \!nifi-registry-web-ui"
else
NIFI-8899 - Add NiFi Registry version information to the Registry under an "about" button. (#5743) * NIFI-8899 - Add NiFi Registry version information to the Registry under an "about" button. Add a new endpoint to the registry API that serves up the project version. Add a new "about" button to the Registry layout that shows a dialog with version information. * NIFI-8899 - Change where the version information is retrieved from Change from pulling the version information from the POM itself, set by having maven filter the properties file at build time, to getting it from the `NiFiRegistryApiApplication` class's `getImplementationVersion` method. * NIFI-8899 - Remove unused dependency Left in an extra import * NIFI-8899 - Rebase and update npm dependencies Rebased on top of main, merged new dependencies Updated and locking Sass to 1.49.7 * NIFI-8899 - Update typescript Updated typescript to something more modern. (latest) * NIFI-8899 - Change Version to RegistryVersion Changed plain 'Version' to be more explicit about whose version: Registry Changed the url endpoint from 'version' to 'about' to make it more clear it's not a versioned resource but information about the registry itself * NIFI-8899 - Reflect new API in UI, look-and-feel, build-and-run script API changes are now reflected in the UI Bring the look-and-feel more inline with the Nifi about page. It's not perfect, but it looks much better than before. Update the build-and-run script for the registry to not actually run the registry if the build didn't complete * NIFI-8899 - Fix spacing, documentation Removed unused import Fixed param name in javadoc Fixed spacing in HTML * NIFI-8899 - Change to dialogService, fix styling Changed close button to use raised accent styling Moved dialog showing into nf-registry.api.js Changed click call to show dialog using the api method Showing the dialog now makes the api call before rendering. * NIFI-8899 - Fixed styling, refactored the about dialog codepath Changed close button to use raised primary style Changed click call to use nf-regisry.js to call the api method Removed the extra call to show the dialog. Removed some comments and outdated references Merged #5743 into main.
2022-03-11 20:25:47 -05:00
CMND="mvn clean install -Pcontrib-check"
fi
NIFI-8899 - Add NiFi Registry version information to the Registry under an "about" button. (#5743) * NIFI-8899 - Add NiFi Registry version information to the Registry under an "about" button. Add a new endpoint to the registry API that serves up the project version. Add a new "about" button to the Registry layout that shows a dialog with version information. * NIFI-8899 - Change where the version information is retrieved from Change from pulling the version information from the POM itself, set by having maven filter the properties file at build time, to getting it from the `NiFiRegistryApiApplication` class's `getImplementationVersion` method. * NIFI-8899 - Remove unused dependency Left in an extra import * NIFI-8899 - Rebase and update npm dependencies Rebased on top of main, merged new dependencies Updated and locking Sass to 1.49.7 * NIFI-8899 - Update typescript Updated typescript to something more modern. (latest) * NIFI-8899 - Change Version to RegistryVersion Changed plain 'Version' to be more explicit about whose version: Registry Changed the url endpoint from 'version' to 'about' to make it more clear it's not a versioned resource but information about the registry itself * NIFI-8899 - Reflect new API in UI, look-and-feel, build-and-run script API changes are now reflected in the UI Bring the look-and-feel more inline with the Nifi about page. It's not perfect, but it looks much better than before. Update the build-and-run script for the registry to not actually run the registry if the build didn't complete * NIFI-8899 - Fix spacing, documentation Removed unused import Fixed param name in javadoc Fixed spacing in HTML * NIFI-8899 - Change to dialogService, fix styling Changed close button to use raised accent styling Moved dialog showing into nf-registry.api.js Changed click call to show dialog using the api method Showing the dialog now makes the api call before rendering. * NIFI-8899 - Fixed styling, refactored the about dialog codepath Changed close button to use raised primary style Changed click call to use nf-regisry.js to call the api method Removed the extra call to show the dialog. Removed some comments and outdated references Merged #5743 into main.
2022-03-11 20:25:47 -05:00
# Don't actually start the registry if the build didn't succeed.
${CMND} && ./${REGISTRY_SCRIPT} start && tail -n 500 -f ${REGISTRY_DIR}/logs/nifi-registry-app.log