Skip to content
Snippets Groups Projects
Unverified Commit 45cc8ef9 authored by Olivier MARSOL's avatar Olivier MARSOL Committed by GitHub
Browse files

Add packaging for vitam-ui (#15)

* Add packaging for vitam-ui

* remove useless script
parent b0ebe59d
No related branches found
No related tags found
No related merge requests found
Packaging
#########
VITAM-UI packaging : all in one tar.gz file is generated.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>HORSPROD</id>
<formats>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<!-- Add all vitam-external rpm -->
<!-- Add sources -->
<fileSet>
<directory>..</directory>
<outputDirectory>sources</outputDirectory>
<excludes>
<!-- IntelliJ project files -->
<exclude>**/*.iml</exclude>
<exclude>**/.idea/**</exclude>
<!-- Various build files & folders -->
<exclude>**/build/**</exclude>
<exclude>**/_build/**</exclude>
<exclude>**/target/**</exclude>
<exclude>**/*.class</exclude>
<exclude>**/*.log</exclude>
<!-- RPM build files -->
<exclude>**/RPMS/**</exclude>
<exclude>**/SRPMS/**</exclude>
<exclude>**/BUILD/**</exclude>
<exclude>**/BUILDROOT/**</exclude>
<!-- Eclipse project files -->
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/.settings/**</exclude>
<!-- Ansible temp files -->
<exclude>**/*.retry</exclude>
<!-- Git-related -->
<exclude>**/.git/**</exclude>
<!-- Other -->
<exclude>**/node_modules/**</exclude>
<exclude>**/evosuite-tests/**</exclude>
<exclude>**/rpm_signed/**</exclude>
</excludes>
</fileSet>
<!-- Add ansible deployment files -->
<fileSet>
<directory>../deploymentByVitam</directory>
<outputDirectory>deployment</outputDirectory>
<excludes>
<exclude>**/*.retry</exclude>
<exclude>deployment/pki/ca/*</exclude>
<exclude>deployment/pki/config/*</exclude>
<exclude>**/*.crt</exclude>
<exclude>**/*.key</exclude>
<exclude>**/*.p12</exclude>
<exclude>**/*.jks</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>vitam-ui-package</artifactId>
<packaging>pom</packaging>
<name>VITAM-UI Package</name>
<description>Packaging VITAM-UI</description>
<build>
<plugins>
<!-- download dependencies for signing rpms -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies-rpm-signed</id>
<phase>process-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>fr.gouv.vitam</includeGroupIds>
<includeTypes>rpm</includeTypes>
<outputDirectory>${basedir}/rpm_signed/vitam-product/</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${maven.exec.plugin.version}</version>
<executions>
<!-- <execution>
<id>create yum repodata for vitam-external</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>/usr/bin/createrepo</executable>
<arguments>
<argument>.</argument>
</arguments>
<workingDirectory>../rpm/vitam-external/target/</workingDirectory>
</configuration>
</execution> -->
<!-- remove useless & dangerous configuration -->
<execution>
<id>Remove vitam certificates</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>./remove_user_certificates.sh</executable>
</configuration>
</execution>
<!-- sign rpm -->
<execution>
<id>Create signed rpm</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>./create_rpm_signed.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
<!-- generate assemblies -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>${basedir}/assembly.xml</descriptor>
</descriptors>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- VITAM dependencies -->
<dependency>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>cas-server</artifactId>
<version>${project.version}</version>
<type>rpm</type>
</dependency>
<dependency>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>iam-external</artifactId>
<version>${project.version}</version>
<type>rpm</type>
</dependency>
<dependency>
<groupId>fr.gouv.vitamui</groupId>
<artifactId>iam-internal</artifactId>
<version>${project.version}</version>
<type>rpm</type>
</dependency>
</dependencies>
</project>
#!/usr/bin/env bash
echo "remove_user_certificates.sh"
pwd
ls -l ../deployment/environments/group_vars/all/vitam_security.yml
sed -i 's/admin_personal_certs\s*:\s*\[[^]]*\]/admin_personal_certs: \[\]/' ../deployment/environments/group_vars/all/vitam_security.yml
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment