Warning: Development continues in
invasy/dev-env
repository.
- GCC 11
- CMake 3.20.5
- ninja 1.10.2
- GNU Make 4.2.1
- GNU Debugger (gdb) with gdbserver 9.2
- rsync 3.1.3
- OpenSSH server 8.2p1
- Debian 11 "bullseye"
Note: CMake versions 3.21.* are not supported by CLion versions up to 2021.2.*.
- Run service (container).
- Set up CLion toolchain.
- Build, run, debug your project in the container.
docker run -d --cap-add=sys_admin --name=gcc_remote -p 127.0.0.1:22002:22 invasy/gcc-remote:latest
or from git repository:
docker-compose up -d
- Name:
gcc-remote
- Credentials: see SSH Configurations below
- CMake:
/usr/local/bin/cmake
- Make:
/usr/local/bin/ninja
(see also CMake below) - C Compiler:
/usr/local/bin/gcc
(should be detected) - C++ Compiler:
/usr/local/bin/g++
(should be detected) - Debugger:
/usr/bin/gdb
(should be detected)
- Host:
127.0.0.1
- Port:
22002
- Authentication type:
Password
- User name:
builder
- Password:
builder
- Profiles:
- Debug (or any other profile):
- CMake options:
-G Ninja
- CMake options:
- Debug (or any other profile):
# ~/.ssh/config
Host gcc-remote
User builder
HostName 127.0.0.1
Port 22002
HostKeyAlias gcc-remote
StrictHostKeyChecking no
NoHostAuthenticationForLocalhost yes
PreferredAuthentications password
PasswordAuthentication yes
PubkeyAuthentication no
Remove old host key from ~/.ssh/known_hosts
after image rebuilding (note HostKeyAlias
in config above):
ssh-keygen -f "$HOME/.ssh/known_hosts" -R "gcc-remote"
ssh gcc-remote
Password: builder