Remote nuclide server in a Docker container
1.2K
The Nuclide-remote Docker container enables remote editing with Nuclide. Further documentation about Nuclide can be found at: https://nuclide.io/docs/features/remote/
$ docker run -d -p 9090:9090 -p 9091:22 -v ~/projects/test-project:/projects/test-project --name nuclide-remote div99/nuclide-remote:latest
nuclide package in AtomTo 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:
~/projects/test-project.$ docker run -d -p 9090:9090 -p 9091:22 -v ~/projects/test-project:/projects/test-project --name nuclide-remote div99/nuclide-remote:latest
rootnuclide9091nuclide-start-server -p 9090After 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 channelIf 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:
$ docker version)$ docker infoI'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.
Content type
Image
Digest
Size
145.3 MB
Last updated
over 7 years ago
docker pull div99/nuclide-remote