diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2021-08-20 16:55:19 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2021-09-01 10:12:50 +0100 |
commit | 608e625fdd262d4362a998f290017a7d3a978aaf (patch) | |
tree | c1f5ad7efae7f7105721992824c595cef9c9cc85 /gui-clamp | |
parent | db784313b8ba29f5d4396c1cc96bb5f3c853677f (diff) |
Add docker image generation to maven for policy-gui
Add maven uber-jar artifact for gui-editor-apex
Add maven tarball artifact for gui-clamp
Create docker image containing nginx and policy GUIs
Issue-ID: POLICY-3574
Change-Id: I06e5ed6fb610e0746f376114f628bb9b1a530cab
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Diffstat (limited to 'gui-clamp')
-rw-r--r-- | gui-clamp/pom.xml | 31 | ||||
-rw-r--r-- | gui-clamp/src/main/assembly/clamp-build.xml | 34 |
2 files changed, 65 insertions, 0 deletions
diff --git a/gui-clamp/pom.xml b/gui-clamp/pom.xml index 8d29ce4..a19d1ca 100644 --- a/gui-clamp/pom.xml +++ b/gui-clamp/pom.xml @@ -147,6 +147,17 @@ </configuration> </execution> <execution> + <id>npm_build</id> + <goals> + <goal>npm</goal> + </goals> + <phase>package</phase> + <configuration> + <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> + <arguments>run build</arguments> + </configuration> + </execution> + <execution> <id>npm_test</id> <goals> <goal>npm</goal> @@ -158,6 +169,7 @@ <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> </configuration> </execution> + <!-- XXX Are these deploy steps using npm desirable given docker image generation? --> <execution> <id>npm_install_lib</id> <goals> @@ -228,6 +240,25 @@ <artifactId>versions-maven-plugin</artifactId> <version>1.3.1</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>generate-gui-clamp-tar</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/clamp-build.xml</descriptor> + </descriptors> + <finalName>${project.artifactId}-${project.version}</finalName> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> diff --git a/gui-clamp/src/main/assembly/clamp-build.xml b/gui-clamp/src/main/assembly/clamp-build.xml new file mode 100644 index 0000000..215b646 --- /dev/null +++ b/gui-clamp/src/main/assembly/clamp-build.xml @@ -0,0 +1,34 @@ +<!-- + ============LICENSE_START======================================================= + Copyright (C) 2021 Nordix Foundation. + ================================================================================ + 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. + + SPDX-License-Identifier: Apache-2.0 + ============LICENSE_END========================================================= +--> + +<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> + <id>clamp-build</id> + <formats> + <format>tar.gz</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>${project.build.directory}/${ui.react.src}/build</directory> + <outputDirectory>clamp</outputDirectory> + </fileSet> + </fileSets> +</assembly> |