Skip to content
Snippets Groups Projects
Commit f7812243 authored by František Dvořák's avatar František Dvořák
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:22.04
LABEL maintainter="František Dvořák <valtri@civ.zcu.cz>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates oidc-agent-cli rclone \
&& rm -rf /var/lib/apt/lists/*
RUN rclone config create owncloud-test webdav url https://ocis.aaitest.owncloud.works/remote.php/webdav/ vendor owncloud bearer_token_command 'oidc-token eosc-test'
RUN rclone config create owncloud-stage webdav url https://ocis.aaistage.owncloud.works/remote.php/webdav/ vendor owncloud bearer_token_command 'oidc-token eosc-stage'
# EOSC LOT3 rclone debugging
Image with preconfgured rclone and oidc-agent installed.
## Usage
[Launch OIDC agent](https://indigo-dc.gitbook.io/oidc-agent/user/oidc-agent/start) or enable [OIDC agent forwarding](https://indigo-dc.gitbook.io/oidc-agent/configuration/forwarding).
Setup "eosc-test" and "eosc-stage" accounts in OIDC agent. For example (client id and secret is needed):
oidc-gen --pub --issuer https://proxy.testing.eosc-federation.eu --scope "openid offline_access profile email" eosc-test
oidc-gen --pub --issuer https://proxy.staging.eosc-federation.eu --scope "openid offline_access profile email" eosc-stage
Launch locally:
f=/tmp/oidc-forward-$RANDOM; docker run -it --rm --name eosc-rclone --security-opt label=disable -v $OIDC_SOCK:$f -e OIDC_SOCK=$f eosc-rclone-debugging:latest \
rclone ls owncloud-test:/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment