if [[ -n "$test_packages" ]]; then
if [[ -n "$(find $WORKSPACE/packages/$TARGET -name '*.rpm')" ]] ; then
+ set +e
+ /usr/bin/which createrepo >/dev/null
+ if [[ "$?" != "0" ]]; then
+ echo >&2
+ echo >&2 "Error: please install createrepo. E.g. sudo apt-get install createrepo"
+ echo >&2
+ exit 1
+ fi
+ set -e
createrepo $WORKSPACE/packages/$TARGET
fi
# Go binaries
cd $WORKSPACE/packages/$TARGET
export GOPATH=$(mktemp -d)
-go get -v github.com/kardianos/govendor
+go get github.com/kardianos/govendor
package_go_binary sdk/go/crunchrunner crunchrunner \
"Crunchrunner executes a command inside a container and uploads the output"
package_go_binary services/arv-git-httpd arvados-git-httpd \
"Static web hosting service for user data stored in Arvados Keep"
package_go_binary services/ws arvados-ws \
"Arvados Websocket server"
-package_go_binary tools/arv-sync-groups arv-sync-groups \
+package_go_binary tools/sync-groups arvados-sync-groups \
"Synchronize remote groups into Arvados from an external source"
package_go_binary tools/keep-block-check keep-block-check \
"Verify that all data from one set of Keep servers to another was copied"
sdk/go/stats
sdk/go/crunchrunner
sdk/cwl
-tools/arv-sync-groups
+tools/sync-groups
tools/crunchstat-summary
tools/keep-exercise
tools/keep-rsync
tools/keep-block-check
tools/keep-exercise
tools/keep-rsync
- tools/arv-sync-groups
+ tools/sync-groups
)
for g in "${gostuff[@]}"
do
- user/topics/run-command.html.textile.liquid
- user/reference/job-pipeline-ref.html.textile.liquid
- user/examples/crunch-examples.html.textile.liquid
- - user/topics/arv-sync-groups.html.textile.liquid
+ - user/topics/arvados-sync-groups.html.textile.liquid
- Query the metadata database:
- user/topics/tutorial-trait-search.html.textile.liquid
- Arvados License:
---
layout: default
navsection: userguide
-title: "Using arv-sync-groups"
+title: "Using arvados-sync-groups"
...
{% comment %}
Copyright (C) The Arvados Authors. All rights reserved.
SPDX-License-Identifier: CC-BY-SA-3.0
{% endcomment %}
-The @arv-sync-groups@ tool allows to synchronize remote groups into Arvados from an external source.
+The @arvados-sync-groups@ tool allows to synchronize remote groups into Arvados from an external source.
-h1. Using arv-sync-groups
+h1. Using arvados-sync-groups
This tool reads a CSV (comma-separated values) file having information about external groups and their members. When running it for the first time, it'll create a special group named 'Externally synchronized groups' meant to be the parent of all the remote groups.
This tool is designed to be run periodically reading a file created by a remote auth system (ie: LDAP) dump script, applying what's included on the file as the source of truth.
-bq. NOTE: @arv-sync-groups@ needs to perform several administrative tasks on Arvados, so must be run using a superuser token
+bq. NOTE: @arvados-sync-groups@ needs to perform several administrative tasks on Arvados, so must be run using a superuser token
h2. Options
To sync groups using the username to identify every account, reading from some @external_groups.csv@ file, the command should be called as follows:
<notextile>
-<pre><code>~$ <span class="userinput">arv-sync-groups --user-id username /path/to/external_groups.csv </span>
+<pre><code>~$ <span class="userinput">arvados-sync-groups --user-id username /path/to/external_groups.csv </span>
</code></pre>
</notextile>
If you want to use a specific preexisting group as the parent of all the remote groups, you can do it this way:
<notextile>
-<pre><code>~$ <span class="userinput">arv-sync-groups --parent-group-uuid <preexisting group UUID> --user-id username /path/to/external_groups.csv </span>
+<pre><code>~$ <span class="userinput">arvados-sync-groups --parent-group-uuid <preexisting group UUID> --user-id username /path/to/external_groups.csv </span>
</code></pre>
</notextile>
crunchLogPartialLineThrottlePeriod: Rails.application.config.crunch_log_partial_line_throttle_period,
websocketUrl: Rails.application.config.websocket_address,
workbenchUrl: Rails.application.config.workbench_address,
+ keepWebServiceUrl: Rails.application.config.keep_web_service_url,
parameters: {
alt: {
type: "string",
# Server expects request header of the format "Authorization: Bearer xxx"
ManagementToken: false
+ # URL of keep-web service. Provides read/write access to collections via
+ # HTTP and WebDAV protocols.
+ #
+ # Example:
+ # keep_web_service_url: https://download.uuid_prefix.arvadosapi.com/
+ keep_web_service_url: false
+
development:
force_ssl: false
cache_classes: false
+++ /dev/null
-arv-sync-groups
auto_setup_new_users_with_repository: true
default_collection_replication: 1
docker_image_formats: ["v2"]
+ keep_web_service_url: http://$localip:${services[keep-web]}/
EOF
(cd config && /usr/local/lib/arvbox/application_yml_override.py)
--- /dev/null
+sync-groups
"username": true,
}
- flags := flag.NewFlagSet("arv-sync-groups", flag.ExitOnError)
+ flags := flag.NewFlagSet(os.Args[0], flag.ExitOnError)
// Set up usage message
flags.Usage = func() {
// Print version information if requested
if *getVersion {
- fmt.Printf("arv-sync-groups %s\n", version)
+ fmt.Printf("%s %s\n", os.Args[0], version)
os.Exit(0)
}
}
defer f.Close()
- log.Printf("arv-sync-groups %s started. Using %q as users id and parent group UUID %q", version, cfg.UserID, cfg.ParentGroupUUID)
+ log.Printf("%s %s started. Using %q as users id and parent group UUID %q", os.Args[0], version, cfg.UserID, cfg.ParentGroupUUID)
// Get the complete user list to minimize API Server requests
allUsers := make(map[string]arvados.User)