@@ -31,10 +31,13 @@ const (
3131
3232func defaultTon (in * Input ) {
3333 if in .Image == "" {
34- // Note: mylocalton is a compose file, not a single image. Reusing common image field
34+ // Note: mylocalton uses a compose file, not a single image. Reusing common image field
3535 in .Image = "https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
36+ }
37+ // Note: in local env having all services could be useful(explorer, faucet), in CI we need only core services
38+ if os .Getenv ("CI" ) == "true" && len (in .TonCoreServices ) == 0 {
3639 // Note: mylocalton-docker's essential services, excluded explorer, restarter, faucet app,
37- in .CoreServices = []string {
40+ in .TonCoreServices = []string {
3841 "genesis" , "tonhttpapi" , "event-cache" ,
3942 "index-postgres" , "index-worker" , "index-api" ,
4043 }
@@ -87,14 +90,9 @@ func newTon(in *Input) (*Output, error) {
8790
8891 var upOpts []compose.StackUpOption
8992 upOpts = append (upOpts , compose .Wait (true ))
90- services := []string {}
91- // Note: in local env having all services could be useful(explorer, faucet), in CI we need only core services
92- if os .Getenv ("CI" ) == "true" && len (services ) == 0 {
93- services = in .CoreServices
94- }
9593
96- if len (services ) > 0 {
97- upOpts = append (upOpts , compose .RunServices (services ... ))
94+ if len (in . TonCoreServices ) > 0 {
95+ upOpts = append (upOpts , compose .RunServices (in . TonCoreServices ... ))
9896 }
9997
10098 // always wait for healthy
@@ -133,7 +131,7 @@ func newTon(in *Input) (*Output, error) {
133131 ContainerName : containerName ,
134132 // Note: in case we need 1+ validators, we need to modify the compose file
135133 Nodes : []* Node {{
136- // todo : define if we need more access other than lite client(tonutils-go only needs lite client)
134+ // Note : define if we need more access other than lite client(tonutils-go only needs lite client)
137135 ExternalHTTPUrl : fmt .Sprintf ("%s:%s" , liteHost , litePort .Port ()),
138136 }},
139137 NetworkSpecificData : & NetworkSpecificData {
0 commit comments