Skip to content

Commit 7aa9182

Browse files
committed
Fix mirage boot
1 parent 48c7ee2 commit 7aa9182

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

node_cli/utils/docker_utils.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,29 @@
1717
# You should have received a copy of the GNU Affero General Public License
1818
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1919

20-
import os
2120
import io
22-
import time
2321
import itertools
2422
import logging
23+
import os
24+
import time
2525
from typing import Optional
2626

2727
import docker
2828
from docker.client import DockerClient
29-
from docker.models.containers import Container
3029
from docker.errors import NotFound
30+
from docker.models.containers import Container
3131

32-
from node_cli.utils.helper import run_cmd, str_to_bool
3332
from node_cli.configs import (
3433
COMPOSE_PATH,
35-
SYNC_COMPOSE_PATH,
3634
MIRAGE_COMPOSE_PATH,
35+
NGINX_CONTAINER_NAME,
3736
REMOVED_CONTAINERS_FOLDER_PATH,
3837
SGX_CERTIFICATES_DIR_NAME,
39-
NGINX_CONTAINER_NAME,
38+
SYNC_COMPOSE_PATH,
4039
)
40+
from node_cli.utils.helper import run_cmd, str_to_bool
4141
from node_cli.utils.node_type import NodeType
4242

43-
4443
logger = logging.getLogger(__name__)
4544

4645
SCHAIN_REMOVE_TIMEOUT = 300
@@ -76,6 +75,7 @@
7675
BASE_MIRAGE_BOOT_COMPOSE_SERVICES = {
7776
**CORE_MIRAGE_COMPOSE_SERVICES,
7877
'mirage-boot': 'mirage_boot_admin',
78+
'mirage-boot-api': 'mirage_boot_api',
7979
}
8080

8181
BASE_SYNC_COMPOSE_SERVICES = {
@@ -326,17 +326,17 @@ def compose_up(
326326

327327
if node_type == NodeType.MIRAGE:
328328
logger.info('Running mirage base set of containers')
329-
if not is_mirage_boot:
330-
logger.debug('Launching mirage containers with env %s', env)
331-
run_cmd(cmd=get_up_compose_cmd(node_type=NodeType.MIRAGE, services=services), env=env)
332-
else:
329+
if is_mirage_boot:
333330
logger.debug('Launching mirage boot containers with env %s', env)
334331
run_cmd(
335332
cmd=get_up_compose_cmd(
336333
node_type=NodeType.MIRAGE, services=list(BASE_MIRAGE_BOOT_COMPOSE_SERVICES)
337334
),
338335
env=env,
339336
)
337+
else:
338+
logger.debug('Launching mirage containers with env %s', env)
339+
run_cmd(cmd=get_up_compose_cmd(node_type=NodeType.MIRAGE, services=services), env=env)
340340
else:
341341
logger.info('Running skale node base set of containers')
342342
logger.debug('Launching skale node containers with env %s', env)

0 commit comments

Comments
 (0)