Giter Club home page Giter Club logo

remote-ide-cpp's Introduction

Remote IDE for C/C++

General information

This is my personal remote IDE base for C/C++. It spins up basic Debian container with some additional packages installed. It has build_essentials and manpages-dev already installed. You can easily install additional libraries.

Basic features include an SSH server for connecting (you need to figure out connectivity depending on deployment strategy)

How to use?

Basics

You can use this container either locally as you please or remotely through SSH. The login password is either provided by you or set randomly at container startup. If you don't provide a password, it is randomly set each time you start the container. The random password is printed in container logs. .ssh/authorized_keys is rebuilt on every container start. See below for persisting keys.

Helm chart?

Not yet.

Environment variables

  • $IDE_PASSWORD sets the login password for the created user. User name, however is set during image build and shouldn't be changed any more; the default is vscode.
  • You can provide a single ssh key through the environment variable SSH_KEY as a base64encoded string. This is not very well implemented, so use is discouraged.

Special mount locations

  • /home/vscode/.ssh/authorized_keys.d: Every file under this directory ending in .key will be included in .ssh/authorized_keys.
  • /home/vscode: The home directory is persisted.
  • /usr/local/etc/ssh: The location of ssh(d) configuration. This is persisted to maintain ssh keys over instances.

Custom scripting

You can add scripts to be run at container startup. /home/vscode/setup.sh is executed in the beginning of the entrypoint script, scripts in /usr/local/bin/entrypoint.d/ are executed next and /home/vscode/start.sh at the end. Commands are not, by default, run as root, but you can use sudo to run commands with higher privileges. Please note that /usr/local/bin/entrypoint.d might also include scripts included with the image, so do not mount it from an external source unless you know what you are doing.

Extending container

Easiest way is to build an image using this as the source image. Instead of changing the docker-entrypoint.sh script itself you can extend entrypoint setup by placing additional scripts under /usr/local/bin/entrypoint.d/). All files with ending .sh will be executed during entrypoint. Note that entrypoint is run as the user, so use sudo where necessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.