Skip to content

Commit 4c7a22c

Browse files
Illyoung Choiiychoi
authored andcommitted
Add iRODS Storage implementation
Implement iRODS Storage support
1 parent 96850d2 commit 4c7a22c

38 files changed

Lines changed: 3983 additions & 9 deletions

cyverse_scripts/buildDocker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /bin/bash
2+
docker build --tag cyverse/sftpgo -f Dockerfile .

cyverse_scripts/buildReleases.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#! /bin/bash
2+
rm -rf release
3+
mkdir -p release
4+
5+
VERSION="v2.7.3i"
6+
COMMIT_SHA=$(git describe --always --dirty)
7+
BUILD_DATE=$(date -u +%FT%TZ)
8+
LDFLAGS="-s -w -X 'github.com/drakkan/sftpgo/v2/version.commit=${COMMIT_SHA}' -X 'github.com/drakkan/sftpgo/v2/version.date=${BUILD_DATE}'"
9+
10+
mkdir -p release/etc/sftpgo
11+
cp sftpgo.json release/etc/sftpgo/sftpgo.json
12+
13+
mkdir -p release/usr/share/sftpgo
14+
cp -r templates release/usr/share/sftpgo/templates
15+
cp -r static release/usr/share/sftpgo/static
16+
cp -r openapi release/usr/share/sftpgo/openapi
17+
18+
GOOS=linux GOARCH=386 go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./
19+
cd release && tar cvf sftpgo_i386_linux_${VERSION}.tar sftpgo etc usr && cd ..
20+
21+
GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./
22+
cd release && tar cvf sftpgo_amd64_linux_${VERSION}.tar sftpgo etc usr && cd ..
23+
24+
GOOS=linux GOARCH=arm go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./
25+
cd release && tar cvf sftpgo_arm_linux_${VERSION}.tar sftpgo etc usr && cd ..
26+
27+
GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="${LDFLAGS}" -v -o release/sftpgo ./
28+
cd release && tar cvf sftpgo_arm64_linux_${VERSION}.tar sftpgo etc usr && cd ..
29+
30+
rm -r release/etc release/usr release/sftpgo

cyverse_scripts/pushDocker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /bin/bash
2+
docker push cyverse/sftpgo

cyverse_scripts/runDocker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /bin/bash
2+
docker run --name sftpgo -p 8080:8080 -p 2022:2022 -d cyverse/sftpgo

go.mod

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ require (
2222
github.com/bmatcuk/doublestar/v4 v4.10.0
2323
github.com/cockroachdb/cockroach-go/v2 v2.4.3
2424
github.com/coreos/go-oidc/v3 v3.18.0
25+
github.com/cyverse/go-irodsclient v0.20.0
2526
github.com/drakkan/webdav v0.0.0-20260506070921-6982cd451202
2627
github.com/eikenb/pipeat v0.0.0-20251030185646-385cd3c3e07b
2728
github.com/fclairamb/ftpserverlib v0.32.0
@@ -107,18 +108,26 @@ require (
107108
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
108109
github.com/cespare/xxhash/v2 v2.3.0 // indirect
109110
github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect
111+
github.com/cockroachdb/errors v1.12.0 // indirect
112+
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
113+
github.com/cockroachdb/redact v1.1.5 // indirect
110114
github.com/coreos/go-systemd/v22 v22.7.0 // indirect
111115
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
116+
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
112117
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
118+
github.com/dlclark/regexp2 v1.11.5 // indirect
113119
github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect
114120
github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect
121+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
115122
github.com/fatih/color v1.19.0 // indirect
116123
github.com/felixge/httpsnoop v1.0.4 // indirect
117124
github.com/fsnotify/fsnotify v1.10.1 // indirect
125+
github.com/getsentry/sentry-go v0.27.0 // indirect
118126
github.com/go-logr/logr v1.4.3 // indirect
119127
github.com/go-logr/stdr v1.2.2 // indirect
120128
github.com/go-ole/go-ole v1.3.0 // indirect
121129
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
130+
github.com/gogo/protobuf v1.3.2 // indirect
122131
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
123132
github.com/golang/protobuf v1.5.4 // indirect
124133
github.com/google/s2a-go v0.1.9 // indirect
@@ -127,36 +136,45 @@ require (
127136
github.com/hashicorp/errwrap v1.1.0 // indirect
128137
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
129138
github.com/hashicorp/go-multierror v1.1.1 // indirect
139+
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
130140
github.com/hashicorp/yamux v0.1.2 // indirect
131141
github.com/inconshreveable/mousetrap v1.1.0 // indirect
132142
github.com/jackc/pgpassfile v1.0.0 // indirect
133143
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
134144
github.com/jackc/puddle/v2 v2.2.2 // indirect
135145
github.com/kr/fs v0.1.0 // indirect
146+
github.com/kr/pretty v0.3.1 // indirect
147+
github.com/kr/text v0.2.0 // indirect
136148
github.com/kylelemons/godebug v1.1.0 // indirect
137149
github.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e // indirect
138150
github.com/mattn/go-colorable v0.1.15 // indirect
139151
github.com/mattn/go-isatty v0.0.22 // indirect
140152
github.com/miekg/dns v1.1.72 // indirect
153+
github.com/mitchellh/go-homedir v1.1.0 // indirect
141154
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
142155
github.com/oklog/run v1.2.0 // indirect
143156
github.com/otiai10/mint v1.6.3 // indirect
157+
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
144158
github.com/pelletier/go-toml/v2 v2.3.1 // indirect
145159
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
160+
github.com/pkg/errors v0.9.1 // indirect
146161
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
147162
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
148163
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
149164
github.com/prometheus/client_model v0.6.2 // indirect
150165
github.com/prometheus/common v0.68.0 // indirect
151166
github.com/prometheus/procfs v0.20.1 // indirect
167+
github.com/rogpeppe/go-internal v1.14.1 // indirect
152168
github.com/russross/blackfriday/v2 v2.1.0 // indirect
153169
github.com/sagikazarmark/locafero v0.12.0 // indirect
154170
github.com/shoenig/go-m1cpu v0.2.1 // indirect
171+
github.com/sirupsen/logrus v1.9.3 // indirect
155172
github.com/spf13/cast v1.10.0 // indirect
156173
github.com/spf13/pflag v1.0.10 // indirect
157174
github.com/spiffe/go-spiffe/v2 v2.6.0 // indirect
158175
github.com/tklauser/go-sysconf v0.4.0 // indirect
159176
github.com/tklauser/numcpus v0.12.0 // indirect
177+
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
160178
github.com/yusufpapurcu/wmi v1.2.4 // indirect
161179
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
162180
go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect
@@ -184,4 +202,5 @@ require (
184202
replace (
185203
github.com/jlaffaye/ftp => github.com/drakkan/ftp v0.0.0-20240430173938-7ba8270c8e7f
186204
github.com/robfig/cron/v3 => github.com/drakkan/cron/v3 v3.0.0-20230222140221-217a1e4d96c0
205+
github.com/sftpgo/sdk => github.com/cyverse/sftpgo-sdk v0.1.10-0.20260615211904-860a92bd5cb9
187206
)

0 commit comments

Comments
 (0)