Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
6b3f4b90
Commit
6b3f4b90
authored
9 years ago
by
androlo
Browse files
Options
Downloads
Patches
Plain Diff
some docker script
parent
ac4b7582
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
docker_build.sh
+1
-1
1 addition, 1 deletion
docker_build.sh
docker_run.sh
+19
-2
19 additions, 2 deletions
docker_run.sh
run.sh
+0
-1
0 additions, 1 deletion
run.sh
with
21 additions
and
5 deletions
README.md
+
1
−
1
View file @
6b3f4b90
...
...
@@ -36,7 +36,7 @@ Tendermint officially supports only 64 bit Ubuntu.
#### Docker
WIP
`$ ./docker_build.sh`
to build the image. After that, use
` $ ./docker_run.sh`
to run with the default settings.
### Usage
...
...
This diff is collapsed.
Click to expand it.
docker_build.sh
+
1
−
1
View file @
6b3f4b90
#! /bin/
ba
sh
#! /bin/sh
docker build
-t
eris-db .
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker_run.sh
100644 → 100755
+
19
−
2
View file @
6b3f4b90
# run eris-db
docker run
--name
eris-db
-v
-p
46656:46656
-p
46657:46657
-p
1337:1337 eris-db
#!/bin/bash
# Using ~/.eris on drive.
ERIS_PATH
=
$HOME
/.eris
CONTAINER
=
"eris-db"
RUNNING
=
$(
docker inspect
--format
=
"{{ .State.Running }}"
eris-db
)
mkdir
-v
-p
$ERIS_PATH
# Run in the terminal and attach on start.
if
[
"
$RUNNING
"
==
"true"
]
;
then
echo
"Container 'eris-db' already running. Exiting."
exit
1
elif
[
"
$RUNNING
"
==
"false"
]
;
then
echo
"Container 'eris-db' found. Starting."
docker start
--attach
=
true
eris-db
else
echo
"Container 'eris-db' not found. Creating."
docker run
--name
eris-db
-v
$ERIS_PATH
:/home/eris/.eris
-p
46656:46656
-p
46657:46657
-p
1337:1337 eris-db
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
run.sh
deleted
100755 → 0
+
0
−
1
View file @
ac4b7582
#!/bin/sh
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