GithubHelp home page GithubHelp logo

kyorohiro / clang-code-server Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 40 KB

build clang's development environment with vscode on docker by code-server

Dockerfile 100.00%
clang cplusplus vscode code-server docker

clang-code-server's Introduction

Build clang's development environment with vscode on docker by code-server

(1) run a docker image.

git clone https://github.com/kyorohiro/clang-code-server.git
cd clang-code-server
docker build -t clang_vscode .
docker run -p 8443:8443 -p 8080:8080 -it clang_vscode bash

(2) run vscode at code-server

mkdir /works/w
/works/code-server /works/w --allow-http --no-auth

(3) and open 'http://127.0.0.1:8443/' at your browser

Install Clang Plugin

https://code.visualstudio.com/docs/languages/cpp

Build&RUN Hello World

(1) Write Code

#include<stdio.h>

int main(int argc, char** argv) {
    printf("Hello, World!!");
    return 0;
}

(2) Terminal -> New Terminal on VSCODE

(3) on Terminal

root@59757234cc79:/works/w# g++ hello.cpp
root@59757234cc79:/works/w# ./a.out 
Hello, World!!root@59757234cc79:/works/w# 

PS

[a] restart a container

$ docker ps -a
check id and
$ docker exec -it < id > bash

[b] reset configure which like port and mount etc.

$ docker commit < id > clang_vscode_xxx $ docker run -p 8443:8443 -p 8080:8080 -it clang_vscode_xxx bash

[c] mount volume

$ docker run -p 8443:8443 -p 8080:8080 -v /Users/kyorohiro/w/dart/xxx:/works/w -it clang_vscode bash

MY CODE-SERVER is There

https://github.com/kyorohiro/my-code-server

clang-code-server's People

Contributors

kyorohiro avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.