Skip to content

Commit 469ecf4

Browse files
Merge branch 'liferay:master' into LPD-55983
2 parents 40faa44 + f73ea5d commit 469ecf4

File tree

5,799 files changed

+311353
-48604
lines changed

Some content is hidden

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

5,799 files changed

+311353
-48604
lines changed

build-test-batch.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8058,6 +8058,34 @@ ${output.content}</echo>
80588058
</run-batch-test>
80598059
</target>
80608060

8061+
<target name="playwright-js-smoke-tomcat101-db2115">
8062+
<run-playwright-js-test database.type="db2" />
8063+
</target>
8064+
8065+
<target name="playwright-js-smoke-tomcat101-hypersonic20">
8066+
<run-playwright-js-test database.type="hypersonic" />
8067+
</target>
8068+
8069+
<target name="playwright-js-smoke-tomcat101-mariadb106">
8070+
<run-playwright-js-test database.type="mariadb" />
8071+
</target>
8072+
8073+
<target name="playwright-js-smoke-tomcat101-mysql84">
8074+
<run-playwright-js-test database.type="mysql" />
8075+
</target>
8076+
8077+
<target name="playwright-js-smoke-tomcat101-oracle193">
8078+
<run-playwright-js-test database.type="oracle" />
8079+
</target>
8080+
8081+
<target name="playwright-js-smoke-tomcat101-postgresql163">
8082+
<run-playwright-js-test database.type="postgresql" />
8083+
</target>
8084+
8085+
<target name="playwright-js-smoke-tomcat101-sqlserver2022">
8086+
<run-playwright-js-test database.type="sqlserver" />
8087+
</target>
8088+
80618089
<target name="playwright-js-tomcat101-mysql57">
80628090
<run-playwright-js-test database.type="mysql" />
80638091
</target>

build-test.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252

5353
<macrodef name="apply-portal-ext-properties">
5454
<sequential>
55+
<condition property="add.passwords.encryption.algorithm">
56+
<not>
57+
<contains string="${custom.properties}" substring="passwords.encryption.algorithm=" />
58+
</not>
59+
</condition>
60+
5561
<if>
5662
<contains string="${app.server.portal.dir}" substring="liferay-portal.war" />
5763
<then>
@@ -83,6 +89,15 @@
8389

8490
module.framework.properties.osgi.console=11312</echo>
8591

92+
<if>
93+
<isset property="add.passwords.encryption.algorithm" />
94+
<then>
95+
<echo append="true" file="${tstamp.value}/WEB-INF/classes/portal-ext.properties">
96+
97+
passwords.encryption.algorithm=NONE</echo>
98+
</then>
99+
</if>
100+
86101
<print-file file.name="${tstamp.value}/WEB-INF/classes/portal-ext.properties" />
87102

88103
<delete file="${test.build.liferay.portal.zip.file.name}" />
@@ -119,6 +134,15 @@ module.framework.properties.osgi.console=11312</echo>
119134

120135
module.framework.properties.osgi.console=11312</echo>
121136

137+
<if>
138+
<isset property="add.passwords.encryption.algorithm" />
139+
<then>
140+
<echo append="true" file="${app.server.classes.portal.dir}/portal-ext.properties">
141+
142+
passwords.encryption.algorithm=NONE</echo>
143+
</then>
144+
</if>
145+
122146
<print-file file.name="${app.server.classes.portal.dir}/portal-ext.properties" />
123147
</else>
124148
</if>
@@ -12155,7 +12179,7 @@ ${update.properties}</echo>
1215512179
<Configuration strict="true">
1215612180
<Loggers>
1215712181
<Logger level="ERROR" name="com.liferay.portal.search.elasticsearch7.internal.ElasticsearchSearchEngine" />
12158-
<Logger level="INFO" name="com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory" />
12182+
<Logger level="INFO" name="com.liferay.portal.search.elasticsearch7.internal.index.IndexFactory" />
1215912183
<Logger level="ERROR" name="com.liferay.portal.search.elasticsearch7.internal.sidecar.SidecarManager" />
1216012184
</Loggers>
1216112185
</Configuration>]]></echo>

build.properties

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,7 @@
315315
# dxp/apps/sharepoint-soap,\
316316
# util/portal-tools-db-partition-migration-validator,\
317317
# util/portal-tools-db-schema-importer,\
318-
# util/portal-tools-db-upgrade-client,\
319-
# util/portal-tools-rest-builder-test-api,\
320-
# util/portal-tools-rest-builder-test-client,\
321-
# util/portal-tools-rest-builder-test-impl
318+
# util/portal-tools-db-upgrade-client
322319

