Skip to content

Commit 9b54061

Browse files
committed
#39 Configure nexus log verbosity
1 parent 4d2de37 commit 9b54061

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# registry.cloudogu.com/official/nexus
2-
FROM registry.cloudogu.com/official/java:8u222-1
2+
FROM registry.cloudogu.com/official/java:8u242-1
33
LABEL maintainer="[email protected]" \
44
NAME="official/nexus" \
55
VERSION="3.19.1-1"

dogu.json

+18-3
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,32 @@
4040
"Configuration": [
4141
{
4242
"Name": "nexus.repository.sandbox.enable",
43-
"Description": "Enable repository sandboxing",
43+
"Description": "Enable repository sandboxing. This key is going to be deprecated. Please use 'enable_repository_sandbox' as direct replacement.",
4444
"Optional": true
4545
},
4646
{
4747
"Name": "installDefaultDockerRegistry",
48-
"Description": "If set to false, the default docker registry is not installed",
48+
"Description": "If set to false, the default docker registry is not installed. This key is going to be deprecated. Please use 'install_default_docker_registry' as direct replacement.",
4949
"Optional": true
5050
},
5151
{
5252
"Name": "disableOutreachManagement",
53-
"Description": "Disable the outreach management capability",
53+
"Description": "Disable the outreach management capability. This key is going to be deprecated. Please use 'disable_outreach_management' as direct replacement.",
54+
"Optional": true
55+
},
56+
{
57+
"Name": "enable_repository_sandbox",
58+
"Description": "Enable repository sandboxing.",
59+
"Optional": true
60+
},
61+
{
62+
"Name": "install_default_docker_registry",
63+
"Description": "If set to false, the default docker registry is not installed.",
64+
"Optional": true
65+
},
66+
{
67+
"Name": "disable_outreach_management",
68+
"Description": "Disable the outreach management capability.",
5469
"Optional": true
5570
}
5671
],

resources/opt/sonatype/nexus/resources/nexusConfParameters.json.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"newAdminPassword": "{{ .Env.Get "NEWADMINPASSWORD" }}",
55
"lastAdminGroup": "{{ .Config.GetOrDefault "admin_group_last" "" }}",
66
"adminGroup": "{{ .GlobalConfig.Get "admin_group" }}",
7-
"disableOutreachManagement": "{{ .Config.GetOrDefault "disableOutreachManagement" "false" }}",
7+
"disableOutreachManagement": "{{ .Config.GetOrDefault "disable_outreach_management" "false" }}",
88
{{ if .Config.Exists "proxyConfiguration/http/host" }}
99
"proxyConfigurationHttpHost": "{{ .Config.Get "proxyConfiguration/http/host" }}"{{ end }}{{ if .Config.Exists "proxyConfiguration/http/port" }},
1010
"proxyConfigurationHttpPort": {{ .Config.Get "proxyConfiguration/http/port" }}{{ end }}{{ if .Config.Exists "proxyConfiguration/http/authentication/username" }},

resources/startup.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ function setNexusProperties() {
7070
EOF
7171

7272
echo "Checking if repository sandboxing should be enabled..."
73-
if doguctl config nexus.repository.sandbox.enable >/dev/null; then
74-
sandboxEnable=$(doguctl config nexus.repository.sandbox.enable)
73+
if doguctl config enable_repository_sandbox >/dev/null; then
74+
sandboxEnable=$(doguctl config enable_repository_sandbox)
7575
echo "Setting repository sandboxing to ${sandboxEnable}"
7676
echo "nexus.repository.sandbox.enable=${sandboxEnable}" >>${NEXUS_DATA_DIR}/etc/nexus.properties
7777
else
@@ -217,7 +217,7 @@ if [ "$(doguctl config successfulInitialConfiguration)" != "true" ]; then
217217
exportNexusPasswordFromEtcd
218218

219219
# Install default docker registry if not prohibited by etcd key
220-
if "$(doguctl config --default true installDefaultDockerRegistry)" != "false"; then
220+
if "$(doguctl config --default true install_default_docker_registry)" != "false"; then
221221
installDefaultDockerRegistry
222222
fi
223223

0 commit comments

Comments
 (0)