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
f12d6871
Commit
f12d6871
authored
2 years ago
by
pini
Browse files
Options
Downloads
Plain Diff
Merge branch 'pini-max-old-space-size' into 'dev'
docker: variable 'DUNITER_MAX_OLD_SPACE_SIZE' See merge request
!1419
parents
03acf3e9
679f2235
Branches
Branches containing commit
No related tags found
1 merge request
!1419
docker: variable 'DUNITER_MAX_OLD_SPACE_SIZE'
Pipeline
#31623
passed
2 years ago
Stage: tests
Stage: package
Stage: quality
Stage: integration
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/docker/docker-entrypoint.sh
+5
-2
5 additions, 2 deletions
release/docker/docker-entrypoint.sh
with
5 additions
and
2 deletions
release/docker/docker-entrypoint.sh
+
5
−
2
View file @
f12d6871
...
...
@@ -17,6 +17,7 @@ profile_default=$home/duniter_default
manual_config
=
"
$(
boolean
"
${
DUNITER_MANUAL_CONFIG
:-
false
}
"
)
"
auto_sync
=
"
$(
boolean
"
${
DUNITER_AUTO_SYNC
:-
false
}
"
)
"
DUNITER_PEER_HOST
=
"
${
DUNITER_PEER_HOST
:-${
DUNITER_SYNC_HOST
:-}}
"
MAX_OLD_SPACE_SIZE
=
${
DUNITER_MAX_OLD_SPACE_SIZE
:+--max-old-space-size
$DUNITER_MAX_OLD_SPACE_SIZE
}
# Create default profile path
mkdir
-p
"
$home
/duniter_default"
...
...
@@ -100,7 +101,7 @@ if [ "$auto_sync" = true ]; then
echo
"DUNITER_SYNC_HOST undefined. Can't start synchronization!"
else
echo
"Starting synchronization..."
/usr/bin/duniter
sync
"
$DUNITER_SYNC_HOST
"
--no-interactive
/usr/bin/duniter
$MAX_OLD_SPACE_SIZE
sync
"
$DUNITER_SYNC_HOST
"
--no-interactive
fi
fi
fi
...
...
@@ -115,7 +116,9 @@ fi
# Without parameters, start with web interface
if
[
$#
=
0
]
;
then
set
--
direct_webstart
set
--
$MAX_OLD_SPACE_SIZE
direct_webstart
else
set
--
$MAX_OLD_SPACE_SIZE
"
$@
"
fi
# Start duniter
...
...
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