ENTAXY-248 release 1.8.1

This commit is contained in:
2022-02-28 15:20:38 +03:00
parent 4d274c4fcc
commit c826adf1db
1958 changed files with 195926 additions and 10280 deletions

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
ui
==========
Copyright (C) 2020 - 2021 EmDev LLC
==========
Licensed 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.
~~~~~~/licensing~~~~~~
-->
<features name="entaxy-${project.artifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0">
<repository>mvn:ru.entaxy.esb.ui/entaxy-hawtio/${project.version}/xml/features</repository>
<repository>mvn:ru.entaxy.esb.platform.runtime/base/${project.version}/xml/features</repository>
<feature name="entaxy-${project.artifactId}" version="${project.version}" start-level="90">
<feature>entaxy-ui-hc</feature>
<feature>entaxy-h2-console</feature>
<feature>entaxy-hawtio</feature>
</feature>
<feature name="entaxy-ui-hc" version="${project.version}" start-level="90">
<configfile finalname="${karaf.etc}/org.apache.felix.hc.generalchecks.BundlesStartedCheck-ui.cfg" override="true">
mvn:ru.entaxy.esb/ui/${project.version}/cfg/org.apache.felix.hc.generalchecks.BundlesStartedCheck-ui
</configfile>
</feature>
<feature name="entaxy-h2-console" version="${project.version}" start-level="90">
<feature prerequisite="true">h2-adapter</feature>
<bundle>webbundle:mvn:ru.entaxy.esb.ui/h2-console/${project.version}/war</bundle>
</feature>
</features>

View File

@ -0,0 +1,5 @@
<!-- -->
<configfile finalname="${karaf.etc}/org.apache.felix.hc.generalchecks.BundlesStartedCheck-ui.cfg" override="true">
mvn:ru.entaxy.esb/ui/1.8.1/cfg/org.apache.felix.hc.generalchecks.BundlesStartedCheck-ui
</configfile>
<!-- -->

View File

@ -0,0 +1,22 @@
###
# ~~~~~~licensing~~~~~~
# ui
# ==========
# Copyright (C) 2020 - 2022 EmDev LLC
# ==========
# Licensed 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.
# ~~~~~~/licensing~~~~~~
###
includesRegex=ru\.entaxy\.esb\.ui\.*
hc.name=Entaxy UI Bundles
hc.mbean.name=Entaxy.UI.Bundles

View File

@ -0,0 +1,102 @@
###
# ~~~~~~licensing~~~~~~
# entaxy-hawtio
# ==========
# Copyright (C) 2020 - 2021 EmDev LLC
# ==========
# Licensed 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.
# ~~~~~~/licensing~~~~~~
###
echo
echo
echo "************"
echo "Welcome to Entaxy UI installation script"
echo "************"
echo
echo "** Checking feature repository: ru.entaxy.esb.ui/entaxy-hawtio/1.8.1/xml/features ..."
_repo = (feature:repo-list | grep ru.entaxy.esb/ui)
_repo_length = ($_repo length)
if { $_repo_length'' equals "0" } {
echo "\>\> Installing Entaxy UI repository..."
feature:repo-add mvn:ru.entaxy.esb/ui/1.8.1/xml/features
echo "\>\> ... installed"
} else {
echo "\>\> Entaxy UI repository is already installed"
}
echo
echo "** Checking entaxy-underlying-configuration feature ..."
service = (service:get org.apache.karaf.features.FeaturesService)
_config_feature = ($service getFeature entaxy-underlying-configuration)
_config_id = $_config_feature getId
_status = ($service getState $_config_id) toString
_in_shutdown = "0"
if { $_status equals "Uninstalled" } {
echo "\>\> Installing feature..."
feature:install entaxy-underlying-configuration
echo "\>\> ... installed"
echo
if { $1'' equals "skipReboot" } {
echo "** the system will skip reboot for applying JRE exports"
echo " \( see etc/jre.properties \)"
echo " due to 'skipReboot argument'"
echo "** If further installation will fail with errors please reboot"
} else {
echo "** the system will reboot now to apply JRE exports"
echo " \( see etc/jre.properties \)"
echo
echo "** PLEASE RUN THE SCRIPT AGAIN AFTER RESTART **"
_in_shutdown = "1"
shutdown -r -f
}
} else {
echo "\>\> Entaxy configuration is already installed"
}
# shutdown goes async so karaf can begin next installation while rebooting
# so we use marker to prevent it
if { $_in_shutdown equals "0" } {
echo
_status = ( ($service getState $_config_id) toString )
if { NOT { $_status equals "Started" } } {
echo "** Current configuration feature status is " $_status
echo "** Please clean the container and run installation again "
} else {
echo
echo "** Installing Entaxy UI components in verbose mode..."
_ui_feature = ($service getFeature entaxy-ui)
_ui_id = $_ui_feature getId
_status = ( ($service getState $_ui_id) toString )
if { $_status equals "Uninstalled" } {
feature:install -v -r entaxy-ui
echo
echo "\>\> ... installed"
} else {
echo "\>\> Entaxy UI is already installed"
}
}
echo
echo "** Thank you!"
}