Commit 2f7834fe authored by Yann Garcia's avatar Yann Garcia
Browse files

Enhance script to switch between MEC Sandbox and AdvantEDGE plateforms

parent 4449eee2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2021 ETSI STF 625
 * Copyright (c) 2022  The AdvantEDGE Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -14,6 +14,7 @@
 * limitations under the License.
 */


package main

import (
+4 −1
Original line number Diff line number Diff line
#!/bin/sh -e

set -vx
#set -vx

DESC="AdvantEDGE platform"
PLTF="Unknown"
@@ -41,6 +41,7 @@ switch_to_advantedge_pltf() {
    rm -fr charts/grafana/dashboards/mec-sandbox.json config/api/ config/permissions.yaml
    cp .meepctl-repocfg_adv.yaml .meepctl-repocfg.yaml
    git checkout --force config/objstore-thanos-archive.yaml config/objstore-thanos.yaml config/secrets.yaml examples/demo4-ue/src/demo-server/entrypoint.sh

    start_advantedge
}

@@ -50,11 +51,13 @@ switch_to_sandbox_pltf() {
        start_advantedge
        return
    fi

    stop_avdantedge
    cd ../mec-sandbox
    ./build.sh
    ./deploy.sh
    cd -

    start_advantedge
}