Loading examples/demo6/golang/app_instance.yaml 0 → 100644 +14 −0 Original line number Diff line number Diff line # This file defines the configuration of Demo6 edge application. All fields are required to run demo-6 on MEC Sandbox # Set where mec application is running either on MEC Sandbox or AdvantEDGE. Expected fields: sandbox | advantedge mode: 'sandbox' # Set MEC plateform address sandbox: 'mec-platform.etsi.org' # Set if sandbox url uses https. Expected fields: true | false https: true # Set the mec platform name demo-6 will run on. Example field: mep1 mecplatform: 'mep1' # Set host address of demo-6. localurl: 'http://' # Set host port number of demo-6. Example field: '8093' port: '80' No newline at end of file examples/demo6/golang/build-demo6.sh +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ echo ">>> Building Demo 6 Go MEC APP" echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" echo "" go mod tidy go build -o $DEMOBIN . echo "" Loading examples/demo6/golang/docker_build.sh +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ BASEDIR=$(dirname "$SCRIPT") DEMOBIN=$BASEDIR/bin/demo6 docker pull golang docker run --rm -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6 && ./build-demo6.sh" docker run --rm -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6 && ./build-demo6.sh && chown -R $UID:$UID ./bin" echo "" echo ">>> Demo Service build completed" examples/demo6/golang/docker_run.sh +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ set -e set +x docker pull golang docker run --rm -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6/bin && ./demo6" docker run --rm --expose 80 -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6/bin && ./demo6 ../app_instance.yaml" echo "" echo ">>> Done" examples/demo6/golang/dockerize.sh +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ set +x SCRIPT=$(readlink -f "$0") BASEDIR=$(dirname "$SCRIPT") DEMOBIN=$BASEDIR/bin/demo6 DEMOBIN=$BASEDIR/bin echo "" echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" Loading Loading
examples/demo6/golang/app_instance.yaml 0 → 100644 +14 −0 Original line number Diff line number Diff line # This file defines the configuration of Demo6 edge application. All fields are required to run demo-6 on MEC Sandbox # Set where mec application is running either on MEC Sandbox or AdvantEDGE. Expected fields: sandbox | advantedge mode: 'sandbox' # Set MEC plateform address sandbox: 'mec-platform.etsi.org' # Set if sandbox url uses https. Expected fields: true | false https: true # Set the mec platform name demo-6 will run on. Example field: mep1 mecplatform: 'mep1' # Set host address of demo-6. localurl: 'http://' # Set host port number of demo-6. Example field: '8093' port: '80' No newline at end of file
examples/demo6/golang/build-demo6.sh +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ echo ">>> Building Demo 6 Go MEC APP" echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" echo "" go mod tidy go build -o $DEMOBIN . echo "" Loading
examples/demo6/golang/docker_build.sh +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ BASEDIR=$(dirname "$SCRIPT") DEMOBIN=$BASEDIR/bin/demo6 docker pull golang docker run --rm -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6 && ./build-demo6.sh" docker run --rm -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6 && ./build-demo6.sh && chown -R $UID:$UID ./bin" echo "" echo ">>> Demo Service build completed"
examples/demo6/golang/docker_run.sh +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ set -e set +x docker pull golang docker run --rm -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6/bin && ./demo6" docker run --rm --expose 80 -it -v$PWD:/opt/local/etsi/demo6 golang bash -c "cd /opt/local/etsi/demo6/bin && ./demo6 ../app_instance.yaml" echo "" echo ">>> Done"
examples/demo6/golang/dockerize.sh +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ set +x SCRIPT=$(readlink -f "$0") BASEDIR=$(dirname "$SCRIPT") DEMOBIN=$BASEDIR/bin/demo6 DEMOBIN=$BASEDIR/bin echo "" echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" Loading