-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from italiangrid/develop
Merge 3.7.0 changes into master
- Loading branch information
Showing
66 changed files
with
2,095 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pipeline { | ||
agent { label 'maven' } | ||
parameters { | ||
booleanParam(name: 'BUILD_DOCKER_IMAGES', defaultValue: false, | ||
description: 'Triggers the building of docker images required for development') | ||
} | ||
options { | ||
timeout(time: 1, unit: 'HOURS') | ||
buildDiscarder(logRotator(numToKeepStr: '5')) | ||
} | ||
|
||
stages{ | ||
|
||
stage('build') { | ||
steps { | ||
git(url: 'https://github.com/italiangrid/voms-admin-server.git', branch: env.BRANCH_NAME) | ||
sh 'mvn -B -U -P prod,EMI clean package' | ||
} | ||
} | ||
|
||
stage('build-docker-images') { | ||
agent { label 'docker' } | ||
when { | ||
expression { return params.BUILD_DOCKER_IMAGES } | ||
} | ||
steps { | ||
sh ''' | ||
pushd docker/voms-admin-server | ||
sh build-image.sh && sh push-image.sh | ||
popd | ||
push docker/voms/centos6 | ||
sh build-image.sh && sh push-image.sh | ||
popd''' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker build --no-cache=true -t italiangrid/voms-admin-server . | ||
VOMS_ADMIN_SERVER_IMAGE=${VOMS_ADMIN_SERVER_IMAGE:-"italiangrid/voms-admin-server"} | ||
|
||
docker build --no-cache=true -t ${VOMS_ADMIN_SERVER_IMAGE} . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
VOMS_ADMIN_SERVER_IMAGE=${VOMS_ADMIN_SERVER_IMAGE:-"italiangrid/voms-admin-server"} | ||
|
||
# The current script directory | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd ${DIR} | ||
|
||
if [ -n ${DOCKER_REGISTRY_HOST} ]; then | ||
docker tag ${VOMS_ADMIN_SERVER_IMAGE} ${DOCKER_REGISTRY_HOST}/${VOMS_ADMIN_SERVER_IMAGE} | ||
docker push ${DOCKER_REGISTRY_HOST}/${VOMS_ADMIN_SERVER_IMAGE} | ||
else | ||
docker push ${VOMS_ADMIN_SERVER_IMAGE} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
|
||
docker build -t italiangrid/voms-dev:centos6 . | ||
VOMS_IMAGE=${VOMS_IMAGE:-"italiangrid/voms-dev:centos6"} | ||
docker build -t ${VOMS_IMAGE} . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
VOMS_IMAGE=${VOMS_IMAGE:-"italiangrid/voms-dev:centos6"} | ||
|
||
# The current script directory | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd ${DIR} | ||
|
||
if [ -n ${DOCKER_REGISTRY_HOST} ]; then | ||
docker tag ${VOMS_IMAGE} ${DOCKER_REGISTRY_HOST}/${VOMS_IMAGE} | ||
docker push ${DOCKER_REGISTRY_HOST}/${VOMS_IMAGE} | ||
else | ||
docker push ${VOMS_IMAGE} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
voms-admin-server/resources/scripts/configure/voms-migrate-vo-util
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
VOMS_ADMIN_JAR=${VOMS_ADMIN_JAR:-/usr/share/java/voms-admin.jar} | ||
|
||
java -cp ${VOMS_ADMIN_JAR}':/var/lib/voms-admin/lib/*:/var/lib/voms-admin/tools' \ | ||
org.glite.security.voms.admin.util.migration.MigrateVo $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
voms-admin-server/src/main/java/org/glite/security/voms/admin/apiv2/AUPVersionJSON.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/** | ||
* Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2006-2016 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.glite.security.voms.admin.apiv2; | ||
|
||
import java.util.Date; | ||
|
||
import org.glite.security.voms.admin.persistence.model.AUPVersion; | ||
|
||
public class AUPVersionJSON { | ||
|
||
String version; | ||
|
||
String url; | ||
|
||
String text; | ||
|
||
Date creationTime; | ||
|
||
Date lastForcedReacceptanceTime; | ||
|
||
Boolean active; | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public void setText(String text) { | ||
this.text = text; | ||
} | ||
|
||
public Date getCreationTime() { | ||
return creationTime; | ||
} | ||
|
||
public void setCreationTime(Date creationTime) { | ||
this.creationTime = creationTime; | ||
} | ||
|
||
public Date getLastForcedReacceptanceTime() { | ||
return lastForcedReacceptanceTime; | ||
} | ||
|
||
public void setLastForcedReacceptanceTime(Date lastForcedReacceptanceTime) { | ||
this.lastForcedReacceptanceTime = lastForcedReacceptanceTime; | ||
} | ||
|
||
public Boolean getActive() { | ||
return active; | ||
} | ||
|
||
public void setActive(Boolean active) { | ||
this.active = active; | ||
} | ||
|
||
public static AUPVersionJSON fromAUPVersion(AUPVersion v){ | ||
AUPVersionJSON aupVersion = new AUPVersionJSON(); | ||
aupVersion.setActive(v.getActive()); | ||
aupVersion.setCreationTime(v.getCreationTime()); | ||
aupVersion.setLastForcedReacceptanceTime(v.getLastForcedReacceptanceTime()); | ||
aupVersion.setText(v.getText()); | ||
aupVersion.setUrl(v.getUrl()); | ||
aupVersion.setVersion(v.getVersion()); | ||
|
||
return aupVersion; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.