Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
4a521237
Commit
4a521237
authored
9 years ago
by
Christophe Chaudier
Browse files
Options
Downloads
Patches
Plain Diff
Generic docker image
We use environment vars for connect on money hub and use our identity on the node.
parent
cc50fd60
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!474
Issue #473 - Generic docker image
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/README.md
+14
-1
14 additions, 1 deletion
docker/README.md
docker/go
+7
-2
7 additions, 2 deletions
docker/go
with
21 additions
and
3 deletions
docker/README.md
+
14
−
1
View file @
4a521237
...
@@ -10,6 +10,19 @@ docker build -t="duniter" .
...
@@ -10,6 +10,19 @@ docker build -t="duniter" .
#### Execute the container
#### Execute the container
Without your indentity
```
sh
docker run
-p
8999:8999
\
-e
"DUNITER_URL=cgeek.fr"
-e
"DUNITER_PORT=9330"
\
-dt
duniter
```
`
With your indentity
`
``
sh
`
``
sh
docker run
-p
8999:8999
-dt
duniter
docker run -p 8999:8999
\
-e "DUNITER_URL=cgeek.fr" -e "DUNITER_PORT=9330"
\
-e "DUNITER_SALT=
<your_key_salt>
" -e "DUNITER_PASSWD=
<your_passwd>
"
\
-dt duniter
````
````
This diff is collapsed.
Click to expand it.
docker/go
+
7
−
2
View file @
4a521237
...
@@ -2,9 +2,14 @@
...
@@ -2,9 +2,14 @@
locale_ip
=
`
awk
'NR==7 {print $1}'
/etc/hosts
`
locale_ip
=
`
awk
'NR==7 {print $1}'
/etc/hosts
`
remote_ip
=
`
curl
-s
https://4.ifcfg.me/
`
remote_ip
=
`
curl
-s
https://4.ifcfg.me/
`
if
[
-n
$DUNITER_SALT
]
&&
[
-n
$DUNITER_PASSWD
]
;
then
identity_args
=
"--salt
$DUNITER_SALT
--passwd
$DUNITER_PASSWD
"
else
identity_args
=
""
fi
duniter init
--autoconf
duniter init
--autoconf
duniter config
--noupnp
--remote4
$remote_ip
--ipv4
$locale_ip
duniter config
--noupnp
--remote4
$remote_ip
--ipv4
$locale_ip
$identity_args
duniter
sync
twiced.fr 9330
duniter
sync
$DUNITER_URL
$DUNITER_PORT
duniter start
duniter start
tail
-f
/dev/null
tail
-f
/dev/null
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