Sign inSign up

invasy/remote-dev-clang

By invasy

•Updated about 4 years ago

Image
0

2.1K

invasy/remote-dev-clang repository overview

⁠clang in Docker

invasy/docker-remote-dev @ GitHub GitHub Workflow Status

invasy/docker-remote-dev @ GitLab GitLab CI Pipeline Status

invasy/docker-remote-dev @ Bitbucket

invasy/remote-dev-clang @ DockerHub Docker Image Size (latest by date) Docker Pulls

⁠Toolchain

ToolVersion
Debian⁠ (slim⁠)11.4 (Bullseye)⁠
OpenSSH⁠ server8.4p1
rsync⁠3.2.3
GNU Make⁠4.3
GNU Debugger⁠ (gdb) with gdbserver10.1
CMake⁠3.22.5
ninja⁠1.11.0
clang⁠/llvm⁠14

⁠Usage

  1. Build image:
    make clang-build
    
  2. Run service:
    make clang-up
    
  3. Set up CLion toolchain (see below).
  4. Build, run, debug your project using toolchain in the container.
  5. Stop service:
    make clang-down
    
⁠CLion Configuration
⁠Toolchains
  • Name: remote-dev-clang
  • Credentials: see SSH Configurations below
  • CMake: /usr/local/bin/cmake
  • Make: /usr/local/bin/ninja (see also CMake below)
  • C Compiler: /usr/bin/clang-14 (should be detected)
  • C++ Compiler: /usr/bin/clang++-14 (should be detected)
  • Debugger: /usr/bin/gdb (should be detected)
⁠SSH Configurations
  • Host: 127.0.0.1
  • Port: 22001
  • Authentication type: Password
  • User name: builder
  • Password: builder
⁠CMake
  • Profiles:
    • Debug (or any other profile):
      • CMake options: -G Ninja

⁠SSH

⁠Configuration
# ~/.ssh/config
Host remote-dev-clang
User builder
HostName 127.0.0.1
Port 22001
HostKeyAlias remote-dev-clang
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 'remote-dev-clang'
⁠Connection
ssh remote-dev-clang
  • User name: builder
  • Password: builder

⁠See Also

Tag summary

Content type

Image

Digest

Size

353 MB

Last updated

about 4 years ago

docker pull invasy/remote-dev-clang