sudo apt install -y docker docker-compose bash
sudo groupadd docker
sudo usermod -aG docker $USER
Then start a new terminal session (or reboot the machine).
Download and install Docker Desktop.
Navigate to directory xray-16/docker
and run the following to create
container:
bash create.sh
In case you need to look around inside the container, run
bash login.sh
Entire project is located inside /xray-16/
directory.
Work with container under the same user as the one who created it.
Simply run exit
.
If you reloaded your machine or container somehow disappeared, run
bash restart.sh
User user
is used for integration with CLion, don't try to log in as him manually.
-
Make sure that container is running:
docker container list | grep xray-dev
-
In CLion:
-
Open
xray-16
project -
In
Preferences/Settings
>Build, Execution, Deployment
>Toolchains
create Remote Host and fill paths to the tools (compiler, cmake and so on) like on the screenshot below:username: user password: password
-
In
Preferences/Settings
>Build, Execution, Deployment
>CMake
chooseToolchain
– created above Remote Host:
-
-
You are good to go.