Skip to content

Improvements to OAI buld and platform flexibility#375

Open
platini2 wants to merge 3 commits into
herlesupreeth:masterfrom
platini2:master
Open

Improvements to OAI buld and platform flexibility#375
platini2 wants to merge 3 commits into
herlesupreeth:masterfrom
platini2:master

Conversation

@platini2

@platini2 platini2 commented Oct 2, 2024

Copy link
Copy Markdown
Contributor

Makes running OAI easier by:

  1. Single dockerimage for enb and gnb
  2. Allow to run multiple SDR (not only USRP)
  3. Allow to quickly change configuration by using gnb.conf / enb.conf generic filenames.

@herlesupreeth herlesupreeth left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thank you very much for the PR. I have suggested some changes let me know what you think

Comment thread .env Outdated

# Openairinterface nodeB Parameters
# SDR USRP/LIMESDR/BLADERF
SDRPLATFORM=USRP

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am against adding this here you can pass it in the docker-compose file. For example, when you deploy oai_enb.yaml you can embed the variable there

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread .env Outdated
SDRPLATFORM=USRP

# LTE for eNB or NR for gNB
RADIO=LTE

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am against adding this here you can pass it in the docker-compose file. For example, when you deploy oai_enb.yaml you can embed the variable RADIO=LTE and when you use the file oai_gnb.yaml you can use RADIO=NR or something like that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread oai/all_dockerfile

ARG SDRPLATFORM

RUN . ./oaienv && cd cmake_targets && \

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest having this logic of selecting the SDRPLATFORM and RADIO in oai_init.sh

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the SDRPLATFORM is part of the build process as OAI compilations requires the platform to be build for.

Comment thread oaignb.yaml Outdated
context: oai
dockerfile: gnb_dockerfile
image: docker_oai_gnb
dockerfile: all_dockerfile

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather than building it here. I would suggest to build the image beforehand and use the image name here so that whenever you try between oaienb.yaml and oaignb.yaml the image doesnt get rebuilt

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants