![]() ![]() Navigate to Settings->Build, Execution, Deplyment -> Cmake and create a new profile. Now we must set up a CMake profile to make use of our new Remote Host toolchain. In the example above the username is "debugger" and the password is "pwd". In the Credentials field click the small folder on the right side and enter the credentials for the debugger user created in the Dockerfile. Open Settings->Build, Execution, Deplyment -> Toolchains and create a new Remote Host Toolchain. Right-click the docker-compose.yml file and select Run.Īfter a minute or two the container should be created and be viewable from Clion's Docker tab.įrom the directory containing the Dockerfile and docker-compose.yml files, run: docker-compose up -d # From: Įnsure that the Dockerfile and docker-compose.yml files are in the same directory. In the same directory as the previous docker file, create a docker-compose.yaml file. # Add custom packages and development environment here RUN echo "export VISIBLE=now" > /etc/profile RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config ![]() RUN apt-get update & apt-get upgrade -y & apt-get install -y \Īpt-utils gcc g++ openssh-server cmake build-essential gdb gdbserver rsync vim # Essential packages for remote debugging and login in Modify the this Dockerfile to install any dependencies your project needs. (Optional) If you do not have the Docker plugin for CLion installed, get it by following these instructions. I used the guide at as a reference and made a few changes. All we have to do is set up a docker container as our "Remote Host". As of late 2018, Remote Development in CLion is pretty easy to set up. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |