Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Truite
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
EcoMobiCoin
Truite
Commits
1abafc28
Commit
1abafc28
authored
1 year ago
by
Jerome DESCHAMPS
Browse files
Options
Downloads
Patches
Plain Diff
Add data and testnet simulation to docker compose
parent
5608f5f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!105
Init docker compose for transport demo
Pipeline
#6495
failed
1 year ago
Stage: lint
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/demo/docker-compose.yml
+29
-11
29 additions, 11 deletions
docker/demo/docker-compose.yml
with
29 additions
and
11 deletions
docker/demo/docker-compose.yml
+
29
−
11
View file @
1abafc28
...
...
@@ -9,6 +9,11 @@ services:
volumes
:
-
ecomobicoin-data:/data
simulation-data
:
image
:
registry.gitlab.limos.fr/ecomobicoin/data/movement-data
volumes
:
-
ecomobicoin-data:/data
## RUN NODES
node-1
:
image
:
registry.gitlab.limos.fr/ecomobicoin/truite
...
...
@@ -30,16 +35,16 @@ services:
image
:
registry.gitlab.limos.fr/ecomobicoin/truite
container_name
:
ecomobicoin-node-2
command
:
[
"
truite"
,
"
--datadir"
,
"
/data/data-2"
,
"
--chain-spec-file"
,
"
/data/local-2.ron"
,
# "--no-discovery",
"
--no-dns-discovery"
,
"
--rpc-listen-address"
,
"
0.0.0.0:8545"
,
]
"
truite"
,
"
--datadir"
,
"
/data/data-2"
,
"
--chain-spec-file"
,
"
/data/local-2.ron"
,
# "--no-discovery",
"
--no-dns-discovery"
,
"
--rpc-listen-address"
,
"
0.0.0.0:8545"
,
]
depends_on
:
init
:
condition
:
service_completed_successfully
...
...
@@ -55,7 +60,7 @@ services:
explorer
:
image
:
registry.gitlab.limos.fr/ecomobicoin/block-explorer
environment
:
-
ERIGON_URL=http://
ecomobicoin-2.cri.local.isima.fr
:42002
-
ERIGON_URL=http://
localhost
:42002
depends_on
:
-
node-2
ports
:
...
...
@@ -78,5 +83,18 @@ services:
restart
:
on-failure
# front env vars are set in docker build.
testnet-injector
:
image
:
registry.gitlab.limos.fr/ecomobicoin/testnet-injector:modify-docker-image
container_name
:
testnet-injector
platform
:
linux/amd64/r
environment
:
-
RPC_URL=http://localhost:8545
-
RPC_URL_MINER_1=http://localhost:41002
-
RPC_URL_MINER_2=http://localhost:42002
-
BLOCK_TIME=12
-
TOTAL_SIMULATION_TIME=1800
command
:
./scripts/run_simulation_2_nodes.sh
volumes
:
ecomobicoin-data
:
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