Skip to content

Commit bbd24da

Browse files
committed
Merge branch 'release/1.2.0'
2 parents 9f1c796 + d5614b9 commit bbd24da

File tree

339 files changed

+11708
-1541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+11708
-1541
lines changed

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ ij_hcl_spaces_within_brackets = false
11091109
ij_hcl_wrap_long_lines = false
11101110

11111111
[{*.htm,*.html,*.sht,*.shtm,*.shtml}]
1112+
max_line_length = 240
11121113
ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3
11131114
ij_html_align_attributes = true
11141115
ij_html_align_text = false
@@ -1119,7 +1120,7 @@ ij_html_do_not_align_children_of_min_lines = 0
11191120
ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p
11201121
ij_html_do_not_indent_children_of_tags = none
11211122
ij_html_enforce_quotes = false
1122-
ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var
1123+
ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var,th:block
11231124
ij_html_keep_blank_lines = 2
11241125
ij_html_keep_indents_on_empty_lines = false
11251126
ij_html_keep_line_breaks = true
@@ -1139,7 +1140,7 @@ ij_html_text_wrap = normal
11391140
[{*.http,*.rest}]
11401141
indent_size = 0
11411142
ij_continuation_indent_size = 4
1142-
ij_http request_call_parameters_wrap = normal
1143+
ij_http_request_call_parameters_wrap = normal
11431144

11441145
[{*.jsf,*.jsp,*.jspf,*.tag,*.tagf,*.xjsp}]
11451146
ij_jsp_jsp_prefer_comma_separated_import_list = false

.github/workflows/workflows.yaml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,27 @@ jobs:
1616
strategy:
1717
matrix:
1818
java:
19-
- 17
19+
- 21
2020
kubernetes:
21-
- 'v1.24.17'
22-
- 'v1.25.16'
23-
- 'v1.26.15'
24-
- 'v1.27.13'
25-
- 'v1.28.9'
26-
- 'v1.29.4'
27-
- 'v1.30.0'
21+
- 'v1.30.11'
22+
- 'v1.31.7'
23+
- 'v1.32.3'
2824

2925
steps:
30-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
3127
- name: Set up JDK
32-
uses: actions/setup-java@v1
28+
uses: actions/setup-java@v4
3329
with:
3430
java-version: ${{ matrix.java }}
31+
distribution: temurin
3532
- name: Cache Maven packages
36-
uses: actions/cache@v2
33+
uses: actions/cache@v4
3734
with:
3835
path: ~/.m2
3936
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4037
restore-keys: ${{ runner.os }}-m2
4138
- name: Setup Minikube
42-
uses: manusa/actions-setup-minikube@v2.7.2
39+
uses: manusa/actions-setup-minikube@v2.13.1
4340
with:
4441
minikube version: 'v1.33.0'
4542
kubernetes version: ${{ matrix.kubernetes }}
@@ -58,20 +55,3 @@ jobs:
5855
run: mvn -B -U clean install -DskipTests
5956
- name: Run Tests
6057
run: mvn -B test
61-
62-
dependency:
63-
runs-on: ubuntu-latest
64-
65-
steps:
66-
- uses: actions/checkout@v2
67-
- name: Set up JDK
68-
uses: actions/setup-java@v1
69-
with:
70-
java-version: 17
71-
- name: Run Dependency Check
72-
run: mvn -B -Powasp-dependency-check verify -DskipTests
73-
- name: Archive code coverage results
74-
uses: actions/upload-artifact@v2
75-
with:
76-
name: dependency-check-report
77-
path: target/dependency-check-report.html

Jenkinsfile

Lines changed: 0 additions & 30 deletions
This file was deleted.

