From 243397a7ae2622dc4cc5127b8457fcd28a3e6c4e Mon Sep 17 00:00:00 2001 From: Ben Courliss Date: Thu, 18 Jul 2024 10:16:53 -0400 Subject: [PATCH] Updated to 1.1.9 FDO release. Signed-off-by: Ben Courliss --- Makefile | 2 +- README.md | 6 +++--- docker/Dockerfile | 4 ++-- docker/run-fdo-owner-service.sh | 2 +- docker/start-fdo-owner-service.sh | 2 +- sample-mfg/start-mfg.sh | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 37b4182..289b527 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SHELL ?= /bin/bash -e # Set this before building the ocs-api binary and FDO-owner-services (for now they use the samme version number) export VERSION ?= 1.4.0 -export FIDO_DEVICE_ONBOARD_REL_VER ?= 1.1.7 +export FIDO_DEVICE_ONBOARD_REL_VER ?= 1.1.9 # used by sample-mfg/Makefile. Needs to match what is in fdo/supply-chain-tools-v/docker_manufacturer/docker-compose.yml STABLE_VERSION ?= 1.4.0 diff --git a/README.md b/README.md index 398940e..c20776e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The FDO owner service are packaged as a single docker container that can be run # An all-in-1 environment example: export HZN_EXCHANGE_USER_AUTH=admin:password # : export HZN_ORG_ID=myorg # - export FIDO_DEVICE_ONBOARD_REL_VER=1.1.7 # https://github.com/fido-device-onboard/release-fidoiot/releases + export FIDO_DEVICE_ONBOARD_REL_VER=1.1.9 # https://github.com/fido-device-onboard/release-fidoiot/releases export VERBOSE=true # optional, for debug ``` @@ -115,7 +115,7 @@ The sample script called `start-mfg.sh` downloads and extracts all necessary com ```bash curl -sSLO https://raw.githubusercontent.com/open-horizon/FDO-support/main/sample-mfg/start-mfg.sh chmod +x start-mfg.sh -export FIDO_DEVICE_ONBOARD_REL_VER=1.1.7 # https://github.com/fido-device-onboard/release-fidoiot/releases +export FIDO_DEVICE_ONBOARD_REL_VER=1.1.9 # https://github.com/fido-device-onboard/release-fidoiot/releases export FDO_MFG_SVC_AUTH=apiUser:password # apiUser: export FDO_MFG_PORT=8039 export FDO_OWN_COMP_SVC_PORT=9008 @@ -340,7 +340,7 @@ DROP DATABASE fdo; #### Troubleshooting -- If the edge device does not give a `[INFO ] TO2 completed successfully. [INFO ] Starting Fdo Completed`, check /fdo/pri-fidoiot-v1.1.7/owner/app-data/service.log or use command `docker logs -f fdo-owner-service` for error messages. +- If the edge device does not give a `[INFO ] TO2 completed successfully. [INFO ] Starting Fdo Completed`, check /fdo/pri-fidoiot-v1.1.9/owner/app-data/service.log or use command `docker logs -f fdo-owner-service` for error messages. - If your Owner, RV or Manufacturer service does not respond, you can check the logs in the same location as above. If the logs never printed that it started the service, for example: "Started Owner Service", then make sure you have all dependencies installed and environment variables correctly exported. - If your Service Info Package fails during the process of getting onboarded to the edge device, make sure you posted the file correctly to the owner service DB. Also make sure that you posted the correct To2 address. diff --git a/docker/Dockerfile b/docker/Dockerfile index c34ca44..a2c626c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -78,11 +78,11 @@ USER fdouser WORKDIR $WORKDIR ARG fido_device_onboard_rel_ver -ENV FIDO_DEVICE_ONBOARD_REL_VER=${fido_device_onboard_rel_ver:-1.1.7} +ENV FIDO_DEVICE_ONBOARD_REL_VER=${fido_device_onboard_rel_ver:-1.1.9} # Get the license file COPY LICENSE.txt /licenses/ -#${FIDO_DEVICE_ONBOARD_REL_VER} 1.1.7 uses 1.1.5. +#${FIDO_DEVICE_ONBOARD_REL_VER} 1.1.9 still uses 1.1.5. COPY fdo/NOTICES-v1.1.5/pri-fidoiot/* /licenses/FDOIotPlatformSDK/ # Get owner db files. The owner subdir will be created automatically by COPY diff --git a/docker/run-fdo-owner-service.sh b/docker/run-fdo-owner-service.sh index b006814..debde07 100755 --- a/docker/run-fdo-owner-service.sh +++ b/docker/run-fdo-owner-service.sh @@ -50,7 +50,7 @@ generateToken() { head -c 1024 /dev/urandom | base64 | tr -cd "[:alpha:][:digit: export CSS_PORT_EXTERNAL=${CSS_PORT_EXTERNAL:-9443} export EXCHANGE_INTERNAL_URL=${EXCHANGE_INTERNAL_URL:-http://exchange-api:8080/v1} # Internal docker network, for this container. export EXCHANGE_PORT_EXTERNAL=${EXCHANGE_PORT_EXTERNAL:-3090} -export FIDO_DEVICE_ONBOARD_REL_VER=${FIDO_DEVICE_ONBOARD_REL_VER:-1.1.7} +export FIDO_DEVICE_ONBOARD_REL_VER=${FIDO_DEVICE_ONBOARD_REL_VER:-1.1.9} export FDO_OWN_COMP_SVC_PORT=${FDO_OWN_COMP_SVC_PORT:-9008} export FDO_OWN_SVC_PORT=${FDO_OWN_SVC_PORT:-8042} export FDO_OWN_DB=${FDO_OWN_DB:-fdo} diff --git a/docker/start-fdo-owner-service.sh b/docker/start-fdo-owner-service.sh index 89580b2..fb34ba9 100755 --- a/docker/start-fdo-owner-service.sh +++ b/docker/start-fdo-owner-service.sh @@ -10,7 +10,7 @@ ocsDbDir="${1:-"ocs-db/"}" ocsApiPort="${2:-${SDO_OCS_API_TLS_PORT:-${SDO_OCS_API_PORT:-$ocsApiPortDefault}}}" # precedence: arg, or tls port, or non-tls port, or default workingDir='/home/fdouser' -FIDO_DEVICE_ONBOARD_REL_VER=${FIDO_DEVICE_ONBOARD_REL_VER:-1.1.7} # https://github.com/fido-device-onboard/release-fidoiot/releases +FIDO_DEVICE_ONBOARD_REL_VER=${FIDO_DEVICE_ONBOARD_REL_VER:-1.1.9} # https://github.com/fido-device-onboard/release-fidoiot/releases deviceBinaryDir="pri-fidoiot-v$FIDO_DEVICE_ONBOARD_REL_VER" # These can be passed in via CLI args or env vars tmp_pass=`head -c 15 /dev/random | base64` diff --git a/sample-mfg/start-mfg.sh b/sample-mfg/start-mfg.sh index fc19f53..63f2d62 100755 --- a/sample-mfg/start-mfg.sh +++ b/sample-mfg/start-mfg.sh @@ -63,7 +63,7 @@ export FDO_MFG_PORT=${FDO_MFG_PORT:-8039} export FDO_MFG_SVC_AUTH=${FDO_MFG_SVC_AUTH:-apiUser:$(generateToken 15)} export FDO_OWN_COMP_SVC_PORT=${FDO_OWN_COMP_SVC_PORT:-9008} export FDO_RV_URL=${FDO_RV_URL:-http://fdorv.com} # set to the production domain by default. Development domain is Owner's service public key protected as of v1.1.6. -export FIDO_DEVICE_ONBOARD_REL_VER=${FIDO_DEVICE_ONBOARD_REL_VER:-1.1.7} # https://github.com/fido-device-onboard/release-fidoiot/releases +export FIDO_DEVICE_ONBOARD_REL_VER=${FIDO_DEVICE_ONBOARD_REL_VER:-1.1.9} # https://github.com/fido-device-onboard/release-fidoiot/releases export HZN_DOCK_NET=${HZN_DOCK_NET:-hzn_horizonnet} #export HZN_EXCHANGE_USER_AUTH=${HZN_EXCHANGE_USER_AUTH:-admin:} # Default to organization admin provided by all-in-1 environment export HZN_LISTEN_IP=${HZN_LISTEN_IP:-127.0.0.1}