Deployment using docker-compose broken
This issue mainly targets oai-cn5g-fed, I created it by mistake on oai-cn5g-nrf, but figured out that I can't create issues on the original project, so I'll just leave it open here (feel free to close it if it's off-topic).
There is a small bug (typo) in docker-compose files, on the oai_spgwu
entry, the image name is spelled as oai_sgpwu:1.0
, which I fixed here.
Besides that, I think docker-compose files should be using the same tags in the examples in BUILD_IMAGES, ideally, they would build images also with the build directive.
After fixing these to reference the images I built, and using the docker-compose file without nrf, all of the container exit immediately when started, oai_spgwu, oai_amf and oai_smf.
The logs of each container:
oai_spgwu:
/openair-spgwu-tiny/bin/entrypoint.sh: line 26: !NEW_VAR: unbound variable
oai_amf:
Now setting these variables '@AMF_INTERFACE_NAME_FOR_N11@ @AMF_INTERFACE_NAME_FOR_NGAP@ @AMF_SET_ID@ @AUSF_API_VERSION@ @AUSF_IPV4_ADDRESS@ @AUSF_PORT@ @INSTANCE@ @MCC@ @MNC@ @MYSQL_DB@ @MYSQL_PASS@ @MYSQL_SERVER@ @MYSQL_USER@ @NF_REGISTRATION@ @NRF_API_VERSION@ @NRF_IPV4_ADDRESS@ @NRF_PORT@ @OPERATOR_KEY@ @PID_DIRECTORY@ @PLMN_SUPPORT_MCC@ @PLMN_SUPPORT_MNC@ @PLMN_SUPPORT_TAC@ @REGION_ID@ @SD_0@ @SD_1@ @SERVED_GUAMI_AMF_SET_ID_0@ @SERVED_GUAMI_AMF_SET_ID_1@ @SERVED_GUAMI_MCC_0@ @SERVED_GUAMI_MCC_1@ @SERVED_GUAMI_MNC_0@ @SERVED_GUAMI_MNC_1@ @SERVED_GUAMI_REGION_ID_0@ @SERVED_GUAMI_REGION_ID_1@ @SMF_HTTP_VERSION_0@ @SMF_HTTP_VERSION_1@ @SMF_INSTANCE_ID_0@ @SMF_INSTANCE_ID_1@ @SMF_IPV4_ADDR_0@ @SMF_IPV4_ADDR_1@ @SMF_SELECTION@ @SST_0@ @SST_1@' Error: Environment variable 'NF_REGISTRATION' is not set. Config file 'amf.conf' requires all of @AMF_INTERFACE_NAME_FOR_N11@ @AMF_INTERFACE_NAME_FOR_NGAP@ @AMF_SET_ID@ @AUSF_API_VERSION@ @AUSF_IPV4_ADDRESS@ @AUSF_PORT@ @INSTANCE@ @MCC@ @MNC@ @MYSQL_DB@ @MYSQL_PASS@ @MYSQL_SERVER@ @MYSQL_USER@ @NF_REGISTRATION@ @NRF_API_VERSION@ @NRF_IPV4_ADDRESS@ @NRF_PORT@ @OPERATOR_KEY@ @PID_DIRECTORY@ @PLMN_SUPPORT_MCC@ @PLMN_SUPPORT_MNC@ @PLMN_SUPPORT_TAC@ @REGION_ID@ @SD_0@ @SD_1@ @SERVED_GUAMI_AMF_SET_ID_0@ @SERVED_GUAMI_AMF_SET_ID_1@ @SERVED_GUAMI_MCC_0@ @SERVED_GUAMI_MCC_1@ @SERVED_GUAMI_MNC_0@ @SERVED_GUAMI_MNC_1@ @SERVED_GUAMI_REGION_ID_0@ @SERVED_GUAMI_REGION_ID_1@ @SMF_HTTP_VERSION_0@ @SMF_HTTP_VERSION_1@ @SMF_INSTANCE_ID_0@ @SMF_INSTANCE_ID_1@ @SMF_IPV4_ADDR_0@ @SMF_IPV4_ADDR_1@ @SMF_SELECTION@ @SST_0@ @SST_1@.
oai_smf:
Error: Environment variable 'DISCOVER_UPF' is not set. Config file 'smf.conf' requires all of @AMF_API_VERSION@ @AMF_IPV4_ADDRESS@ @AMF_PORT@ @DEFAULT_DNS_IPV4_ADDRESS@ @DEFAULT_DNS_SEC_IPV4_ADDRESS@ @DISCOVER_UPF@ @INSTANCE@ @NRF_API_VERSION@ @NRF_IPV4_ADDRESS@ @NRF_PORT@ @PID_DIRECTORY@ @REGISTER_NRF@ @SMF_API_VERSION@ @SMF_INTERFACE_HTTP2_PORT_FOR_SBI@ @SMF_INTERFACE_NAME_FOR_N4@ @SMF_INTERFACE_NAME_FOR_SBI@ @SMF_INTERFACE_PORT_FOR_SBI@ @UDM_API_VERSION@ @UDM_IPV4_ADDRESS@ @UDM_PORT@ @UPF_IPV4_ADDRESS@.
Apologies if there is any misunderstanding of the project, this is my first issue here.