aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNuoHan Qiao <qiaonuohan@cn.fujitsu.com>2016-08-10 02:16:27 -0400
committerNuoHan Qiao <qiaonuohan@cn.fujitsu.com>2016-08-10 02:47:57 -0400
commit71b2d3f8825b9d815b6928533133ddc9aa8c1f94 (patch)
treeca0e7501b77e25c5fd505a7911668b782a6600ca
parent8ad355d9d540ef1050d40a314b71412f8bcaaad1 (diff)
Persist users database
To persist users database, move /var/lib/jenkins/users into userdata/conf/ and create a symbolic link to it. Change-Id: Idb19115e73d619fb708620f9ad5cfc55e4991509 Signed-off-by: NuoHan Qiao <qiaonuohan@cn.fujitsu.com>
-rw-r--r--Dockerfile1
-rw-r--r--userdata/conf/config_template.xml7
-rw-r--r--userdata/conf/users/README1
3 files changed, 7 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index c8aa52b..be67bb4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -55,6 +55,7 @@ RUN ln -s /userdata/logs $INST_JTA_FRONTEND_PATH/logs
RUN ln -s /userdata/conf/boards $INST_JTA_ENGINE_PATH/overlays/boards
RUN ln -s /userdata/conf/config.xml $INST_JTA_FRONTEND_PATH/config.xml
RUN ln -s /userdata/conf/nodes $INST_JTA_FRONTEND_PATH/nodes
+RUN ln -s /userdata/conf/users $INST_JTA_FRONTEND_PATH/users
RUN ln -s /userdata/conf/tools.sh $INST_JTA_ENGINE_PATH/scripts/tools.sh
#RUN mkdir $INST_JTA_ENGINE_PATH/logs/logruns
diff --git a/userdata/conf/config_template.xml b/userdata/conf/config_template.xml
index b07c958..69b55b4 100644
--- a/userdata/conf/config_template.xml
+++ b/userdata/conf/config_template.xml
@@ -9,7 +9,10 @@
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
- <securityRealm class="hudson.security.SecurityRealm$None"/>
+ <securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
+ <disableSignup>false</disableSignup>
+ <enableCaptcha>false</enableCaptcha>
+ </securityRealm>
<disableRememberMe>false</disableRememberMe>
<projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
<workspaceDir>${ITEM_ROOTDIR}/workspace</workspaceDir>
@@ -295,4 +298,4 @@
</envVars>
</hudson.slaves.EnvironmentVariablesNodeProperty>
</globalNodeProperties>
-</hudson>
+</hudson> \ No newline at end of file
diff --git a/userdata/conf/users/README b/userdata/conf/users/README
new file mode 100644
index 0000000..f2059df
--- /dev/null
+++ b/userdata/conf/users/README
@@ -0,0 +1 @@
+This catalogue contains the users database of jenkins.