Coder Social home page Coder Social logo

nuclide-docker's Introduction

Nuclide Docker

This is a very simple container with a working Nuclide server and watchman support.

Quick start

git clone --recurse-submodules [email protected]:techcrystal/nuclide-docker.git
cd nuclide-docker
sudo docker-compose up -d

Running

First, reconfigure the root directory you want mapped to the container in the docker-compose.yml file, under the volumes section in the nuclide-server service.

Then, copy your public key to be used for authentication under this directory, and rename it to public_key. This file will be used as the authorized_keys file. If you could previously log in to the machine with a private key, you should be able to do the same without change. Alternatively, you may use a password based authentication by uncommenting the line that echoes root:passwd into chpasswd. It is highly recommended that you use a more secure password.

In case you need anything else to run in the container (an autoformatter, or a linter, for example), simply install them in the Dockerfile. Most of the work should be done on the host machine, though.

Finally, with Docker and docker-compose properly installed, all one needs to do should be simply

$ sudo docker-compose up -d

In Nuclide's "Add Remote Folder" dialog, use the following configuration:

  • Username: root
  • Server: Your server's IP address
  • Port: 2022
  • Initial Directory: /root/workspace
  • Authentication Method: Private key (or Password, depending on how you chose to set up authentication)
  • Remote Server Command: nuclide-start-server

nuclide-docker's People

Contributors

techcrystal avatar movefaster avatar

Watchers

James Cloos 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.