1
0

20 Commits

Author SHA1 Message Date
f4e04ced60 #26 Add volume 2026-01-18 21:02:44 +01:00
043e085f26 #26 Dockerize config 2026-01-18 20:55:53 +01:00
b832e2066b [maven-release-plugin] prepare for next development iteration 2026-01-18 01:08:42 +01:00
3b2d5c371c [maven-release-plugin] prepare release v34 2026-01-18 01:08:41 +01:00
3724b8b5ab [maven-release-plugin] prepare for next development iteration 2026-01-18 00:19:01 +01:00
a35b5ffdc9 [maven-release-plugin] prepare release v33 2026-01-18 00:19:00 +01:00
39eb0769a5 Merge remote-tracking branch 'origin/master' 2026-01-18 00:18:42 +01:00
d355ba45f2 #26 Buildkit again 2026-01-18 00:18:39 +01:00
452892e74b [maven-release-plugin] prepare for next development iteration 2026-01-18 00:17:05 +01:00
dde3b3ad40 [maven-release-plugin] prepare release v32 2026-01-18 00:17:03 +01:00
693f0ef2fc Merge remote-tracking branch 'origin/master' 2026-01-18 00:16:45 +01:00
3b52af188b #26 Reenable buildkit and use another base image 2026-01-18 00:16:41 +01:00
33c2d13f62 [maven-release-plugin] prepare for next development iteration 2026-01-18 00:10:01 +01:00
670d9f19a7 [maven-release-plugin] prepare release v31 2026-01-18 00:10:00 +01:00
fefa5a630b Merge remote-tracking branch 'origin/master' 2026-01-18 00:09:40 +01:00
3d69c88c26 #26 Disable buildkit again and use VFS 2026-01-18 00:09:37 +01:00
8b039440d3 [maven-release-plugin] prepare for next development iteration 2026-01-18 00:06:12 +01:00
57609bb1f6 [maven-release-plugin] prepare release v30 2026-01-18 00:06:11 +01:00
2f19f28213 Merge remote-tracking branch 'origin/master' 2026-01-18 00:05:54 +01:00
6e1eceba2f #26 Reenabled buildkit 2026-01-18 00:05:49 +01:00
16 changed files with 80 additions and 34 deletions

View File

@@ -9,9 +9,8 @@ nbscloud requires `java>=18`
### `deploy.sh`
## Config
To adjust the default configuration create the file `~/.config/nbscloud/application.properties`. It allows overwriting
properties from every configuration file of nbscloud. To get a full list of existing properties look at the following
files:
To adjust the default configuration adjust the key-value pairs in the `.env` file. Keep in mind that not all properties
are mentioned in there. To see all available properties click through the available properties files below:
|File|Description|
|----|-----------|
|[application.properties](./web-container/src/main/resources/config/application.properties)|Main config file providing general app properties|

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -1,11 +1,10 @@
FROM eclipse-temurin:25-jre-alpine
FROM eclipse-temurin:25-jre-jammy
RUN groupadd -r spring && useradd -r -g spring spring
# Create a non-root user for security
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
EXPOSE 8082

30
build/Jenkinsfile vendored
View File

@@ -61,24 +61,22 @@ pipeline {
stage('Docker Build & Push') {
steps {
withEnv(['DOCKER_BUILDKIT=0']) {
script {
def jarPath = sh(script: "ls target/checkout/web-container/target/*.jar | head -n 1", returnStdout: true).trim()
def releaseVer = sh(script: "pkgx mvn help:evaluate -Dexpression=project.version -q -DforceStdout -f target/checkout/web-container/pom.xml", returnStdout: true).trim()
def registry = env.DOCKER_REGISTRY.toLowerCase()
def registryHost = registry.replace("https://", "").replace("http://", "").replaceAll("/\$", "").toLowerCase()
def imageTag = "${registryHost}/nbscloud:${releaseVer}".toLowerCase()
script {
def jarPath = sh(script: "ls target/checkout/web-container/target/*.jar | head -n 1", returnStdout: true).trim()
def releaseVer = sh(script: "pkgx mvn help:evaluate -Dexpression=project.version -q -DforceStdout -f target/checkout/web-container/pom.xml", returnStdout: true).trim()
def registry = env.DOCKER_REGISTRY.toLowerCase()
def registryHost = registry.replace("https://", "").replace("http://", "").replaceAll("/\$", "").toLowerCase()
def imageTag = "${registryHost}/nbscloud:${releaseVer}".toLowerCase()
docker.withRegistry(registry, '') {
def customImage = docker.build(imageTag, "-f build/Dockerfile --build-arg JAR_FILE=${jarPath} .")
docker.withRegistry(registry, '') {
def customImage = docker.build(imageTag, "-f build/Dockerfile --build-arg JAR_FILE=${jarPath} .")
if (params.DRY_RUN) {
echo "DRY_RUN - do not push image to registry"
}
else {
customImage.push("${releaseVer}")
customImage.push("latest")
}
if (params.DRY_RUN) {
echo "DRY_RUN - do not push image to registry"
}
else {
customImage.push("${releaseVer}")
customImage.push("latest")
}
}
}

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

36
examples/.env Normal file
View File

@@ -0,0 +1,36 @@
# nbscloud will look for and store files in this directory - mind the permissions
NBSCLOUD_FILES_BASEDIR=/nbscloud
# Whether dark mode should be used by default
NBSCLOUD_WEBCONTAINER_SHARED_DARKMODE=true
# Knob to configure whether hidden files are shown
NBSCLOUD_FILES_FILTERHIDDEN=true
# Whether to use the trash bin or directly removefiles
NBSCLOUD_FILES_USETRASHBIN=true
# Knob to configure the name of the trash bin directory
NBSCLOUD_FILES_TRASHBINNAME=nbs.internal/nbs.trashbin
# Knob to configure the amount of character after which the filename
# will be truncated
NBSCLOUD_FILES_TRUNCATEFILENAMECHARS=130
# Knob to configure the name of the shares directory
NBSCLOUD_FILES_SHARESNAME=nbs.internal/nbs.shares
# Knob to configure the name of the app directory
NBSCLOUD_FILES_APPDIR=nbs.internal/apps
# The address the embedded tomcat listens on - you probably want to keep this on localhost
SERVER_ADDRESS=localhost
SERVER_SERVLET_CONTEXTPATH=/nbscloud
SERVER_PORT=8082
# No upload sze restriction
SPRING_SERVLET_MULTIPART_MAXFILESIZE=-1
SPRING_SERVLET_MULTIPART_MAXREQUESTSIZE=-1
LOGGING_LEVEL_DE_NBSCLOUD=DEBUG

View File

@@ -0,0 +1,14 @@
services:
app:
image: your-registry.com/nbscloud:latest
ports:
- "8082:8082"
restart: always
env_file:
- .env
volumes:
- nbscloud_vol:/nbscloud
volumes:
nbscloud_vol:
name: nbscloud_vol

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -10,7 +10,7 @@
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
<packaging>pom</packaging>
<description>The umbrella for all No BullShit cloud projects</description>
<name>nbs-cloud-aggregator</name>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<artifactId>web-container-config</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<artifactId>web-container-registry</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>30-SNAPSHOT</version>
<version>35-SNAPSHOT</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>