Tim Perry
28fe69fe94
Update to latest SDK in lots of easy device commands
2018-05-18 20:05:24 +02:00
Tim Perry
232cf8d426
Update SDK in resin device(s) to ensure the dashboard URL is correct
...
Fixes #768
Change-Type: patch
2018-05-18 20:00:40 +02:00
Cameron Diver
439d8d396f
Add push command which starts a build on remote resin servers
...
Change-type: minor
Connects-to: #843
2018-05-10 11:43:45 +01:00
Tim Perry
4b818ad51c
Style improvements after review
2018-05-03 18:59:28 +02:00
Tim Perry
c2518448a3
Catch require errors and provide helpful instructions
...
Change-Type: patch
2018-05-03 16:01:40 +02:00
Tim Perry
e7a8deed05
Inline the entire resin-cli-errors module
...
It's awkward that error handling requires you to go to a different
package, it makes things more complicated, and there's nowhere else that
really should be reusing this logic. Let's inline it, so we can
deprecate the module entirely.
Change-Type: patch
2018-05-03 15:15:03 +02:00
Tim Perry
2c46c59a79
Update resin-image-fs to stop non-config commands failing in node 10
...
This doesn't fix actual usage of image fs, just makes it possible to
stop commands that don't use it from failing entirely.
Connects-To: #869
Change-Type: patch
2018-04-30 11:14:39 +02:00
Tim Perry
ad2713fc00
Don't show Docker container status from devices, as it can be wrong
...
The status includes a description of how long the device has been in
this state (Up 6 weeks), which is frequently wrong as when the device
first starts up its clock isn't up to date. It's confusing and messy,
best to just remove it entirely.
Fixes #828
Change-Type: patch
2018-04-18 20:16:44 +02:00
Tim Perry
37e4ec6364
Rename expectedError to exitWithExpectedError
2018-04-17 15:18:06 +02:00
Tim Perry
6a8b947c2e
Don't report lots of user input errors
...
Change-Type: patch
2018-04-17 15:18:06 +02:00
Tim Perry
a16ac37625
Include Sentry breadcrumbs for context in error reports
...
Change-Type: patch
2018-04-17 15:18:06 +02:00
Tim Perry
834a2f1e4d
Warn user that api keys will not be shown again in future
2018-04-11 19:31:03 +02:00
Tim Perry
e0bcb5e0b9
Always call done() for api key generation, not just if we're successful
2018-04-11 19:27:58 +02:00
Tim Perry
59d4890eae
Add 'api-key generate' command
...
Change-Type: minor
2018-04-10 19:21:37 +02:00
Tim Perry
dd268993b3
Throw a clear error when logging in with an invalid token
...
Change-Type: patch
2018-04-04 15:43:34 +02:00
Tim Perry
ce64889b04
Clarify isTokenValid logic
2018-03-29 11:11:25 +02:00
Tim Perry
2db1d84d3c
Do not require a login for builds
...
Fixes : #578
Change-Type: patch
2018-03-29 11:11:25 +02:00
Tim Perry
12a1916007
Allow (experimental!) login with API keys
...
Change-Type: minor
2018-03-29 11:11:25 +02:00
Akis Kesoglou
c6c9046826
Fix crash when an app is not specified for build command
...
This is a regression introduced in #818
Change-Type: patch
2018-03-27 19:12:31 +03:00
Alexis Svinartchouk
ca1ac2bb83
Prefix all pine options with '$' in preload to avoid pine warnings.
...
Change-Type: patch
2018-03-23 15:20:18 +00:00
Akis Kesoglou
4f167cb836
Address review feedback
2018-03-22 13:26:47 +02:00
Akis Kesoglou
9455d438e2
Formatting fixes
2018-03-22 13:26:47 +02:00
Akis Kesoglou
a356ecf9b6
Remove unused code
2018-03-22 13:26:47 +02:00
Akis Kesoglou
066ac591ac
Warn early if deploying a multicontainer project to an incompatible app
...
Change-Type: patch
2018-03-22 13:26:47 +02:00
Akis Kesoglou
62f006b89a
Add legacy deploy method back
...
This mostly reverts the removal of the legacy deploy code that pushed image tars via the builder. It’s needed for users to avoid having to switch between CLI versions in order to push to legacy apps as well.
Note: this pins resin-sdk to 9.0.0-beta14 as I couldn’t get it to install otherwise — npm would always install 9.0.0-beta9 instead.
Change-Type: minor
2018-03-22 13:26:47 +02:00
Akis Kesoglou
242c3731ee
Remove redundant import
2018-03-19 20:52:51 +02:00
Akis Kesoglou
5f7eee8eac
Make sure image name is all lowercase
...
Change-Type: patch
2018-03-19 20:52:51 +02:00
Akis Kesoglou
1833f6ff0a
Improve handling of build log output
...
This makes sure build logs don’t leak escape sequences and new lines and they don’t break the output. Also improved “inline” logs by normalising the stream before passing it to “transpose build stream”.
Fixes : #808
Change-Type: patch
2018-03-19 20:52:51 +02:00
Akis Kesoglou
fe01ead023
Fix getting window size when there’s no TTY attached
...
Change-Type: patch
2018-03-15 10:30:54 +02:00
Akis Kesoglou
14a3f51b73
Add docker-compose-aware builds and deployments
...
Legacy behaviour is mostly retained. The most notable change in behaviour is that invoking `resin deploy` without options is now allowed (see help string how it behaves).
In this commit there are also the following notable changes:
- Deploy/Build are promoted to primary commands
- Extracts QEMU-related code to a new file
- Adds a utility file to retrieve the CLI version and its parts
- Adds a helper that can be used to manipulate display on capable clients
- Declares several new dependencies. Most are already indirectly installed via some dependency
Change-Type: minor
2018-03-07 14:48:05 +00:00
Akis Kesoglou
96116aeaec
Fix invoking undefined method
...
Have no idea how this used to work.
2018-03-07 14:47:16 +00:00
Akis Kesoglou
299bc0db13
Update docker-toolbelt
...
New version is 3.1.0.
The updated version is not backwards compatible as it removes all *Async methods that are in wide use in the CLI. The workaround for now is to manually promisify the client and replace all `new Docker()` calls with a shared function that returns a promisified client.
2018-03-07 14:47:15 +00:00
Tim Perry
079ce552e3
*BREAKING*: Remove support for plugins entirely
...
There are very few plugins in real-world use, we're not actively working
on this at all, and the current approach won't work once we move to
standalone node-less binary installation anyway.
Change-Type: major
2018-03-07 14:46:35 +00:00
Alexis Svinartchouk
163684e3a9
Update dashboard login to use the multicontainer SDK
...
Change-Type: patch
2018-03-07 14:46:35 +00:00
Alexis Svinartchouk
f698f561c9
Multicontainer preload: Update resin-preload to 6.0.0-beta4
...
Change-Type: minor
2018-03-07 14:46:35 +00:00
Alexis Svinartchouk
cb207f18a5
Update the keys action to use the multicontainer SDK
...
Change-Type: patch
2018-03-07 14:46:34 +00:00
Alexis Svinartchouk
76a5cdc977
Require multicontainer SDK
...
* require('resin-sdk') => multicontainer SDK
* require('resin-sdk-preconfigured') => 6.15.0 SDK
* all 'resin-sdk' requires replaced with 'resin-sdk-preconfigured'
* resin-sdk-preconfigured TS typings are copy pasted from the current resin-sdk master
The idea is to progressively replace all 'resin-sdk-preconfigured'
requires with 'resin-sdk' (multicontainer sdk) and eventually remove
resin-sdk-preconfigured from package.json.
Change-Type: patch
2018-03-07 14:46:31 +00:00
Tim Perry
c12360daa8
Tweak TS & add missing deps that may cause build failures in some envs
...
Connects-To: #765
Change-Type: patch
2018-02-20 20:26:18 +01:00
Tim Perry
d8aabfd448
Ensure login does not wait for the browser process to close
...
Unclear why, but for some reason this only actually blocked on the
browser on OSX.
Connects-To: #791
Change-Type: patch
2018-02-16 17:28:19 +01:00
Tim Perry
1ef0a1028f
Add support for Balena in local ssh
...
Change-Type: minor
2018-02-06 12:05:28 +01:00
Thodoris Greasidis
d1c773360f
Fix uuid params being parsed a numbers
...
Connects-To: #489
Change-Type: patch
2018-02-01 17:48:01 +02:00
MoranF
33fd70291a
Add 'or mounted resinOS image'
...
Connects-To: #764
Change-Type: patch
2018-01-30 17:30:18 +01:00
Tim Perry
8c29bba108
Don't use the deprecated 'os configure' format in internal calls
...
Change-Type: patch
2018-01-16 17:54:46 +01:00
Tim Perry
0ba96adbbc
Fix breakage in deploy command from recent TS conversion
...
Change-Type: patch
2018-01-11 10:33:08 +01:00
Tim Perry
83a76f7d6f
Start using Prettier
...
Change-Type: patch
2018-01-10 09:23:00 +01:00
Tim Perry
612012aff8
Lots of small TypeScript tweaks & clarifications from review
2018-01-09 17:14:49 +01:00
Tim Perry
6daed83d88
Lint TypeScript and CoffeeScript with resin-lint
...
Change-Type: patch
2018-01-09 17:14:49 +01:00
Tim Perry
f25442c036
Move documentation generation to TypeScript
...
Change-Type: patch
2018-01-09 17:14:49 +01:00
Tim Perry
ffffd447f2
Convert most of utils to TypeScript
...
Change-Type: patch
2018-01-09 17:14:48 +01:00
Tim Perry
4b511c47f0
Start on some easy TS conversion
2018-01-09 17:14:48 +01:00
Andrew Shirley
ce5fd53822
convert windows paths to posix when passing to tar
...
Due to https://github.com/mafintosh/tar-stream/issues/3 , the tar module
needs posix style paths but system-specific paths are being supplied
Change-Type: patch
2018-01-08 22:50:11 +00:00
Tim Perry
34f24fe331
Fix deprecation warning for os configure, when passing a bare UUID
...
Change-Type: patch
2017-12-22 16:07:19 +01:00
Andreas Fitzek
0653769156
fixed example
2017-12-18 17:03:16 +01:00
Andreas Fitzek
3ed319872a
refactored
2017-12-18 17:03:16 +01:00
Andreas Fitzek
ee124671d8
mention Resin OS version requirement
2017-12-18 17:03:16 +01:00
Andreas Fitzek
1b4dabd37c
Add ssh option for direct host OS access
...
Use the `--host` (short `-H`) option in the ssh command to access
the host OS of the device.
Direct host OS is enabled for devices with Resin OS >= 2.7.5.
Change-Type: minor
Connects-To: #736
Signed-off-by: Andreas Fitzek <andreas@resin.io>
2017-12-18 17:03:16 +01:00
Tim Perry
dba8db19cb
Move from open to opn
...
Change-Type: patch
2017-12-18 14:55:07 +01:00
Tim Perry
1c7a0ba4e1
Ensure logout works even with invalid credentials, or if not logged in
...
Before this point, if you had an invalid token, an expired token, or a
token for a different site, you couldn't log out to clear it properly.
Not a big deal, but awkward and messy, and easily fixed.
Change-Type: patch
2017-12-14 15:34:36 +01:00
Tim Perry
bd6cb04a2b
Replace underscore.string usage with lodash
2017-11-27 12:03:04 +02:00
Tim Perry
001c8f9601
Inline the entire resin-cli-auth module
...
This is part of a general push to demodularize any code that isn't
realistically reusable outside resin-cli, to make the codebase easier to
manage and understand. Once this is done, we'll deprecate the original
module itself.
Change-Type: patch
2017-11-27 12:02:57 +02:00
Tim Perry
eb68bb1a1a
Set up TypeScript compilation, and make a small start on converting the CLI
...
Change-Type: patch
2017-11-23 19:28:15 +02:00
Tim Perry
49d78c56fa
Print a deprecation message if you use the old os configure format
2017-11-16 19:51:34 +01:00
Tim Perry
e38a0c0047
Allow os configure
to configure for an app, not just a specific device
...
This moves to --app and --uuid options, and deprecates the previous
format, but doesn't immediately remove it so this is not a breaking
change.
Connects-To: #691
Change-Type: minor
2017-11-16 19:51:34 +01:00
Tim Perry
eef0d9cdbe
Print help even for expected errors
...
Change-Type: patch
2017-11-16 19:51:17 +01:00
Tim Perry
08c40195e5
Make sure everything uses the same shared deviceApiKey option
2017-11-16 19:09:20 +01:00
Tim Perry
87f46cb957
Allow non-interactice config generate for simple network settings
...
Fixes #695
Fixes #410
Change-Type: minor
2017-11-16 15:04:58 +01:00
Tim Perry
f7075d7db9
Fix issue where network settings were not used by config generate
...
Change-Type: patch
2017-11-16 15:03:49 +01:00
Tim Perry
1fafe64579
Remove resin promote command (which has never worked) to wait for larger resinOS provisioning updates
...
This would be a major change if the command was ever successful, but it
appears it hasn't ever worked for any available published version of
ResinOS, so it's not possible that there are users relying on it.
Change-Type: patch
2017-11-15 14:46:22 +01:00
Tim Perry
890a02e2c8
Fix 'cannot read property R_OK of undefined' error in Node >=6 <6.3
...
Change-Type: patch
2017-11-11 12:29:49 +01:00
Tim Perry
a2635f47ee
Avoid AmbiguousApplication errors in device register when an id is used
...
Change-Type: patch
Connects-To: #665
2017-11-09 16:03:06 +01:00
Alexis Svinartchouk
eef192ff68
Allow preloading jetson-tx2 images, improve flasher images detection and remove the --dont-detect-flasher-type-images option.
...
* update resin-preload to 5.0.0
Connects-To: #705
Change-Type: minor
2017-10-27 12:14:27 +02:00
Alexis Svinartchouk
3bca36c277
Allow specifying --commit=latest
for resin preload
...
Connects-To: #700
Depends-On: https://github.com/resin-io/resin-preload/pull/137
Change-Type: patch
2017-10-25 12:09:08 +02:00
Alexis Svinartchouk
19ce4c4cdb
Respect the -dont-check-device-type option, fix error message
...
Connects-To: #696
Change-Type: patch
2017-10-24 16:45:36 +02:00
Tim Perry
2d43e47610
Add device api keys warning on device register and os configure
2017-10-18 13:43:16 +02:00
Tim Perry
a8f1d16b26
Make resin os configure
safe with device keys for all ResinOS versions
2017-10-18 13:43:16 +02:00
Tim Perry
8e95757f47
Make resin config generate
safe for all ResinOS versions
2017-10-18 13:43:16 +02:00
Pagan Gazzard
3fd4f328ab
Added a device api key parameter to the os configure
command.
...
Change-Type: minor
2017-10-18 13:43:16 +02:00
Pagan Gazzard
97eaf174ec
Added a --device-api-key
option to the config generate
command.
...
Change-Type: minor
2017-10-18 13:43:16 +02:00
Pagan Gazzard
2ef56a9a3f
Added a --device-api-key
option to the device register
command.
...
Change-Type: minor
2017-10-18 13:43:16 +02:00
Tim Perry
0e4c6c459c
Fix issue where os download
would always download prod images
...
This also adds support for submodules using resin-sdk shared options
rather than resin-sdk-preconfigured.
Change-Type: patch
Connects-To: #688
2017-10-17 21:20:35 +02:00
Alexis Svinartchouk
119fa78927
Update resin-preload to 4.0.2 to support preloading Edison images
...
Change-Type: patch
2017-10-16 19:27:12 +02:00
Tim Perry
82888de036
Document how to resin deploy
to an app as a collaborator
...
Change-Type: patch
2017-10-13 16:13:46 +02:00
Tim Perry
3df7bfe700
Ensure hostname truly is optional when configuring device images
...
Change-Type: patch
2017-10-09 12:03:31 +02:00
Alexis Svinartchouk
10976bed43
Fix resin preload --splash-image argument handling
...
Connects-To: #677
Change-Type: patch
2017-10-06 11:16:06 +02:00
Tim Perry
eb729d149e
Ensure analytics failures (e.g. from broken tokens) at startup don't break commands
...
Change-Type: patch
2017-10-05 19:03:01 +02:00
Tim Perry
492e35e5c2
Fix lodash bugs in device move & quickstart
...
Change-Type: patch
2017-08-31 20:22:36 +08:00
Tim Perry
2bbd45e867
Use DOCKER_HOST from env if possible, and no connection options are available
...
Connects-to: #625
Change-Type: patch
2017-08-31 15:18:32 +08:00
Alexis Svinartchouk
223432406d
Add a --dont-check-device-type option for resin preload
...
Connects-To: #646
Change-Type: minor
2017-08-25 12:27:38 +02:00
Alexis Svinartchouk
e0d661a1da
Remove resin-preload build filtering workaround.
...
Connects to #640
Change-Type: patch
2017-08-24 12:39:17 +02:00
Alexis Svinartchouk
b07a394592
Add progress bars and spinners for resin preload.
...
Connects-To: #628
Change-Type: minor
2017-08-22 18:42:20 +02:00
Alexis Svinartchouk
c6c2f0bedc
Don't try preloading the same build twice in an image.
...
Connects to #626
Change-Type: patch
2017-08-21 19:24:30 +02:00
Alexis Svinartchouk
115e46573b
Use _.fromPairs instead of _.object which was removed in lodash 4.0.0
...
Connects-To: #636
Change-Type: patch
2017-08-21 10:01:25 +02:00
Alexis Svinartchouk
999f269e36
Fix resin preload when a commit is provided.
...
Connects-To #629
Change-Type: patch
2017-08-18 09:37:37 +02:00
Tim Perry
e204707ee0
Upgrade to lodash v4
2017-08-16 18:58:46 +02:00
Cameron Diver
dc1b3c3239
Allow the looking up of applications with the owner
...
change-type: minor
Connects-to: #594
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-08-14 17:00:33 +01:00
Alexis Svinartchouk
22b3c39b2b
Integrate resin-preload
...
* split docker connection options from lib.utils.docker.appendOptions
Connects to #609
Connects to https://github.com/resin-io/resin-preload/pull/81
Change-Type: minor
2017-08-11 15:43:07 +02:00
Tim Perry
b7e2c2571f
Remove inconsistent (and now unneccesary) 'Tagging image as' message
...
Change-Type: patch
2017-08-11 13:30:44 +02:00
Tim Perry
5daa682183
Provide a helpful warning when Docker is not installed
...
Change-Type: patch
2017-08-10 21:40:05 +02:00
Tim Perry
9e6dd57a5c
Help users using old node versions to upgrade
2017-08-09 15:20:50 +02:00
Eugene Mirotin
22e0b4b9dc
Support the new OS with resin-sample.ignore connection file
2017-07-27 14:01:49 +03:00
Tim Perry
1f0bec39d9
Hide the intro quickstart message for now (until it gets renovated)
2017-07-18 16:57:16 +02:00
Kostas Lekkas
91b3442fc9
Do not explicitly disable ControlMaster option for device SSH connections
...
The backend server that handles `resin ssh` now supports it.
Also removed the option from local ssh connections to devices, where it
basically has no effect (dropbear on devices supports it)
change-type: minor
fixes #568
2017-06-29 11:53:31 +03:00
Tim Perry
e2a165ce80
Show a correct [Info] tag with the deploying progress bar
2017-06-28 18:57:49 +02:00
Tim Perry
ce5685551d
Remove unused function
2017-06-28 18:52:44 +02:00
Tim Perry
15e677e9f1
Refactor stream logger to keep streams as state
2017-06-28 18:52:40 +02:00
Tim Perry
5ccde3db8e
Fix issue when using resin deploy with non-standard stdin
...
This fixes issues when piping `resin deploy` to a non-TTY, and should
solve issues on Windows too.
Connects-To: #539
2017-06-28 18:40:00 +02:00
Jacinto Arias
bea7b2035a
Added --squash option to resin build command
2017-06-26 13:33:50 +02:00
Tim Perry
6182e7c98a
Make Node warning a multi-line string
2017-06-26 13:24:54 +02:00
Tim Perry
410390a9ae
Remove Buffer polyfill, require Node v6+, and print warnings in older versions
2017-06-22 18:59:50 +02:00
Tim Perry
0c6545218a
Merge pull request #574 from resin-io/565-log-node-version
...
Include node version in sentry logs
2017-06-22 18:17:33 +02:00
Tim Perry
18533de3da
Include node version in sentry logs
2017-06-22 14:48:46 +02:00
Tim Perry
2875bd672e
Add a polyfill to fix local configure
in older (<6) Node versions
2017-06-22 13:38:38 +02:00
Cameron Diver
5000febf72
Read ca files and convert to string before passing to the docker daemon
...
Before this commit, the docker daemon would recieve the filename of the
.pem files, which would be interpreted as the body and would fail. This
commit ensures that the actual body of the pem files are sent to the
daemon.
Change-type: patch
Connects-to: #562
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-06-21 11:11:24 +01:00
Tim Perry
8efaec63ff
Merge pull request #559 from resin-io/558-absolute-qemu
...
Make emulated builds reliable in the presence for WORKDIR comands
2017-06-15 19:41:52 +02:00
Tim Perry
b756f2a597
Make emulated builds reliable in the presence for WORKDIR comands
...
Connects-To: #558
Change-Type: patch
2017-06-15 16:36:44 +02:00
Eugene Mirotin
8bdacbb11e
dedupe the shared options
2017-06-15 16:43:12 +03:00
Eugene Mirotin
d2a9aee685
improve available drives listing
...
make the config a path to the file and not the stringified JSON
2017-06-15 16:43:02 +03:00
Eugene Mirotin
77a4c6fdc2
move available-drives command to util
2017-06-15 16:43:02 +03:00
Eugene Mirotin
97480d3aa4
Improve the supported device types listing
2017-06-15 16:39:55 +03:00
Eugene Mirotin
2e7e033bb9
allow prebuilding the device config and reusing it
2017-06-15 16:39:55 +03:00
Eugene Mirotin
ad940824a6
list detected drives with resin os available-drives
2017-06-15 16:39:55 +03:00
Eugene Mirotin
ed83514a2f
allow passing --drive to resin device init
2017-06-15 16:39:55 +03:00
Eugene Mirotin
8d91a5732a
tolerate the --yes param to device init
2017-06-15 16:39:55 +03:00
Eugene Mirotin
1cfe64e4a7
choose version during device init, and list versions with resin os versions
2017-06-15 16:39:55 +03:00
Eugene Mirotin
24388811ad
remove the user requirement for the supported devices list
2017-06-15 16:38:55 +03:00
Tim Perry
c8d51d92e7
Show a clear message immediately as the deploy starts, if we're deploying an image.
...
Change-Type: patch
2017-06-15 12:36:40 +02:00
Tim Perry
5a28d4c92f
Make cleanup reliable if a local build fails
2017-06-15 12:36:40 +02:00
Tim Perry
66a4faeea5
Small improvement to resin deploy docs
...
Change-Type: patch
2017-06-15 12:36:40 +02:00
Tim Perry
a29b40eefa
Move promise.spread to promise.join for clarity (from review)
2017-06-15 12:34:26 +02:00
Tim Perry
cf7bf2cb7d
Fix the gzip level for image uploads to a good perf/size balance
2017-06-15 12:01:22 +02:00
Tim Perry
df3c5ca07f
Gzip while streaming, rather than gzipping the buffer up front
...
Connects-To: #549
2017-06-15 12:01:22 +02:00
Tim Perry
e584dc43f7
Gzip images when uploading in resin deploy
...
Change-Type: minor
Connects-To: #549
2017-06-15 12:01:22 +02:00
Tim Perry
90a5b15dbc
Refactor docker stream buffering before start gzipping
2017-06-15 12:01:22 +02:00
Tim Perry
37ec11bf25
Ensure emulated builds use the correct relative path to qemu
...
Change-Type: patch
Connects-To: #553
2017-06-14 20:50:24 +02:00
Cameron Diver
f2862f7fe2
Add emulated build option to resin build
...
This commit adds the ability to run a Docker build for an architecture
which is not the host architecture, using qemu-linux-user. Currently
this is only supported for linux.
Added:
* Installation of qemu which supports propagated execve flags
* Copying of qemu binary into the build context
* Transposing the given Dockerfile to use the qemu binary
* Intercepting of the build stream, so the output looks *almost* exactly
the same.
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-06-14 12:06:03 +01:00
Gergely Imreh
974be5cc13
resin build: fix mismatch in command line argument signature
...
The command line arg was taking `devicetype`, but the rest of the code
uses `deviceType`. Thus it was impossible to specify a device type
in practice to build a `Dockerfile.template`.
Change-type: patch
Signed-off-by: Gergely Imreh <imrehg@gmail.com>
2017-05-30 10:34:32 +01:00
Cameron Diver
abc183a729
Change update check interval to once a day
...
This gives the user enough notice to stay well updated, but won't spam
them if they're using resin-cli frequently.
Connects-to: #485
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-05-23 17:29:23 -07:00
Tim Perry
78ab47b584
Fix breaking bug in resin local ssh
2017-05-22 20:49:34 +02:00
Eugene Mirotin
2d729a82a0
fix valid-email path
2017-05-20 00:19:31 +03:00
Eugene Mirotin
4b5240d8cd
check for proxytunnel presence
2017-05-19 02:10:14 +03:00
Eugene Mirotin
6ae59654a0
fix
2017-05-19 01:44:30 +03:00
Eugene Mirotin
b88f7a993c
escape params
2017-05-19 01:25:01 +03:00
Eugene Mirotin
880fb43fd9
some fixes
2017-05-18 15:12:52 +03:00
Eugene Mirotin
bc79832e1d
resin ssh proxy support
2017-05-12 18:09:43 +03:00
Tim Perry
1d06bc1b4f
Merge pull request #524 from resin-io/520-include-command-line
...
Include full command line arguments in Sentry errors
2017-05-12 13:27:53 +02:00
Tim Perry
88d5ec0c94
Merge pull request #525 from resin-io/508-fix-docs
...
Get docs and the code generating them back in sync
2017-05-12 13:27:35 +02:00
Tim Perry
a5b535753f
Include the username used in Sentry errors, to help us debug them
2017-05-12 12:02:26 +02:00
Tim Perry
6e5e4bd8a6
Get docs and the code generating them back in sync (from #515 , #508 )
2017-05-12 12:01:37 +02:00
Tim Perry
6e034acf23
Include full command line arguments in Sentry errors, to help us debug them
2017-05-12 11:48:43 +02:00
Akis Kesoglou
654ec75598
Renamed build arg option to —buildArg/-B
2017-05-11 14:20:24 +03:00
Akis Kesoglou
66876a2c85
Add ability to specify built-time variables for local build
...
Change-Type: patch
2017-05-11 14:14:43 +03:00
Akis Kesoglou
fc5640c79d
Draw a progress bar for upload progress
...
Change-Type: patch
2017-05-10 22:28:51 +03:00
Kostas Lekkas
c12b59b978
Show device dashboard url in 'resin device' output
...
change-type: minor
2017-05-08 13:51:06 +03:00
Cameron Diver
404348f92e
Highlight cache usage in resin build
...
This commit will highlight the usage of the cache when doing a docker
build via `resin build`, which not only helps the user understand what
the build is doing, but also achieves more parity with the cloud
builder.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-05-04 14:09:23 +01:00
Cameron Diver
d249ac168a
Fix the not-enough-unicorns bug
...
Add successful build indicator in the form of a unicorn.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-05-04 13:18:25 +01:00
Cameron Diver
3ff5880ae3
Allow resin-cli deploy to also upload build logs if present
...
If build is ran through `resin deploy`, then logs will be stored and
uploaded to the database, where the dashboard can display them
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-05-04 13:11:50 +01:00
Eugene Mirotin
8866f47805
proxy support
2017-05-01 14:00:50 +03:00
Eugene Mirotin
3df30c8b5a
fix ssh proxy URL retrieval
2017-04-27 16:20:32 +03:00
Cameron Diver
39b171fd2a
Add documentation for new resin build and resin deploy commands
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-04-26 13:38:35 +01:00
Cameron Diver
f50ae65560
Add cloud-builder builder output parity to build and deploy
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-04-25 13:13:11 +01:00
Cameron Diver
4fa1a9c1c6
Share nocache and tag build options between build and deploy
...
`resin build` had access to the `--nocache` and `--tag` options for
building with docker, but `resin deploy` did not. This commit adds the
options to the shared dockerUtils.appendOptions function.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-04-24 20:05:18 +01:00
Cameron Diver
9050cb1975
Respect source parameter in resin build
...
Upon changing the name of the source parameter from `context`, some
places weren't changed, this commit fixes that.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-04-24 16:41:15 +01:00
Cameron Diver
d3772386bf
Add ability to build and deploy image locally using resin-cli
...
Using `resin build` a user can now build an image on their own docker
daemon. The daemon can be accessed via a local socket, a remote host and
a remote host over a TLS socket. Project type resolution is supported.
Nocache and tagging of images is also supported.
Using `resin deploy` a user can now deploy an image to their fleet. The
image can either be built by `resin-cli`, plain Docker, or from a remote
source.
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2017-04-23 14:31:45 +01:00
Eugene Mirotin
225d3acf9e
log unhandled exceptions
2017-04-21 13:10:30 +03:00
Eugene Mirotin
380a94f0f8
update to modules that have native node v4 support
2017-04-14 14:48:19 +03:00
Eugene Mirotin
77b30409bb
update resin-device-init to pull in etcher-image-write
2017-03-28 14:37:13 +03:00
Eugene Mirotin
137473353c
remove username request from the signup process
2017-03-28 14:37:11 +03:00
Eugene Mirotin
08b3db717e
use individual methods promisification instead of promisifyAll
2017-03-27 12:14:55 +03:00
Eugene Mirotin
6cf32e445a
isolate the sudo-runnable command
2017-03-27 11:43:35 +03:00
Eugene Mirotin
cba105a41b
suppress warning during the device init OS download
2017-03-23 15:27:54 +03:00
Tim Perry
69dff0c603
Merge pull request #450 from resin-io/420-add-sentry
...
Add sentry error tracking
2017-03-23 13:11:15 +01:00
Tim Perry
f05b04a6a1
Move sentry DSN to config
2017-03-23 13:10:15 +01:00
Tim Perry
88d8112402
Add sentry error tracking
2017-03-23 12:59:42 +01:00
Kostas Lekkas
f940d7428c
Point to forums instead of gitter
...
change-type: patch
2017-03-23 12:19:59 +02:00
Eugene Mirotin
b629c3601e
implement the version menu
2017-03-22 15:45:05 +03:00
Eugene Mirotin
3619b2f117
allow specifying the version
2017-03-22 13:28:46 +03:00
Eugene Mirotin
4231f50c4c
download the non-preview version by default
2017-03-22 12:55:55 +03:00
Eugene Mirotin
95fff4b7c4
build bare modules
2017-03-22 12:46:06 +03:00
Eugene Mirotin
b3aa3d35f7
fix resin local push help message and lint errors
2017-03-21 12:06:05 +03:00
Kostas Lekkas
73dd625ede
Require superuser for scan commands, also introduce docker timeout
2017-03-10 17:59:54 +00:00
Kostas Lekkas
08db3ace03
Bump resin-sync@7.0.0: use experimental rds which requires superuser permissions
2017-03-10 17:59:54 +00:00
Kostas Lekkas
7ad468dc54
Implement 'resin local stop'
2017-03-09 23:49:56 +00:00
Kostas Lekkas
7aee4d6d7f
Filter our devices that do not expose docker socket
2017-03-09 20:54:11 +00:00
Kostas Lekkas
53bf314820
Remove app create from primary commands
2017-03-08 23:41:35 +00:00
Kostas Lekkas
1ae1a15259
Implement 'resin local'
2017-03-08 23:41:35 +00:00
Kostas Lekkas
20ed8c9169
Implement 'resin local push'
2017-03-08 23:41:32 +00:00
Kostas Lekkas
977e3fb0ff
Implement 'resin local ssh'
2017-03-08 23:41:29 +00:00
Kostas Lekkas
c5df32f952
Implement 'resin local scan'
2017-03-08 22:43:23 +00:00
Kostas Lekkas
f5cd3375f2
Implement 'resin local promote'
2017-03-08 22:43:23 +00:00
Kostas Lekkas
3b4c8f2a01
Implement 'resin local logs'
2017-03-08 22:43:23 +00:00
Kostas Lekkas
356042557e
Implement 'resin local flash'
2017-03-08 22:43:21 +00:00
Kostas Lekkas
00753a5776
Implement 'resin local configure'
2017-03-08 18:43:34 +00:00
Kostas Lekkas
fb06249b08
resin ssh: handle undefined uuid parameter
...
change-type: patch
2017-03-03 17:25:51 +02:00
Kostas Lekkas
2fde6241c2
Support resin sync for remote resin.io AUFS devices
...
change-type: minor
2017-02-01 15:52:17 +02:00
Tim Perry
b629ee6164
Move to preconfigured resin sdk
2017-01-25 19:33:43 +01:00
Tim Perry
7a4de5357e
Fix some issues with Resin-SDK usage after initial testing
2017-01-25 19:25:12 +01:00
Eugene Mirotin
7a0e8beb07
update for the new resin.models.device.generateUniqueKey
2017-01-25 19:25:12 +01:00
Eugene Mirotin
f17cbb1205
use the new SDK factory
2017-01-25 19:25:12 +01:00
Kostas Lekkas
d473509675
Docs: fix requirements for resin ssh and resin sync
...
change-type: patch
2017-01-18 18:04:37 +02:00
Juan Cruz Viotti
6954da4a24
Merge pull request #407 from resin-io/add-shutdown-command
...
Actually add the shutdown command
2016-11-01 12:42:21 -04:00
Pablo Carranza Velez
c18e8f1dbd
Actually add the shutdown command
2016-11-01 12:42:29 -03:00
Juan Cruz Viotti
01cad3c048
Fix Boolean options can't have parameters
error
...
This error was introduced as part of
`9cf42462c029e038e09efc961736946be8bfcb9b`, since the `forceUpdateLock`
option being used in the `reboot` command contains a `parameter`
property despite being declared a boolean.
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
2016-10-28 12:11:57 -04:00
Pablo Carranza Velez
9cf42462c0
Add a device shutdown command, and allow forcing reboot and shutdown
2016-10-27 18:39:31 -03:00
Juan Cruz Viotti
c6e669fa6b
Bring back devices supported
command
...
Fixes: https://github.com/resin-io/resin-cli/issues/394
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
2016-09-25 19:49:06 -04:00
Kostas Lekkas
16a1741374
resin sync: always display device selection dialog when uuid is not passed as an argument
...
Closes #375
2016-09-15 13:09:25 +03:00
Kostas Lekkas
e0a2217b94
resin sync/ssh: always display selection dialog, even for a single online device
...
Closes #373
2016-09-15 13:09:25 +03:00
Kostas Lekkas
7bd8a683b2
resin sync: remove quotes from --source/--destination help as it implies they're required
...
Closes #372
2016-09-15 13:09:25 +03:00
Kostas Lekkas
6b00bbc73a
resin sync: add --after option
2016-09-15 13:09:25 +03:00
Kostas Lekkas
42d0b52df7
resin ssh: disable ControlMaster ssh option
...
This change was necessary because our ssh gateway does not
support ControlMaster mode.
Closes #366
2016-09-15 13:09:25 +03:00
Kostas Lekkas
97c768edcd
resin sync: add --skip-gitignore option. Improve help section wording
2016-09-15 13:09:25 +03:00
Kostas Lekkas
10a0924cd7
resin sync: load uuid from .resin-sync.yml if possible
2016-09-15 13:09:25 +03:00
Kostas Lekkas
fdb8bf6967
resin sync: add --destination option and require --source if .resin-sync.yml is missing
...
Closes #359
2016-09-15 13:09:25 +03:00
Kostas Lekkas
af8d20ea3f
resin sync/ssh: only accept uuid as destination
...
Also change --port option alias to '-p' from '-t'
2016-09-15 13:09:25 +03:00
Juan Cruz Viotti
8b485b5ad5
Attempt to get device type from the image first partition
...
New images will ship a `device-type.json` file in the first partition,
which we can use instead of querying the API for certain configuration
and initialisation commands.
If the file is not found, or is malformed, we still fallback to the API.
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
2016-09-14 11:06:17 -07:00
Praneeth Bodduluri
cb386d15aa
Add OS version to devices,device commands and Supervisor Version to devices command
2016-08-10 18:42:34 +05:30
Praneeth Bodduluri
7b0415a270
Switch to more human-like command name and follow convention from dashboard
2016-08-09 22:44:40 +05:30
Praneeth Bodduluri
3adb8f19bd
Implement device enableDeviceUrl/disableDeviceUrl/hasDeviceUrl/getDeviceUrl
2016-08-09 18:45:24 +05:30
Kostas Lekkas
a70e38ef12
Add global --help option
2016-07-29 15:32:12 +03:00
Kostas Lekkas
81a6843c93
resin ssh: Implement device inference and autoselect if there is a single one
2016-07-07 21:51:53 +03:00
Kostas Lekkas
b672ff1fa1
resin sync: change argument/help to a more meaningful 'resin sync [destination]'
2016-07-07 20:37:11 +03:00
Kostas Lekkas
68808e760e
resin sync: filter out offline devices in interactive choosing dialog
2016-07-07 19:12:39 +03:00
Kostas Lekkas
6d1d4dc173
Support verbose flag for resin sync
2016-06-22 17:59:14 +03:00
Kostas Lekkas
12854db923
Support --verbose/-v flag in resin ssh
...
Closes https://github.com/resin-io/resin-cli/issues/353
2016-06-22 14:57:43 +03:00
Kostas Lekkas
29c20e32f6
Reword config help instructions
...
Closes #351
2016-06-14 19:08:25 +03:00
Juan Cruz Viotti
995194fe2c
Merge pull request #346 from resin-io/misc/ssh-sync-cmd-exe-warning
...
Clarify that sync and ssh only support cmd.exe on Windows
2016-05-19 10:17:28 -04:00
Juan Cruz Viotti
a90d568d5c
Clarify that sync and ssh only support cmd.exe on Windows
...
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-05-19 10:10:45 -04:00
Kostas Lekkas
a265063fa1
Change resin ssh loglevel from QUIET to ERROR
2016-05-19 16:52:23 +03:00
Juan Cruz Viotti
b061644b19
Make resin ssh work in Windows cmd.exe
...
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-05-06 13:12:55 -04:00
Juan Cruz Viotti
9a515ef4e3
Return control to capitano at the end of the ssh command
...
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-04-26 12:37:39 -04:00
Kostas Lekkas
42bfb3b0cc
Implement resin ssh <uuid> command
2016-04-26 16:00:54 +03:00
Juan Cruz Viotti
4a05ce3f53
Attempt to infer the device uuid in resin sync
...
This PR adds functionality to `resin sync` to try to infer what the
device uuid is as follows:
- If the argument to `resin sync` is an app, get all the devices from
that application. If there is only one, auto-select it, otherwise show
an interactive drive selection widget.
- If the argument to `resin sync` is a uuid, use it directly, without
trying to infer anything.
- If no argument is passed to `resin sync`, display an interactive
selection widget showing all your devices from all your applications.
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
2016-04-25 08:57:19 -04:00
Kostas Lekkas
b5ec49dda1
Remove resin sync 'exec after rsync' feature as it's not supported by
...
ssh gateway
2016-04-25 14:47:05 +03:00
Juan Cruz Viotti
ca40d7ca65
Log CLI events based on original command signature
...
Currently we log a CLI event with the passed command, however this might
include usr params, like a uuid, and therefore cause thousands of
different event names in Mixpanel.
2016-03-29 11:27:53 -04:00
Juan Cruz Viotti
e9b8c38eeb
Integrate sync plugin in the Resin CLI
2016-03-28 09:21:25 -04:00
Juan Cruz Viotti
2d8cf7c479
Allow generating a config.json from an application with config generate
...
Currently, `config generate` requires a device uuid. The command now
accepts either a uuid or an application name, and generates a
config.json accordingly.
2016-03-21 15:42:54 -04:00
Juan Cruz Viotti
3a839c947e
Upgrade resin-device-config to v3.0.0
2016-03-21 15:01:59 -04:00
Juan Cruz Viotti
03d7520de2
Implement config inject command
...
This command allows to user to inject a whole `config.json` file to a
provisioned device.
2016-03-17 16:07:19 -04:00
Juan Cruz Viotti
c5692f8b13
Only throw "Invalid 2FA code" if we're sure that's the cause
...
Currently, such error will be thrown when
`resin.auth.twoFactor.challenge()` rejects, but an invalid code is not
the only thing this function can reject for.
2016-03-17 15:37:02 -04:00
Juan Cruz Viotti
30663b0301
Force update alert to be always shown
...
If `updateCheckInterval` has any meanginful value, the alert will be
shown one out of ten times, or something like that, making the user
likely to miss updates.
The underlying issue is that `update-notifier`, if it detects a cached
update notification, it deletes it, and only attempts to show it back if
`updateCheckInterval` is greater than `Date.now() - lastUpdateCheck`.
2016-03-08 09:23:03 -04:00
Juan Cruz Viotti
6405c6bb6f
Implement device reboot command
...
Fixes: https://github.com/resin-io/resin-cli/issues/319
2016-03-04 09:38:11 -04:00
Juan Cruz Viotti
84ed20d3ec
Implement config generate command
...
This command allows the user to generate a config.json file and either
print it to stdout or save it to a file.
2016-02-26 22:37:15 -04:00
Juan Cruz Viotti
db3de2137b
Remove hardcoded readdir path
...
This was probably used for debugging at some point and got commited
accidentally.
2016-02-19 08:35:10 -04:00
Juan Cruz Viotti
356d2ef6b2
Inject analytics in Capitano
2016-02-12 14:34:16 -04:00
Juan Cruz Viotti
d72750de65
Show if a device is online in devices command
...
Fixes: https://github.com/resin-io/resin-cli/issues/312
2016-02-10 08:51:00 -04:00
Juan Cruz Viotti
6c677fe8cd
Refer to device uuids in command help
...
Currently the CLI asks for a device "name" on device options while it
actually needs a "uuid".
Fixes: https://github.com/resin-io/resin-cli/issues/309
2016-01-28 09:10:11 -04:00
Juan Cruz Viotti
35bba04b16
Show parsed device status in device command
2016-01-26 12:16:55 -04:00
Juan Cruz Viotti
40f015de93
Fix grammar issue: Administration -> Administrative
2016-01-25 09:00:04 -04:00
Juan Cruz Viotti
bee523828a
Improve awaitDevice success message
2016-01-25 08:59:09 -04:00
Juan Cruz Viotti
a346c3f043
Add information on how to login on user permission error
2016-01-21 23:07:08 -04:00
Juan Cruz Viotti
ebefd816b6
Show shorter uuids when listing devices
2016-01-21 10:26:13 -04:00