Skip to content

Commit 5a966e9

Browse files
committed
refactor: refactor to support private module
1 parent b123d85 commit 5a966e9

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

Dockerfile.old

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ RUN export TZ="Asia/Jakarta" && \
1313
# RUN git clone https://github.com/ipfs/go-ipfs && \
1414
# cd go-ipfs && \
1515
# git checkout release-v0.15.0 && \
16-
# go get github.com/samperfect/go-ds-s3/[email protected] && \
16+
# go get github.com/lighthouse-web3/go-ds-s3/[email protected] && \
1717
# # Add the plugin to the preload list.
18-
# echo -en "\ns3ds github.com/samperfect/go-ds-s3/plugin 0" >> plugin/loader/preload_list && \
18+
# echo -en "\ns3ds github.com/lighthouse-web3/go-ds-s3/plugin 0" >> plugin/loader/preload_list && \
1919
# # make build && \
2020
# # go mod tidy && \
2121
# # make build && \

Dockerfile.proxy

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ LABEL maintainer "Perfection <[email protected]>"
1313
# clone ipfs
1414
RUN git clone https://github.com/ipfs/go-ipfs && \
1515
cd go-ipfs && \
16+
go env -w GOPRIVATE="github.com/lighthouse-web3" && \
1617
#git checkout release-v0.15.0 && \
17-
go get github.com/samperfect/go-ds-s3/[email protected]
18+
go get github.com/lighthouse-web3/go-ds-s3/[email protected]
1819

1920

2021
# Add the plugin to the preload list.
2122
RUN cd go-ipfs && \
22-
echo "\ns3ds github.com/samperfect/go-ds-s3/plugin 0" >> plugin/loader/preload_list &&\
23+
echo "\ns3ds github.com/lighthouse-web3/go-ds-s3/plugin 0" >> plugin/loader/preload_list &&\
2324
cat plugin/loader/preload_list && \
2425
cat plugin/loader/preload.go && \
2526
make build && \
@@ -34,7 +35,7 @@ RUN echo "IPFS VERSION IS -- $(ipfs version)"
3435

3536
ENV IPFS_PATH /data/ipfs
3637

37-
ENV API_PORT 5002
38+
ENV API_PORT 5001
3839
ENV GATEWAY_PORT 8080
3940
ENV SWARM_PORT 4001
4041
ENV PROXY_PORT 5050
@@ -56,7 +57,7 @@ ENV IPFS_ENDPOINT $IPFS_ENDPOINT
5657

5758
EXPOSE ${SWARM_PORT}
5859
# This may introduce security risk to expose API_PORT public
59-
# EXPOSE ${API_PORT}
60+
EXPOSE ${API_PORT}
6061
EXPOSE ${GATEWAY_PORT}
6162
EXPOSE ${PROXY_PORT}
6263

@@ -82,7 +83,7 @@ RUN apt update -y && \
8283
apt install -y nodejs && \
8384
echo "NODE VERSION $(node --version)"
8485

85-
RUN git clone https://samperfect:${GITHUB_TOKEN}@github.com/lighthouse-web3/node-authentication-middleware.git proxy && \
86+
RUN git clone https://lighthouse-web3:${GITHUB_TOKEN}@github.com/lighthouse-web3/node-authentication-middleware.git proxy && \
8687
cd proxy && \
8788
apt install -y npm && \
8889
npm install && \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Otherwise, you need to do a datastore migration.
117117

118118
## Contribute
119119

120-
Feel free to join in. All welcome. Open an [issue](https://github.com/samperfect/go-ds-s3/issues)!
120+
Feel free to join in. All welcome. Open an [issue](https://github.com/lighthouse-web3/go-ds-s3/issues)!
121121

122122
### Want to hack on IPFS?
123123

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/samperfect/go-ds-s3
1+
module github.com/lighthouse-web3/go-ds-s3
22

33
go 1.18
44

plugin/main/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
plugin "github.com/samperfect/go-ds-s3/plugin"
4+
plugin "github.com/lighthouse-web3/go-ds-s3/plugin"
55
)
66

77
var Plugins = plugin.Plugins //nolint

plugin/s3ds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/ipfs/kubo/plugin"
77
"github.com/ipfs/kubo/repo"
88
"github.com/ipfs/kubo/repo/fsrepo"
9-
s3ds "github.com/samperfect/go-ds-s3"
9+
s3ds "github.com/lighthouse-web3/go-ds-s3"
1010
)
1111

1212
var Plugins = []plugin.Plugin{

plugin/s3ds_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
s3ds "github.com/samperfect/go-ds-s3"
7+
s3ds "github.com/lighthouse-web3/go-ds-s3"
88
)
99

1010
func TestS3PluginDatastoreConfigParser(t *testing.T) {

0 commit comments

Comments
 (0)