323320
#
324321
# Set the module directories to include that will use the Jakarta

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
includes=".liferay-home"
2121
/>
2222
<fileset
23-
dir="${liferay.home}/data/elasticsearch"
23+
dir="${liferay.home}/data/elasticsearch7"
2424
/>
2525
<fileset
2626
dir="${liferay.home}/data/hypersonic"

cloud/helm/default/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ description:
55
icon: https://www-cdn.liferay.com/documents/d/guest/liferay-logo
66
name: liferay-default
77
type: application
8-
version: 0.0.7
8+
version: 0.0.8

cloud/helm/default/templates/_statefulset.tpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,15 @@ metadata:
174174
name: {{ include "liferay.name" .root }}{{ $suffix }}
175175
namespace: {{ include "liferay.namespace" .root }}
176176
spec:
177-
{{- with .statefulset.service.ports }}
177+
{{- if or .statefulset.service.ports .statefulset.customServicePorts }}
178178
ports:
179+
{{- with .statefulset.service.ports }}
179180
{{- toYaml . | nindent 8 }}
180181
{{- end }}
182+
{{- range $k, $v := .statefulset.customServicePorts }}
183+
{{- toYaml $v | nindent 8 }}
184+
{{- end }}
185+
{{- end }}
181186
selector:
182187
app: {{ include "liferay.name" .root }}{{ $suffix }}
183188
{{- include "liferay.selectorLabels" .root | nindent 8 }}

