forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
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 IQSS#5701 from IQSS/develop
v4.12
- Loading branch information
Showing
285 changed files
with
10,682 additions
and
2,269 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
#!/bin/sh | ||
DCM_VERSION=0.5 | ||
RSAL_VERSION=0.1 | ||
|
||
wget https://github.com/sbgrid/data-capture-module/releases/download/0.5/dcm-0.5-0.noarch.rpm | ||
if [ ! -e dcm-${DCM_VERSION}-0.noarch.rpm ]; then | ||
wget https://github.com/sbgrid/data-capture-module/releases/download/${DCM_VERSION}/dcm-${DCM_VERSION}-0.noarch.rpm | ||
fi | ||
|
||
if [ ! -e rsal-${RSAL_VERSION}-0.noarch.rpm ] ;then | ||
wget https://github.com/sbgrid/rsal/releases/download/${RSAL_VERSION}/rsal-${RSAL_VERSION}-0.noarch.rpm | ||
fi |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
#!/bin/sh | ||
|
||
#/usr/bin/rsync --no-detach --daemon --config /etc/rsyncd.conf | ||
/usr/bin/rsync --daemon --config /etc/rsyncd.conf | ||
lighttpd -D -f /etc/lighttpd/lighttpd.conf |
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,174 @@ | ||
####################################################################### | ||
## | ||
## ansible managed | ||
# | ||
## Modules to load | ||
## ----------------- | ||
## | ||
## at least mod_access and mod_accesslog should be loaded | ||
## all other module should only be loaded if really neccesary | ||
## | ||
## - saves some time | ||
## - saves memory | ||
## | ||
## the default module set contains: | ||
## | ||
## "mod_indexfile", "mod_dirlisting", "mod_staticfile" | ||
## | ||
## you dont have to include those modules in your list | ||
## | ||
## Modules, which are pulled in via conf.d/*.conf | ||
## | ||
## NOTE: the order of modules is important. | ||
## | ||
## - mod_accesslog -> conf.d/access_log.conf | ||
## - mod_compress -> conf.d/compress.conf | ||
## - mod_status -> conf.d/status.conf | ||
## - mod_webdav -> conf.d/webdav.conf | ||
## - mod_cml -> conf.d/cml.conf | ||
## - mod_evhost -> conf.d/evhost.conf | ||
## - mod_simple_vhost -> conf.d/simple_vhost.conf | ||
## - mod_mysql_vhost -> conf.d/mysql_vhost.conf | ||
## - mod_trigger_b4_dl -> conf.d/trigger_b4_dl.conf | ||
## - mod_userdir -> conf.d/userdir.conf | ||
## - mod_rrdtool -> conf.d/rrdtool.conf | ||
## - mod_ssi -> conf.d/ssi.conf | ||
## - mod_cgi -> conf.d/cgi.conf | ||
## - mod_scgi -> conf.d/scgi.conf | ||
## - mod_fastcgi -> conf.d/fastcgi.conf | ||
## - mod_proxy -> conf.d/proxy.conf | ||
## - mod_secdownload -> conf.d/secdownload.conf | ||
## - mod_expire -> conf.d/expire.conf | ||
## | ||
|
||
server.modules = ( | ||
"mod_access", | ||
# "mod_alias", | ||
# "mod_auth", | ||
# "mod_evasive", | ||
# "mod_redirect", | ||
# "mod_rewrite", | ||
# "mod_setenv", | ||
# "mod_usertrack", | ||
) | ||
|
||
## | ||
####################################################################### | ||
|
||
####################################################################### | ||
## | ||
## Config for various Modules | ||
## | ||
|
||
## | ||
## mod_ssi | ||
## | ||
#include "conf.d/ssi.conf" | ||
|
||
## | ||
## mod_status | ||
## | ||
#include "conf.d/status.conf" | ||
|
||
## | ||
## mod_webdav | ||
## | ||
#include "conf.d/webdav.conf" | ||
|
||
## | ||
## mod_compress | ||
## | ||
#include "conf.d/compress.conf" | ||
|
||
## | ||
## mod_userdir | ||
## | ||
#include "conf.d/userdir.conf" | ||
|
||
## | ||
## mod_magnet | ||
## | ||
#include "conf.d/magnet.conf" | ||
|
||
## | ||
## mod_cml | ||
## | ||
#include "conf.d/cml.conf" | ||
|
||
## | ||
## mod_rrdtool | ||
## | ||
#include "conf.d/rrdtool.conf" | ||
|
||
## | ||
## mod_proxy | ||
## | ||
#include "conf.d/proxy.conf" | ||
|
||
## | ||
## mod_expire | ||
## | ||
#include "conf.d/expire.conf" | ||
|
||
## | ||
## mod_secdownload | ||
## | ||
#include "conf.d/secdownload.conf" | ||
|
||
## | ||
####################################################################### | ||
|
||
####################################################################### | ||
## | ||
## CGI modules | ||
## | ||
|
||
## | ||
## SCGI (mod_scgi) | ||
## | ||
#include "conf.d/scgi.conf" | ||
|
||
## | ||
## FastCGI (mod_fastcgi) | ||
## | ||
#include "conf.d/fastcgi.conf" | ||
|
||
## | ||
## plain old CGI (mod_cgi) | ||
## | ||
include "conf.d/cgi.conf" | ||
|
||
## | ||
####################################################################### | ||
|
||
####################################################################### | ||
## | ||
## VHost Modules | ||
## | ||
## Only load ONE of them! | ||
## ======================== | ||
## | ||
|
||
## | ||
## You can use conditionals for vhosts aswell. | ||
## | ||
## see http://www.lighttpd.net/documentation/configuration.html | ||
## | ||
|
||
## | ||
## mod_evhost | ||
## | ||
#include "conf.d/evhost.conf" | ||
|
||
## | ||
## mod_simple_vhost | ||
## | ||
#include "conf.d/simple_vhost.conf" | ||
|
||
## | ||
## mod_mysql_vhost | ||
## | ||
#include "conf.d/mysql_vhost.conf" | ||
|
||
## | ||
####################################################################### |
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,43 @@ | ||
## lighttpd configuration customized for RSAL; centos7 | ||
|
||
# refuse connections not from frontend or localhost | ||
# DO NOT HAVE THIS OPEN TO THE WORLD!!! | ||
#$HTTP["remoteip"] !~ "192.168.2.2|127.0.0.1" { | ||
#url.access-deny = ("") | ||
#} | ||
server.breakagelog = "/var/log/lighttpd/breakage.log" | ||
|
||
####################################################################### | ||
## | ||
## Some Variable definition which will make chrooting easier. | ||
## | ||
## if you add a variable here. Add the corresponding variable in the | ||
## chroot example aswell. | ||
## | ||
var.log_root = "/var/log/lighttpd" | ||
var.server_root = "/opt/rsal/api" | ||
var.state_dir = "/var/run" | ||
var.home_dir = "/var/lib/lighttpd" | ||
var.conf_dir = "/etc/lighttpd" | ||
|
||
var.cache_dir = "/var/cache/lighttpd" | ||
var.socket_dir = home_dir + "/sockets" | ||
include "modules.conf" | ||
server.port = 80 | ||
server.use-ipv6 = "disable" | ||
server.username = "lighttpd" | ||
server.groupname = "lighttpd" | ||
server.document-root = server_root | ||
server.pid-file = state_dir + "/lighttpd.pid" | ||
server.errorlog = log_root + "/error.log" | ||
include "conf.d/access_log.conf" | ||
include "conf.d/debug.conf" | ||
server.event-handler = "linux-sysepoll" | ||
server.network-backend = "linux-sendfile" | ||
server.stat-cache-engine = "simple" | ||
server.max-connections = 1024 | ||
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" ) | ||
include "conf.d/mime.conf" | ||
include "conf.d/dirlisting.conf" | ||
server.follow-symlink = "enable" | ||
server.upload-dirs = ( "/var/tmp" ) |
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,8 @@ | ||
lock file=/var/run/rsync.lock | ||
log file=/var/log/rsyncd.log | ||
pid file=/var/log/rsyncd.pid | ||
|
||
[10.5072] | ||
path=/public/ | ||
read only=yes | ||
|
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,21 @@ | ||
#!/bin/sh | ||
|
||
fn=rsal-workflow2.json | ||
# needs an actual IP (vs a hostname) for whitelist | ||
rsalip=`dig +short rsalsrv` | ||
|
||
# create workflow | ||
curl -s -X POST -H "Content-type: application/json" -d @${fn} "http://localhost:8080/api/admin/workflows" | ||
|
||
# put rsal on the whitelist | ||
curl -X PUT -d "127.0.0.1;${rsalip}" "http://localhost:8080/api/admin/workflows/ip-whitelist" | ||
|
||
# set workflow as default | ||
curl -X PUT -d "1" "http://localhost:8080/api/admin/workflows/default/PrePublishDataset" | ||
|
||
# local access path | ||
curl -X PUT -d "/hpc/storage" "http://localhost:8080/api/admin/settings/:LocalDataAccessPath" | ||
|
||
# storage sites | ||
curl -X POST -H "Content-type: application/json" --upload-file site-primary.json "http://localhost:8080/api/admin/storageSites" | ||
curl -X POST -H "Content-type: application/json" --upload-file site-remote.json "http://localhost:8080/api/admin/storageSites" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# dv0 assumed to be image name for docker-aio | ||
FROM dv0 | ||
RUN yum install -y bind-utils | ||
COPY configure_dcm.sh /opt/dv/ | ||
COPY configure_rsal.sh /opt/dv/ | ||
COPY rsal-workflow2.json site-primary.json site-remote.json /opt/dv/ | ||
VOLUME /hold |
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# publish dataset based on database id | ||
|
||
dset_id=$1 | ||
if [ -z "$dset_id" ]; then | ||
echo "no dataset id specified, bailing out" | ||
exit 1 | ||
fi | ||
|
||
k_d=burrito | ||
|
||
h=http://dvsrv | ||
|
||
curl -X POST -H "X-Dataverse-key: ${k_d}" "${h}/api/datasets/${dset_id}/actions/:publish?type=major" | ||
|
||
|
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.