Skip to content

Commit

Permalink
REFACTOR: entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gbayasgalan committed Sep 5, 2024
1 parent ebc9a54 commit 678883d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 1 addition & 3 deletions launcher/src/backend/ethereum-services/GethService.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ export class GethService extends NodeService {
"--metrics.addr=0.0.0.0",
];

const entrypoint = network === "devnet" ? [] : ["geth"];

service.init(
"GethService", // service
service.id, // id
1, // configVersion
"ethereum/client-go", // image
"v1.10.25", // imageVersion
cmd, // command
entrypoint, // entrypoint
["geth"], // entrypoint
null, // env
ports, // ports
volumes, // volumes
Expand Down
6 changes: 1 addition & 5 deletions launcher/src/backend/ethereum-services/PrysmBeaconService.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,14 @@ export class PrysmBeaconService extends NodeService {
"--p2p-udp-port=12001",
];

const entrypoint = network === "devnet" ? [] : ["/app/cmd/beacon-chain/beacon-chain"];

service.init(
"PrysmBeaconService", //service
service.id, //id
1, // configVersion
image, //image
"v5.1.0", //imageVersion

cmd, // command
entrypoint, //entrypoint

["/app/cmd/beacon-chain/beacon-chain"], //entrypoint
null, //env
ports, //ports
volumes, //volumes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,14 @@ export class PrysmValidatorService extends NodeService {
"--enable-doppelganger=true",
];

const entrypoint = network === "devnet" ? [] : ["/app/cmd/validator/validator"];

service.init(
"PrysmValidatorService", //service
service.id, //id
1, // configVersion
image, //image
"v5.1.0", //imageVersion

cmd, //command
entrypoint, // entrypoint

["/app/cmd/validator/validator"], // entrypoint
null, // env
ports, //ports
volumes, //volumes
Expand Down

0 comments on commit 678883d

Please sign in to comment.