Commit Graph

155 Commits

Author SHA1 Message Date
Sebastian Sdorra
af2cdfb739 Docker multi-arch builds (#2021)
Replaces the current docker build with a multi arch build powered by buildx.
The new build creates two scm-manager docker image variants.
One based on alpine which uses the openjdk distribution and the other based on debian and eclipse temurin:

scmmanager/scm-manager:<version>-alpine
- linux/amd64
- linux/arm64
scmmanager/scm-manager:<version>-debian
- linux/amd64
- linux/arm64
- linux/arm/v7
scmmanager/scm-manager:<version>
- linux/amd64 alpine based
- linux/arm64 alpine based
- linux/arm/v7 debian based
scmmanager/scm-manager:latest
- linux/amd64 alpine based
- linux/arm64 alpine based
- linux/arm/v7 debian based

The development build produces only a single amd64 image at cloudogu/scm-manager with a snapshot version.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2022-05-04 14:38:31 +02:00
René Pfeuffer
211749a5e3 Update docker base image (#1948)
Updates to latest version of adoptopenjdk:
adoptopenjdk/openjdk11:jdk-11.0.14_9-alpine-slim
2022-02-08 09:23:53 +01:00
Matthias Thieroff
8136aa1cbd Set the line ending used for license files to LF (#1904)
Set line ending explicitly to LF because on Windows using the system line ending does not get along well with our git settings.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-12-23 09:43:32 +01:00
pmarkiewka
e70e860e07 Adds compatibility for OCP and ICP (#1870)
Adds compatibility for OCP (openshift container platform) and ICP (IBM cloud private)

- Sets folder permissions to group 0, because the arbitrary assigned user ids in openshift are all part of group 0
- Removes usage of root user 0, because it is prohibited in some environments
- Use numerical user id, because some environments do not accept non-numerical user ids
- Removes initContainer for setting volume permissions, because it is not needed anymore
- Removes chown in plugin script, because it is not needed anymore
- Adds extraArgs option in Helm chart to add arguments on server startup, i.e. initial admin username and password

Signed-off-by: pmarkiewka <philipp.markiewka@cloudogu.com>
2021-12-16 13:59:56 +01:00
Sebastian Sdorra
9dee08f68d Update Gradle to 7.3 (#1873)
Update Gradle to 7.3. in order to profit from the performance improvement and to prepare for dependency lockfiles. Due to the upgrade to 7.x we had to use a license plugin which supports Gradle 7.
2021-11-29 09:05:24 +01:00
René Pfeuffer
271576fcf2 Update javahg to v1.0.0 (#1865)
Updates javahg (https://foss.heptapod.net/mercurial/javahg) to release 1.0.0. Therefore, all packages have to be changed from com.aragost.javahg to org.javahg.
2021-11-23 13:10:16 +01:00
Sebastian Sdorra
87aea1936b Remove www from scm-manager.org url (#1837) 2021-10-28 11:00:24 +02:00
Sebastian Sdorra
928439b4d5 Fix helm documentation generation 2021-08-11 11:17:38 +02:00
pmarkiewka
5aae743053 Adds pullSecret option and simplifies image usage (#1765)
Adds a value field to set a Secret to pull the image from an image registry with authentication, in case you need to host the image yourself and your registry has authentication.

To simplify the configuration we set the initContainers to use the same image as the application itself.
This has the following advantages:
- No additional configuration for image and pull Secret in values needed
- The used image is always up-to-date now. No need to maintain an extra alpine image.
- Faster startup times. No extra images have to be pulled.

Signed-off-by: pmarkiewka <philipp.markiewka@cloudogu.com>
2021-08-11 08:45:20 +02:00
Sebastian Sdorra
893cf4af4c Add graphviz to docker image (#1623)
This fixes the usage of the plantuml plugin inside of a docker
container.
2021-04-20 14:05:01 +02:00
Sebastian Sdorra
aa15227f0a Mark configuration files in debian package (#1574)
Mark server-config.xml, logging.xml and defaults explicit as
configuration files.
Due too a bug in gradle-ospackage-plugin it is not enough to mark them via fileType.

https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/118
2021-03-08 09:33:30 +01:00
Sebastian Sdorra
eb914b1f93 Remove -app suffix from unix and windows package 2021-01-29 13:51:14 +01:00
René Pfeuffer
a0c74f89a3 Use docker tag for helm version 2021-01-18 11:44:03 +01:00
René Pfeuffer
4bd162ebcf Write current docker tag to file 2021-01-15 17:09:56 +01:00
Sebastian Sdorra
f1cc5a4bbd Add font ttf-dejavu to oci image
Some plugins may require a font to render graphics, such as the markdown-plantuml plugin.
2021-01-15 12:43:08 +01:00
Sebastian Sdorra
35c342dc35 Fix helm build 2021-01-14 21:37:12 +01:00
Sebastian Sdorra
7fd6b62b73 Revert "Add tasks to modify version", because it breaks run command
This reverts commit b07f00ea2f74b60663d7d2c4377fe338416d189e.
2021-01-14 12:01:34 +01:00
Sebastian Sdorra
ecc216276d Add tasks to modify version 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
fddacca7db Remove outdated comments 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
efce411a41 Implement publish for release-yaml 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
a2fd8ff2f1 Implement docker publishing 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
2d8844fde1 Implement helm deployment 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
ef059b8efe Publish unix and windows packages 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
33c3cba69b Replace depreacted archiveName prop with archiveFileName 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
495326e990 Publishing tasks for rpm and deb packages 2021-01-14 12:01:33 +01:00
Sebastian Sdorra
55507b3f35 Add license check 2021-01-14 12:01:33 +01:00
Sebastian Sdorra
bd62027c15 Support for signing windows and unix packages 2021-01-14 12:01:33 +01:00
Sebastian Sdorra
a16086bc6c Align signing properties with gradle defaults 2021-01-14 12:01:33 +01:00
Sebastian Sdorra
a0405271fb Support for signing rpm packages 2021-01-14 12:01:33 +01:00
Sebastian Sdorra
41decf270b Support fro signing deb packages 2021-01-14 12:01:33 +01:00
Sebastian Sdorra
8c27af2661 Remove maven build related files 2021-01-14 12:01:30 +01:00
Sebastian Sdorra
c9ea026c52 Create release.yml 2021-01-14 11:56:05 +01:00
Sebastian Sdorra
87da653575 Create package.yml for each distributed package 2021-01-14 11:56:05 +01:00
Sebastian Sdorra
5c379a5bb4 Align dependency configurations and versions 2021-01-14 11:56:05 +01:00
Sebastian Sdorra
2c3b1514a4 Remove unused files 2021-01-14 11:56:01 +01:00
Sebastian Sdorra
36118c2e2a Migrate helm module to gradle 2021-01-14 11:55:28 +01:00
Sebastian Sdorra
ca42961131 Migrate docker module 2021-01-14 11:55:28 +01:00
Sebastian Sdorra
0d92f56937 Set central build props to avoid duplication 2021-01-14 11:55:28 +01:00
Sebastian Sdorra
c91ff8298c Migrate rpm module to docker 2021-01-14 11:55:28 +01:00
Sebastian Sdorra
713f4c3dfb Migrate deb module to gradle 2021-01-14 11:55:27 +01:00
Sebastian Sdorra
eba260f812 Add windows packaging 2021-01-14 11:55:27 +01:00
Sebastian Sdorra
251bd25fd3 Add unix packaging 2021-01-14 11:55:27 +01:00
Sebastian Sdorra
badcf3ecb4 Update helm chart documentation 2021-01-07 15:46:41 +01:00
schnatterer
3118d843d3 Provide more options for Helm chart (#1485)
Add more configuration options to the helm chart including:

* lifecycleHooks
* extraEnv
* extraEnvFrom
* extraVolumes
* extraVolumeMounts
* Node port option for the service

It is now possible to define plugin versions as YAML variables for better maintainability.
This change will also disable the default helm repository in order to fix the build.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-01-07 15:34:11 +01:00
CES Marvin
374d085fdd prepare for next development iteration 2020-12-17 15:24:34 +00:00
CES Marvin
38a7ff6acb release version 2.12.0 2020-12-17 14:55:08 +00:00
CES Marvin
56c63cb5b7 prepare for next development iteration 2020-12-07 15:01:20 +00:00
CES Marvin
baf04a551c release version 2.11.1 2020-12-07 14:24:49 +00:00
CES Marvin
87d06a708b prepare for next development iteration 2020-12-04 08:10:20 +00:00
CES Marvin
df62ffbe16 release version 2.11.0 2020-12-04 07:27:13 +00:00