forked from drakkan/sftpgo
-
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.
Implement iRODS Storage support
- Loading branch information
Showing
27 changed files
with
1,189 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#! /bin/bash | ||
docker build --tag cyverse/sftpgo -f Dockerfile . |
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,30 @@ | ||
#! /bin/bash | ||
rm -rf release | ||
mkdir -p release | ||
|
||
VERSION=$(git tag --sort=committerdate | tail -1) | ||
COMMIT_SHA=$(git describe --always --dirty) | ||
BUILD_DATE=$(date -u +%FT%TZ) | ||
LDFLAGS="-s -w -X 'github.com/drakkan/sftpgo/v2/version.commit=${COMMIT_SHA}' -X 'github.com/drakkan/sftpgo/v2/version.date=${BUILD_DATE}'" | ||
|
||
mkdir -p release/etc/sftpgo | ||
cp sftpgo.json release/etc/sftpgo/sftpgo.json | ||
|
||
mkdir -p release/usr/share/sftpgo | ||
cp -r templates release/usr/share/sftpgo/templates | ||
cp -r static release/usr/share/sftpgo/static | ||
cp -r openapi release/usr/share/sftpgo/openapi | ||
|
||
GOOS=linux GOARCH=386 go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./ | ||
cd release && tar cvf sftpgo_i386_linux_${VERSION}.tar sftpgo etc usr && cd .. | ||
|
||
GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./ | ||
cd release && tar cvf sftpgo_amd64_linux_${VERSION}.tar sftpgo etc usr && cd .. | ||
|
||
GOOS=linux GOARCH=arm go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./ | ||
cd release && tar cvf sftpgo_arm_linux_${VERSION}.tar sftpgo etc usr && cd .. | ||
|
||
GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./ | ||
cd release && tar cvf sftpgo_arm64_linux_${VERSION}.tar sftpgo etc usr && cd .. | ||
|
||
rm -r release/etc release/usr release/sftpgo |
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,2 @@ | ||
#! /bin/bash | ||
docker push cyverse/sftpgo |
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,2 @@ | ||
#! /bin/bash | ||
docker run --name sftpgo -p 8080:8080 -p 2022:2022 -d cyverse/sftpgo |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# iRODS Storage backends | ||
|
||
To connect SFTPGo to iRODS, you need to specify credentials and a `collection path`. For example, if your collection `some_collection` is under your account's home directory `/home/irods_user` in a zone `example_zone`, you have to set the `/example_zone/home/irods_user/some_collection`. If you want to specify a particular iRODS resource server to access, use `resource server`. You can set an empty string to `resource server` to use default resource server. An endpoint is host and port of an iRODS's catalog provider (also known as iCAT server). For example, `data.cyverse.org:1247` is the endpoint if you are connecting to [CyVerse Data Store](https://data.cyverse.org). Port can be omitted if the port is 1247. | ||
|
||
Currently, we only support password authentication. SSL/PAM authentication is not supported. | ||
|
||
Some SFTP commands don't work over iRODS: | ||
|
||
- `chown` and `chmod` will fail. If you want to silently ignore these method set `setstat_mode` to `1` or `2` in your configuration file | ||
- `symlink` and `readlink` are not supported | ||
- opening a file for both reading and writing at the same time is not supported | ||
- resuming uploads is not supported | ||
|
||
Other notes: | ||
|
||
- A local home directory is still required to store temporary files. | ||
- Clients that require advanced filesystem-like features such as `sshfs` are not supported. |
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
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
Oops, something went wrong.