Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter Datapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
Duniter Datapod
Commits
7da2ff75
Commit
7da2ff75
authored
8 months ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
removes websocket since webrtc was added and webtransport works
parent
194aeb9b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.prod.example
+0
-1
0 additions, 1 deletion
.env.prod.example
docker-compose.prod.yml
+2
-5
2 additions, 5 deletions
docker-compose.prod.yml
scripts/configure.sh
+7
-9
7 additions, 9 deletions
scripts/configure.sh
scripts/docker-build.sh
+8
-8
8 additions, 8 deletions
scripts/docker-build.sh
with
17 additions
and
23 deletions
.env.prod.example
+
0
−
1
View file @
7da2ff75
...
@@ -7,7 +7,6 @@ HASURA_LISTEN_PORT=8888
...
@@ -7,7 +7,6 @@ HASURA_LISTEN_PORT=8888
HASURA_GRAPHQL_ADMIN_SECRET=hasura_admin_secret
HASURA_GRAPHQL_ADMIN_SECRET=hasura_admin_secret
KUBO_GATEWAY_PORT=8080
KUBO_GATEWAY_PORT=8080
KUBO_DOMAIN=datapod.coinduf.eu
KUBO_DOMAIN=datapod.coinduf.eu
KUBO_WEBSOCKET_DOMAIN=websocket.datapod.coinduf.eu
KUBO_GATEWAY_DOMAIN=gateway.datapod.coinduf.eu
KUBO_GATEWAY_DOMAIN=gateway.datapod.coinduf.eu
KUBO_GATEWAY_SUBDOMAIN=pagu.re
KUBO_GATEWAY_SUBDOMAIN=pagu.re
SUBMIT_GATEWAY_LISTEN_PORT=3000
SUBMIT_GATEWAY_LISTEN_PORT=3000
...
...
This diff is collapsed.
Click to expand it.
docker-compose.prod.yml
+
2
−
5
View file @
7da2ff75
...
@@ -36,11 +36,9 @@ services:
...
@@ -36,11 +36,9 @@ services:
kubo
:
kubo
:
image
:
h30x/datapod-kubo
image
:
h30x/datapod-kubo
ports
:
ports
:
# p2p port public
# p2p port public
(tcp, udp, webtransport, webrtc)
-
4001:4001
-
4001:4001
/tcp
-
4001:4001/udp
-
4001:4001/udp
# p2p through websocket
-
127.0.0.1:4002:4002
# public gateway
# public gateway
-
127.0.0.1:${KUBO_GATEWAY_PORT}:8080
-
127.0.0.1:${KUBO_GATEWAY_PORT}:8080
-
'
[::1]:${KUBO_GATEWAY_PORT}:8080'
-
'
[::1]:${KUBO_GATEWAY_PORT}:8080'
...
@@ -52,7 +50,6 @@ services:
...
@@ -52,7 +50,6 @@ services:
# - kubo_init:/container-init.d
# - kubo_init:/container-init.d
environment
:
environment
:
KUBO_DOMAIN
:
${KUBO_DOMAIN}
KUBO_DOMAIN
:
${KUBO_DOMAIN}
KUBO_WEBSOCKET_DOMAIN
:
${KUBO_WEBSOCKET_DOMAIN}
KUBO_GATEWAY_DOMAIN
:
${KUBO_GATEWAY_DOMAIN}
KUBO_GATEWAY_DOMAIN
:
${KUBO_GATEWAY_DOMAIN}
KUBO_GATEWAY_SUBDOMAIN
:
${KUBO_GATEWAY_SUBDOMAIN}
KUBO_GATEWAY_SUBDOMAIN
:
${KUBO_GATEWAY_SUBDOMAIN}
restart
:
always
restart
:
always
...
...
This diff is collapsed.
Click to expand it.
scripts/configure.sh
+
7
−
9
View file @
7da2ff75
...
@@ -9,26 +9,24 @@ ipfs key gen dd_tamt_hist || true
...
@@ -9,26 +9,24 @@ ipfs key gen dd_tamt_hist || true
ipfs key gen dd_profiles
||
true
ipfs key gen dd_profiles
||
true
# --- addresses ---
# --- addresses ---
# enable p2p,
websocket,
quic, webtransport
# enable p2p, quic, webtransport
, webrtc
ipfs config Swarm.Transports.Network.Websocket
--json
true
#
ipfs config Swarm.Transports.Network.Websocket --json true
ipfs config Addresses.Swarm
--json
'[
ipfs config Addresses.Swarm
--json
'[
"/ip4/0.0.0.0/tcp/4001",
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001",
"/ip6/::/tcp/4001",
"/ip4/0.0.0.0/tcp/4002/ws",
"/ip6/::/tcp/4002/ws",
"/ip4/0.0.0.0/udp/4001/webrtc-direct",
"/ip6/::/udp/4001/webrtc-direct",
"/ip4/0.0.0.0/udp/4001/quic-v1",
"/ip4/0.0.0.0/udp/4001/quic-v1",
"/ip6/::/udp/4001/quic-v1",
"/ip6/::/udp/4001/quic-v1",
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
"/ip6/::/udp/4001/quic-v1/webtransport"
"/ip6/::/udp/4001/quic-v1/webtransport",
"/ip4/0.0.0.0/udp/4001/webrtc-direct",
"/ip6/::/udp/4001/webrtc-direct"
]'
]'
# configure the addresses to announce # TODO announce IPv6
# configure the addresses to announce # TODO announce IPv6
ipfs config Addresses.Announce
--json
"[
ipfs config Addresses.Announce
--json
"[
\"
/dns/
$KUBO_DOMAIN
/tcp/4001
\"
,
\"
/dns/
$KUBO_DOMAIN
/tcp/4001
\"
,
\"
/dns/
$KUBO_WEBSOCKET_DOMAIN
/tcp/443/wss/
\"
,
\"
/dns/
$KUBO_DOMAIN
/udp/4001/quic-v1
\"
,
\"
/dns/
$KUBO_DOMAIN
/udp/4001/quic-v1
\"
,
\"
/dns/
$KUBO_DOMAIN
/udp/4001/quic-v1/webtransport
\"
\"
/dns/
$KUBO_DOMAIN
/udp/4001/quic-v1/webtransport
\"
,
\"
/dns/
$KUBO_DOMAIN
/udp/4001/webrtc-direct
\"
]"
]"
# --- peering ---
# --- peering ---
...
...
This diff is collapsed.
Click to expand it.
scripts/docker-build.sh
+
8
−
8
View file @
7da2ff75
...
@@ -4,16 +4,16 @@ set -e
...
@@ -4,16 +4,16 @@ set -e
# Get the version number from package.json
# Get the version number from package.json
version_tag
=
$(
grep
-oP
'"version": "\K[^"]+'
package.json
)
version_tag
=
$(
grep
-oP
'"version": "\K[^"]+'
package.json
)
# --- datapod
#
# --- datapod
docker buildx build
-f
Dockerfile
-t
duniter-datapod
.
#
docker buildx build -f Dockerfile -t duniter-datapod .
# Tag with version and 'latest'
#
# Tag with version and 'latest'
docker image tag duniter-datapod h30x/duniter-datapod:
$version_tag
#
docker image tag duniter-datapod h30x/duniter-datapod:$version_tag
docker image tag duniter-datapod h30x/duniter-datapod:latest
#
docker image tag duniter-datapod h30x/duniter-datapod:latest
# Push both
#
# Push both
docker image push h30x/duniter-datapod:
$version_tag
#
docker image push h30x/duniter-datapod:$version_tag
docker image push h30x/duniter-datapod:latest
#
docker image push h30x/duniter-datapod:latest
# --- kubo
# --- kubo
docker buildx build
-f
Dockerfile.Kubo
-t
datapod-kubo
.
docker buildx build
-f
Dockerfile.Kubo
-t
datapod-kubo
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment