The Nuclide-remote Docker container enables remote editing with Nuclide. Further documentation about Nuclide can be found at: https://nuclide.io/docs/features/remote/
- SSH into server and run:
$ docker run -d -p 9090:9090 -p 9091:22 -v ~/projects/test-project:/projects/test-project --name nuclide-remote div99/nuclide-remote:latest
- Install
nuclide
package in Atom
To run nuclide-remote you need Docker Engine >= 1.10.0
. You will also need to install the nuclide community package to run with Atom.
If you want to run the application manually instead of using docker-compose, these are the basic steps you need to run:
- Setup container on remote server:
- Find the path on your remote server that contains the project you want to open. In this example, it will be
~/projects/test-project
. - On the remote host start the Docker container:
$ docker run -d -p 9090:9090 -p 9091:22 -v ~/projects/test-project:/projects/test-project --name nuclide-remote div99/nuclide-remote:latest
- On the local machine start Atom
- Open the Home pane.
- Select Remote connection and enter the connection information:
- Username:
root
- Server: the address of your server. This can be a domain name based or IP address.
- Initial Directory: the path on your remote server that contains the project you want to open.
- Password:
nuclide
- SSH Port:
9091
- Remote Server Command:
nuclide-start-server -p 9090
After pressing ok the remote directory will show up and will be ready for editing.
The Nuclide instance can be customized by specifying environment variables on the first run:
NUCLIDE_VERSION
: Nuclide module version to install via npm. No defaults.USERNAME
: System username to configure and ssh with. Default: rootPASSWORD
: System password to configure and ssh with. Default: nuclideAUTHORIZED_KEYS
: Base64-encoded authorized_keys file. No defaults.
$ docker run -d --name nuclide -p 9090:9090 -p 9091:22 \
--volume /app:/app \
--env NUCLIDE_VERSION=0.205.0\
--env USERNAME=foo \
--env PASSWORD=bar \
--env AUTHORIZED_KEYS="`base64 ~/.ssh/authorized_keys`" \
div99/nuclide-remote:latest
The image ships the latest Nuclide IDE version. You can also specify a different version at runtime by setting an environment variable. See Environment variables section for more info.
Communication between Nuclide and Nuclide-remote uses 2 ports:
ssh/22
: needed to start nuclide remote inside Docker container9090
: the Nuclide communication channel
If you encountered a problem running this container, you can file an issue. For better support, be sure to include the following information in your issue:
- Host OS and version
- Docker version (
$ docker version
) - Output of
$ docker info
- The command you used to run the container, and any relevant output you saw (masking any sensitive information)
I'd love for you to contribute to this container. You can request new features by creating an issue, or submit a pull request with your contribution.