cloud/helm/default/values.yaml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ customLabels:
2323
origin: liferay-cloud
2424
customPorts: {}
2525
customPullSecrets: {}
26+
customServicePorts: {}
2627
customVolumeClaimTemplates: {}
2728
customVolumeMounts: {}
2829
customVolumes: {}
@@ -63,21 +64,24 @@ initContainers:
6364
- bash
6465
- -c
6566
- |
67+
rm -fr /temp/liferay/liferay.pid 2>/dev/null
68+
69+
mkdir -p /temp/liferay
70+
71+
touch /temp/liferay/liferay.pid
72+
6673
if [ ! -d /temp/liferay/data ] || [ -z "$(ls -A /temp/liferay/data)" ]
6774
then
6875
mkdir -p /temp/liferay/data
6976
7077
cp -frv /opt/liferay/data/* /temp/liferay/data
7178
fi
7279
73-
if [ -d /opt/liferay/deploy ] && [ -z "$(ls -A /temp/liferay/deploy/*license* 2>/dev/null)" ]
80+
if [ ! -d /temp/liferay/glowroot ] || [ -z "$(ls -A /temp/liferay/glowroot)" ]
7481
then
75-
if [ ! -d /temp/liferay/data/license ] || [ -z "$(ls -A /temp/liferay/data/license/*.li)" ]
76-
then
77-
mkdir -p /temp/liferay/deploy
82+
mkdir -p /temp/liferay/glowroot
7883
79-
cp -fv /opt/liferay/deploy/* /temp/liferay/deploy
80-
fi
84+
cp -frv /opt/liferay/glowroot/* /temp/liferay/glowroot
8185
fi
8286
8387
if [ ! -f /temp/tomcat/conf/server.xml ]
@@ -110,6 +114,16 @@ initContainers:
110114
111115
sed -i '/<Engine/r'<(echo "${SERVER_XML_CLUSTER}") /temp/tomcat/conf/server.xml
112116
fi
117+
118+
if [ -d /opt/liferay/deploy ] && [ -z "$(ls -A /temp/liferay/deploy/*license* 2>/dev/null)" ]
119+
then
120+
if [ ! -d /temp/liferay/data/license ] || [ -z "$(ls -A /temp/liferay/data/license/*.li)" ]
121+
then
122+
mkdir -p /temp/liferay/deploy
123+
124+
cp -fv /opt/liferay/deploy/* /temp/liferay/deploy
125+
fi
126+
fi
113127
image: {{ printf "%s:%s" .image.repository (.image.tag | toString) }}
114128
imagePullPolicy: {{ .image.pullPolicy }}
115129
name: liferay-prepopulate-data
@@ -156,6 +170,9 @@ portalBundleDenyList: []
156170
portalComponentDenyList: []
157171
portalProperties:
158172
ports:
173+
- containerPort: 4000
174+
name: glowroot
175+
protocol: TCP
159176
- containerPort: 7800
160177
name: cluster
161178
protocol: TCP
@@ -233,6 +250,9 @@ volumeMounts:
233250
- mountPath: /opt/liferay/deploy
234251
name: liferay-persistent-volume
235252
subPath: liferay/deploy
253+
- mountPath: /opt/liferay/glowroot
254+
name: liferay-persistent-volume
255+
subPath: liferay/glowroot
236256
- mountPath: /opt/liferay/liferay.pid
237257
name: liferay-persistent-volume
238258
subPath: liferay/liferay.pid
@@ -284,6 +304,9 @@ volumeMounts:
284304
- mountPath: /opt/liferay/work
285305
name: liferay-persistent-volume
286306
subPath: liferay/work
307+
- mountPath: /tmp
308+
name: liferay-persistent-volume
309+
subPath: system/tmp
287310
- mountPath: /usr/local/liferay/scripts/pre-configure/000_jdk_java_options.sh
288311
name: liferay-configmap
289312
subPath: 000_jdk_java_options.sh

cloud/operator/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM golang:1.24 AS builder
2+
3+
WORKDIR /workspace
4+
5+
COPY resources .
6+
7+
RUN go mod download && \
8+
go mod verify && \
9+
CGO_ENABLED=0 go build -a -ldflags="-s -w" -o manager main.go
10+
11+
FROM gcr.io/distroless/static:nonroot
12+
13+
ENTRYPOINT ["/manager"]
14+
15+
COPY --from=builder /workspace/manager /
16+
17+
USER 65532:65532

cloud/operator/resources/go.mod

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
module github.com/liferay/liferay-portal/cloud/operator
2+
3+
go 1.24.4
4+
5+
require (
6+
github.com/caarlos0/env/v11 v11.3.1
7+
k8s.io/api v0.33.1
8+
k8s.io/apimachinery v0.33.1
9+
k8s.io/client-go v0.33.1
10+
sigs.k8s.io/controller-runtime v0.21.0
11+
)
12+
13+
require (
14+
github.com/beorn7/perks v1.0.1 // indirect
15+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
16+
github.com/davecgh/go-spew v1.1.1 // indirect
17+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
18+
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
19+
github.com/fsnotify/fsnotify v1.7.0 // indirect
20+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
21+
github.com/go-logr/logr v1.4.2 // indirect
22+
github.com/go-logr/zapr v1.3.0 // indirect
23+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
24+
github.com/go-openapi/jsonreference v0.20.2 // indirect
25+
github.com/go-openapi/swag v0.23.0 // indirect
26+
github.com/gogo/protobuf v1.3.2 // indirect
27+
github.com/google/btree v1.1.3 // indirect
28+
github.com/google/gnostic-models v0.6.9 // indirect
29+
github.com/google/go-cmp v0.7.0 // indirect
30+
github.com/google/uuid v1.6.0 // indirect
31+
github.com/josharian/intern v1.0.0 // indirect
32+
github.com/json-iterator/go v1.1.12 // indirect
33+
github.com/mailru/easyjson v0.7.7 // indirect
34+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
35+
github.com/modern-go/reflect2 v1.0.2 // indirect
36+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
37+
github.com/pkg/errors v0.9.1 // indirect
38+
github.com/prometheus/client_golang v1.22.0 // indirect
39+
github.com/prometheus/client_model v0.6.1 // indirect
40+
github.com/prometheus/common v0.62.0 // indirect
41+
github.com/prometheus/procfs v0.15.1 // indirect
42+
github.com/spf13/pflag v1.0.5 // indirect
43+
github.com/x448/float16 v0.8.4 // indirect
44+
go.uber.org/multierr v1.11.0 // indirect
45+
go.uber.org/zap v1.27.0 // indirect
46+
golang.org/x/net v0.38.0 // indirect
47+
golang.org/x/oauth2 v0.27.0 // indirect
48+
golang.org/x/sync v0.12.0 // indirect
49+
golang.org/x/sys v0.31.0 // indirect
50+
golang.org/x/term v0.30.0 // indirect
51+
golang.org/x/text v0.23.0 // indirect
52+
golang.org/x/time v0.9.0 // indirect
53+
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
54+
google.golang.org/protobuf v1.36.5 // indirect
55+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
56+
gopkg.in/inf.v0 v0.9.1 // indirect
57+
gopkg.in/yaml.v3 v3.0.1 // indirect
58+
k8s.io/apiextensions-apiserver v0.33.0 // indirect
59+
k8s.io/klog/v2 v2.130.1 // indirect
60+
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
61+
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
62+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
63+
sigs.k8s.io/randfill v1.0.0 // indirect
64+
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
65+
sigs.k8s.io/yaml v1.4.0 // indirect
66+
)

0 commit comments

Comments
 (0)