The development environment contains the tools for use throughout the tutorial. Monitoring tools, development tools, and an IDE for the Go language will be installed in this section.
All steps must be run from the
/home/<user>
folder withsudo
privileges. If you are going to customize or install asroot
, please set paths, folders and tools according to your new configuration.
-
Before continue, follow the my5G-core installation steps from here
-
Install some tools required to develop, monitor and containerize:
System update
sudo apt update && sudo apt -y upgrade
Tools installation
sudo apt -y install tcpdump wireshark curl snap
Docker installation
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
Docker-compose installation
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose && sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
JetBrains GoLand IDE
sudo snap install goland --classic
Jetbrains GoLand IDE has "For Open Source projects" and "For students and teachers" distributions, both free. Click here to register your account.
-
Open the project with GoLand
- The project folder should be
~/my5G-core
- The project folder should be
-
Check that $GOPATH and $GOROOT are recognized by GoLand and points to the right folders
- Acess menus: File -> Settings
- $GOROOT and $GOPATH should look like below:
- $GOPATH should show your user instead of my5G-core
-
Now, the IDE should be able to recognize the imports from external libraries and packages under
my5G-core/src/