Commit 4e232e1f authored by Yann Garcia's avatar Yann Garcia
Browse files

Add MEC011 support

parent 9e83e077
Loading
Loading
Loading
Loading
+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
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ echo ">>> Building Demo 6 Go MEC APP"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ""

go mod tidy
go build -o $DEMOBIN .

echo ""
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ set +x
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")

DEMOBIN=$BASEDIR/bin/demo6
DEMOBIN=$BASEDIR/bin

echo ""
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
Loading