Open In SWAN doesn't use swan-k8s

Hi there,

I have a project which needs to be run on swan-k8s in order to leverage the GPU acceleration provided. I wish to use the Open in SWAN badge on my repo to make it easier for others to use, but https://cern.ch/swanserver/cgi-bin/go redirects to swan00x, and doesn’t use swan-k8s. Is there any way around this?

Hello,

Yes, you can use something like this:

https://swan-k8s.cern.ch/user-redirect/download?projurl=https%3A%2F%2Fgithub.com%2Fhageboeck%2FOpenlabLecture.git

You can use curl -i from your initial cgi-bin url and find your way to a url that has swan.cern.ch, which you can then replace with the swan-k8s subdomain.

Cheers,

Enric

Thats exactly what I was looking for, thanks!