JenkinsfileSCM

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
pipeline {
2+
3+
agent {
4+
kubernetes {
5+
inheritFrom "default"
6+
yamlFile 'kubernetesPod.yaml'
7+
yamlMergeStrategy merge()
8+
}
9+
}
10+
11+
parameters {
12+
booleanParam(name: 'SkipTests', defaultValue: false)
13+
}
14+
15+
options {
16+
buildDiscarder(logRotator(numToKeepStr: '3'))
17+
}
18+
19+
environment {
20+
KUBERNETES_TRUST_CERTIFICATES = "true"
21+
ITEST_ECS_REGION = "dummy-region"
22+
ITEST_ECS_NAME = "dummy-name"
23+
ITEST_ECS_SECURITY_GROUPS = "dummy-sg"
24+
ITEST_ECS_SUBNETS = "dummy-subnets"
25+
}
26+
27+
stages {
28+
29+
stage('prepare') {
30+
steps {
31+
container('docker') {
32+
sh 'echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories'
33+
sh 'apk add minikube@testing'
34+
sh 'docker network create sp-shared-network'
35+
sh 'docker swarm init'
36+
sh 'docker pull openanalytics/shinyproxy-integration-test-app'
37+
sh 'docker run -d -p 6379:6379 redis'
38+
sh 'adduser -D -u 1000 user && adduser user docker'
39+
sh "su user /bin/sh -c 'minikube start --driver=docker --force'"
40+
sh "su user /bin/sh -c 'minikube kubectl -- config view --flatten > /tmp/kubeconfig'"
41+
script {
42+
env.KUBERNETES_MASTER = "https://" + sh(returnStdout: true, script: "su user /bin/sh -c 'minikube ip'").trim() + ":8443"
43+
}
44+
}
45+
}
46+
}
47+
48+
stage('build') {
49+
environment {
50+
KUBECONFIG = "/tmp/kubeconfig"
51+
}
52+
53+
steps {
54+
container('containerproxy-build') {
55+
configFileProvider([configFile(fileId: 'maven-settings-rsb', variable: 'MAVEN_SETTINGS_RSB')]) {
56+
sh 'mvn -Dmaven.repo.local=/tmp/m2 -B -s $MAVEN_SETTINGS_RSB -U clean package -DskipTests'
57+
}
58+
}
59+
}
60+
}
61+
62+
stage('test') {
63+
environment {
64+
KUBECONFIG = "/tmp/kubeconfig"
65+
}
66+
67+
when {
68+
equals expected: false, actual: params.SkipTests
69+
}
70+
71+
steps {
72+
container('containerproxy-build') {
73+
configFileProvider([configFile(fileId: 'maven-settings-rsb', variable: 'MAVEN_SETTINGS_RSB')]) {
74+
sh 'mvn -Dmaven.repo.local=/tmp/m2 -B -s $MAVEN_SETTINGS_RSB test'
75+
}
76+
}
77+
}
78+
}
79+
80+
stage('deploy to Nexus') {
81+
environment {
82+
KUBECONFIG = "/tmp/kubeconfig"
83+
}
84+
85+
steps {
86+
container('containerproxy-build') {
87+
configFileProvider([configFile(fileId: 'maven-settings-rsb', variable: 'MAVEN_SETTINGS_RSB')]) {
88+
sh 'mvn -Dmaven.repo.local=/tmp/m2 -B -s $MAVEN_SETTINGS_RSB deploy -DskipTests'
89+
}
90+
}
91+
}
92+
}
93+
}
94+
}

LICENSE_HEADER

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ContainerProxy
1+
${project.name}
22

3-
Copyright (C) 2016-2024 Open Analytics
3+
Copyright (C) ${project.inceptionYear}-${year} Open Analytics
44

55
===========================================================================
66

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88

99
</pre>
1010

11-
[![Build Status](https://travis-ci.org/openanalytics/containerproxy.svg?branch=master)](https://travis-ci.org/openanalytics/containerproxy)
12-
1311
# ContainerProxy
1412

1513
ContainerProxy is an application that launches and manages containers for users, to perform specific tasks.
1614

1715
It is the engine that powers a.o. [ShinyProxy](https://shinyproxy.io) but can be used for any application that needs to manage HTTP proxy routes into Docker containers.
1816

19-
Learn more at https://containerproxy.io (in progress)
17+
Learn more at <https://shinyproxy.io/> (in progress)
2018

21-
#### (c) Copyright Open Analytics NV, 2017-2023 - Apache License 2.0
19+
**(c) Copyright Open Analytics NV, 2017-2025 - Apache License 2.0**
2220

2321
## Building from source
2422

@@ -32,4 +30,4 @@ The build will result in a single `.jar` file that is made available in the `tar
3230

3331
## Further information
3432

35-
https://containerproxy.io (in progress)
33+
<https://shinyproxy.io/>

kubernetesPod.yaml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,54 @@
11
apiVersion: v1
22
kind: Pod
33
metadata:
4-
name: containerproxy
54
labels:
65
ci: containerproxy-build
76
spec:
7+
volumes:
8+
- name: docker-socket
9+
emptyDir: { }
10+
- name: tmp
11+
emptyDir: { }
812
containers:
913
- name: containerproxy-build
10-
image: public.ecr.aws/docker/library/maven:3-eclipse-temurin-17-focal
14+
image: public.ecr.aws/docker/library/maven:3-eclipse-temurin-21-jammy
15+
securityContext:
16+
runAsUser: 1000
17+
runAsGroup: 2375
1118
command:
1219
- cat
1320
tty: true
21+
env:
22+
- name: DOCKER_HOST
23+
value: unix:///var/run/docker/docker.sock
24+
volumeMounts:
25+
- mountPath: /var/run/docker
26+
name: docker-socket
27+
- mountPath: /tmp/
28+
name: tmp
29+
resources:
30+
requests:
31+
memory: "4Gi"
32+
cpu: "2"
33+
limits:
34+
memory: "4Gi"
35+
cpu: "2"
36+
- name: docker
37+
image: public.ecr.aws/docker/library/docker:dind
38+
securityContext:
39+
privileged: true
40+
env:
41+
- name: DOCKER_HOST
42+
value: unix:///var/run/docker/docker.sock
43+
volumeMounts:
44+
- mountPath: /var/run/docker
45+
name: docker-socket
46+
- mountPath: /tmp/
47+
name: tmp
1448
resources:
1549
requests:
16-
ephemeral-storage: "20Gi"
17-
memory: "2Gi"
18-
cpu: "1.0"
50+
memory: "4Gi"
51+
cpu: "2"
1952
limits:
2053
memory: "4Gi"
21-
cpu: "1.5"
22-
ephemeral-storage: "20Gi"
54+
cpu: "2"

0 commit comments

Comments
 (0)