Sign inSign up

invasy/remote-dev-gcc

By invasy

•Updated about 4 years ago

Image
0

2.1K

invasy/remote-dev-gcc repository overview

⁠GCC 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-gcc @ Docker Hub Docker Image Size (latest by date) Docker Pulls

⁠Toolchain

⁠Usage

  1. Build image:
    make gcc-build
    
  2. Run service:
    make gcc-up
    
  3. Set up CLion toolchain (see below).
  4. Build, run, debug your project using toolchain in the container.
  5. Stop service:
    make gcc-down
    
⁠CLion Configuration
⁠Toolchains
  • Name: remote-dev-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)
⁠SSH Configurations
  • Host: 127.0.0.1
  • Port: 22002
  • 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-gcc
User builder
HostName 127.0.0.1
Port 22001
HostKeyAlias remote-dev-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 'remote-dev-gcc'
⁠Connection
ssh remote-dev-gcc
  • User name: builder
  • Password: builder

⁠See Also

Tag summary

Content type

Image

Digest

Size

219.4 MB

Last updated

about 4 years ago

docker pull invasy/remote-dev-gcc