Parent image: invasy/dev-env-cpp.
Tool | Version |
---|---|
Debian (slim) | 11.4 (Bullseye) |
[GPG] | 2.2.27 |
[libgcrypt] | 1.8.8 |
OpenSSH server | 8.4p1 |
rsync | 3.2.3 |
CMake | 3.23.5 |
ninja | 1.11.1 |
GNU Make | 4.3 |
GNU Debugger (gdb) with gdbserver | 10.1 |
GCC | 12.1.0 |
- Build image:
make build-gcc
- Run service:
make up-gcc
- Set up CLion toolchain (see below).
- Build, run, debug your project using toolchain in the container.
- Stop service:
make down-gcc
- Name:
dev-env-gcc
- 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 dev-env-gcc
User builder
HostName 127.0.0.1
Port 22001
HostKeyAlias dev-env-gcc
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 'dev-env-gcc'
ssh dev-env-gcc
- User name:
builder
- Password:
builder