Paulo Castro
06f7683837
Refactor dependency import in utils/helpers.ts for performance
...
Change-type: patch
2021-04-13 22:14:13 +01:00
Paulo Castro
d50d18d492
push, logs: Fix parsing of local mode device logs (NDJSON stream)
...
Resolves : #2185
Change-type: patch
2021-04-09 23:58:04 +01:00
Paulo Castro
37c2880996
push: Fix docker-compose.dev.yml serialization ("should be object,null" error)
...
Change-type: patch
2021-03-20 22:17:20 +00:00
Paulo Castro
bcea5193a1
build, deploy: Fix error handling when QEMU download fails
...
Change-type: patch
2021-03-06 16:10:33 +00:00
Scott Lowe
f3d750a024
Add support for docker-compose dev overlay in local pushes
...
Change-type: minor
Signed-off-by: Scott Lowe <scott@balena.io>
2021-02-09 13:06:03 +01:00
Kyle Harding
15fc805f89
build/deploy: fix emulated builds to use fully static qemu binaries
...
Avoid possible situations where the local glibc may not support
the required syscalls for arm emulation during build/deploy.
Change-type: patch
Conneted-to: https://github.com/balena-io/qemu/issues/21
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-02-06 09:50:46 -05:00
Scott Lowe
e47fd0c887
Add command device local-mode
...
Change-type: minor
Resolves : #1304
Signed-off-by: Scott Lowe <scott@balena.io>
2021-02-04 15:36:32 +00:00
Scott Lowe
e6b85c9cf8
Modify push to pass app slug to builder
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2021-02-04 10:41:00 +01:00
Kyle Harding
9636985ee7
build/deploy: Update QEMU to speed up emulated builds
...
QEMU v5 has quite a few improvements over v4, and the speed
difference when emulating arm is quite noticible.
We tested this with, and without, our single-core limitation
patch and have not been able to reproduce the stability
issues we were seeing in v4 so the patch was removed in
this release.
Change-type: patch
Connects-to: https://github.com/balena-io/balena-io/issues/2340
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-01-29 09:26:34 -05:00
Matthew McGinn
53926067ca
logging: note that the device supervisor version is operative
...
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2021-01-22 16:53:15 -05:00
Balena CI
7ae83d9ce5
tls: Use TLS for tunnel connection
...
Switch to using the exposed tunnelUrl and TLS for making
tunnels to the device, to improve security.
Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2021-01-20 21:18:23 +00:00
Marios Balamatsias
8d56fe9678
deploy: Add --release-tag flag
...
Now we can do:
`balena deploy myApp myApp/myImage --release-tag key1 value1`
Refactor and reuse the logic that parses and applies the
release tag options from the push command to the deploy
command.
Resolves : #892
Change-type: minor
Signed-off-by: Marios Balamatsias <mbalamatsias@gmail.com>
2021-01-15 00:46:39 +02:00
Matthew McGinn
e71184ed3a
docs: americanize the spelling of words in sourced markdown
...
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2021-01-13 10:12:24 -05:00
Scott Lowe
aeff5997d0
Refactor out command internal scandevices
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2021-01-06 15:00:18 +01:00
Scott Lowe
27e2b03702
Update push command for organizations
...
Change-type: patch
Connects-to: #2119
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-23 16:03:52 +01:00
Marios Balamatsias
34557e35ee
push: Add --release-tag flag
...
You can have 0 or multiple keys without values,
if you use values then you should have as many
values as you have keys. If you don't want to set
a value for a key set its value to "" (bash, cmd.exe)
or '""' (powershell).
Connects-to: #892
Change-type: minor
Signed-off-by: Marios Balamatsias <mbalamatsias@gmail.com>
2020-12-22 17:10:10 +02:00
Scott Lowe
584aa745f7
Improve id disambiguation for tag commands
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-18 12:52:18 +01:00
Scott Lowe
9d2884aab7
Update commands ssh, tunnel to support orgs
...
Change-type: patch
Connects-to: #2119
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-17 13:01:53 +01:00
Scott Lowe
c898747468
Update various commands to support organizations
...
Change-type: minor
Connects-to: #2119
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-15 16:06:25 +01:00
Scott Lowe
611f59a0da
Add organizations support to app create command
...
Change-type: minor
Connects-to: #2119
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-15 14:58:17 +01:00
Scott Lowe
a11f9ec705
Add orgs command
...
Change-type: minor
Connects-to: #2119
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-11 12:48:44 +01:00
Scott Lowe
665e0cf9d7
Add organizations support to app rename command
...
Change-type: minor
Connects-to: #2119
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-10 13:57:42 +01:00
Paulo Castro
07666e953f
Livepush: Extend CTRL-C availability (don't ignore CTRL-C during image build)
...
Change-type: patch
2020-12-09 22:49:47 +00:00
Paulo Castro
54731c2d20
Livepush, logs: Automatically reconnect on 'Connection to device lost'
...
Change-type: minor
2020-12-09 20:43:14 +00:00
Paulo Castro
d00db5ea8c
logs: Fix CTRL-C ignored on Windows (PowerShell, MSYS, Git for Windows)
...
Change-type: patch
2020-12-09 20:43:14 +00:00
Paulo Castro
5497835728
Livepush: Fix process not exiting on "Connection to device lost"
...
Resolves : #1828
Change-type: patch
2020-12-09 20:43:14 +00:00
Marios Balamatsias
a19132d3bf
errors: Add expected errors for device deactivation
...
Change-type: patch
Signed-off-by: Marios Balamatsias <mbalamatsias@gmail.com>
2020-12-09 14:52:51 +02:00
Scott Lowe
3edf7a038f
Remove remaining v12 switches
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-08 11:00:36 +01:00
Marios Balamatsias
5eaa4cfb9f
common-flags: Add default false on yes, force and verbose flags
...
Change-type: patch
Signed-off-by: Marios Balamatsias <mbalamatsias@gmail.com>
2020-12-07 13:17:51 +02:00
Paulo Castro
2bf59530c4
docs: Add references to the masterclasses in the CLI help and README
...
Change-type: patch
2020-11-19 18:13:45 +00:00
Paulo Castro
a4fd7d6118
Fix debug message logic (don't suggest --debug if it is already being used)
...
Change-type: patch
2020-11-19 18:13:45 +00:00
Paulo Castro
4768f76385
push: Reduce memory usage when filtering files with dockerignore
...
Change-type: patch
2020-11-19 14:24:54 +00:00
Paulo Castro
d6b3249274
Livepush: Refactor dockerignore filtering and add test cases
...
Change-type: patch
2020-11-19 14:24:54 +00:00
Josh Bowling
02a5466746
Livepush: Ignore paths set in .dockerignore files
...
Change-type: minor
Signed-off-by: Josh Bowling <josh@balena.io>
2020-11-19 14:24:44 +00:00
Scott Lowe
46249e319b
Improve application-identifier disambiguation
...
Change-type: patch
Resolves : #2077
Signed-off-by: Scott Lowe <scott@balena.io>
2020-11-06 09:39:36 +01:00
Paulo Castro
7f000ee8c3
ssh: Fix "Found more than one container with a service name <name>"
...
Change-type: patch
2020-10-28 01:06:54 +00:00
Scott Lowe
c48564e85a
Remove need for hardcoded list of command ids
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-10-27 10:36:49 +01:00
Paulo Castro
709f009f9b
config generate: Fix "Application is ambiguous" when app slug is used
...
Connects-to: #1893
Change-type: patch
2020-10-25 16:52:31 +00:00
Paulo Castro
099d755900
Fix typing (don't assume that 'docker-toolbelt' uses Bluebird promises)
...
Change-type: patch
2020-10-21 14:25:40 +01:00
Paulo Castro
3199f15662
build/deploy: Fix --buildArg option with docker-compose.yml projects
...
Resolves : #1053
Change-type: patch
2020-10-21 13:02:47 +01:00
Paulo Castro
4c8dc29946
build/deploy: Fix image size notice at end of build
...
Change-type: patch
2020-10-21 13:02:47 +01:00
Paulo Castro
2b22fb89f1
Convert more code to Typescript (compose.js)
...
Change-type: patch
2020-10-21 13:02:47 +01:00
Paulo Castro
478b5dd363
Revert styling of "balena CLI" as "balenaCLI"
...
Change-type: patch
2020-10-21 00:07:46 +01:00
Paulo Castro
d0e4fa0e59
Refactor initialization code (delete app-oclif.ts and app-common.ts)
...
Change-type: patch
2020-10-11 00:45:53 +01:00
Paulo Castro
cf376316bc
Support BALENARC_NO_SENTRY env var to disable Sentry.io error reporting
...
Change-type: minor
2020-10-10 00:45:55 +01:00
Paulo Castro
6133bb2096
push: Fix accidental rename of -e
(emulated) option
...
Accidentally renamed during oclif conversion in CLI v12.9.7.
Change-type: patch
2020-10-01 23:49:14 +00:00
Paulo Castro
b1897a512d
Style "balena CLI" as "balenaCLI" and "balena cloud" as "balenaCloud"
...
Change-type: patch
2020-09-18 23:27:24 +01:00
Scott Lowe
abdaf0043f
Add new command device restart
...
Change-type: minor
Resolves : #1542
Signed-off-by: Scott Lowe <scott@balena.io>
2020-09-18 12:39:53 +02:00
Scott Lowe
9805854eab
Update registry secrets example URL
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-09-10 17:33:57 +02:00
Scott Lowe
0ca1faba09
Add ability to specify poll interval in join command
...
Change-type: minor
Resolves : #1432 #1697 #1670
Signed-off-by: Scott Lowe <scott@balena.io>
2020-09-09 14:24:45 +02:00
Paulo Castro
93e18bea27
push (local device): Add --pull option to force pulling base images again
...
Connects-to: #1584
Change-type: minor
2020-09-09 00:16:22 +01:00
Paulo Castro
73f49765ec
push: Reformat help output to fit in 80 characters
...
Connects-to: #1858
Change-type: patch
2020-09-09 00:16:21 +01:00
Scott Lowe
d56fec6e36
Convert help to oclif, remove capitano
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-09-07 14:13:32 +02:00
Paulo Castro
d1539f405a
build, deploy: Add --pull option to force pulling base images again
...
Resolves : #1584
Change-type: minor
2020-09-04 10:28:36 +01:00
Pagan Gazzard
787966a0b6
Update to typescript 4.0
...
Change-type: patch
2020-08-27 11:50:57 +01:00
Alexis Svinartchouk
99a478ee39
Fix device UUID parsing for 'balena tunnel'
...
Change-type: patch
2020-08-26 15:10:00 +02:00
Scott Lowe
8cb413c1c9
Convert deploy command to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-08-22 11:58:10 +02:00
Paulo Castro
af1c4b0d03
build: Fix --buildArg and --cache-from options (broken since v12.9.9)
...
Change-type: patch
2020-08-14 23:12:12 +01:00
Pagan Gazzard
e021ad9af6
Update balena-sdk to 15.x
...
Update balena-config-json from 4.0.0 to 4.1.0
Update balena-image-manager from 7.0.1 to 7.0.3
Update balena-preload from 10.2.0 to 10.2.4
Update balena-sdk from 14.8.0 to 15.2.1
Update balena-sync from 11.0.0 to 11.0.2
Change-type: patch
2020-08-11 17:53:33 +01:00
Pagan Gazzard
497c8cd49b
Lazy load tar-stream
...
Change-type: patch
2020-08-10 12:01:55 +01:00
Pagan Gazzard
e1c42405a1
Update balena-sdk to 14.x
...
Update balena-sdk from 13.6.0 to 14.8.0
Change-type: patch
2020-08-07 21:06:07 +00:00
Pagan Gazzard
6ca7c34e57
Reduce bluebird usage
...
Change-type: patch
2020-08-05 09:41:15 +01:00
Thodoris Greasidis
a52a623fdf
Update balena-release to v3
...
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-08-04 15:35:29 +00:00
Pagan Gazzard
ddb87f403d
Fix performance regressions from #1967
...
Change-type: patch
2020-08-03 11:04:36 +01:00
Pagan Gazzard
9aacb7ec56
Remove some bluebird usage
...
Change-type: patch
2020-07-31 10:33:51 +00:00
Scott Lowe
09b8cc495c
Convert command build
to typescript, oclif, and refactor
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-30 15:53:55 +02:00
Scott Lowe
3fc25cd745
Convert os build-config
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-28 15:33:28 +00:00
Paulo Castro
9ed3bb2f70
os download: Improve warning message re default balenaOS version
...
Change-type: patch
2020-07-27 20:23:51 +00:00
Scott Lowe
b7c74598b2
Convert os initialize
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-16 16:06:41 +02:00
Nick
edaf76e329
device move: Add ability to move multiple devices in one command
...
Change-type: minor
2020-07-15 08:26:31 -06:00
Scott Lowe
1c17572db0
Convert os download
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-14 23:42:39 +02:00
Nick
d9cf95149a
balena ssh: Improve error message in case of misconfigured SSH keys
...
Change-type: patch
2020-07-12 19:39:49 -06:00
Pagan Gazzard
d6f1328238
Be lazier with imports in oclif actions
...
Change-type: patch
2020-07-09 15:03:38 +01:00
Pagan Gazzard
eea8c83bff
Enforce and improve lazy loading of resin-cli-form
...
Change-type: patch
2020-07-09 10:51:10 +01:00
Paulo Castro
f326994f8e
build/deploy/preload: Accept DOCKER_CERT_PATH and DOCKER_TLS_VERIFY env vars
...
This allows the build and deploy commands to work with 'docker-machine'
(the preload command still does not work with docker-machine, though).
Resolves : #1844
Change-type: minor
2020-07-06 23:07:02 +01:00
Scott Lowe
e20265518d
Modify runCommand to accept args array instead of string
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-06 12:49:37 +02:00
Thodoris Greasidis
497023965f
config generate, os configure: Add support for mixed arch fleets
...
Resolves : #1914
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-07-03 22:03:18 +00:00
Scott Lowe
402e48c8f8
Fix cross-framework nested commands
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-02 20:33:05 +02:00
Pagan Gazzard
178c3f9154
Remove all module level bluebird usage from eagerly loaded modules
...
Change-type: patch
2020-07-02 14:00:26 +01:00
Paulo Castro
2307a15b10
balena ssh: Refactor error handling and test cases
...
Connects-to: #1896
Change-type: patch
2020-07-02 00:50:32 +01:00
Pagan Gazzard
303c3af061
Switch from Bluebird.join to native version
...
Change-type: patch
2020-06-30 23:59:18 +01:00
Pagan Gazzard
984d1a3fd6
Switch from new Bluebird to native version
...
Change-type: patch
2020-06-30 23:59:17 +01:00
Pagan Gazzard
d4f288394b
Switch from Bluebird.map to native version
...
Change-type: patch
2020-06-30 23:59:11 +01:00
Pagan Gazzard
5e94f3f9c9
Add typing info to requires wherever possible
...
Change-type: patch
2020-06-30 23:21:39 +01:00
Pagan Gazzard
2a3479c7c6
Stop importing specific lodash files
...
We already import the entirety of lodash so importing the individual
files just adds time to also import the single file versions
Change-type: patch
2020-06-30 13:52:08 +01:00
Paulo Castro
eaf61d801c
Add --multi-dockerignore (-m) option to push/build/deploy commands
...
Connects-to: #1870
Change-type: minor
2020-06-28 23:55:30 +01:00
Scott Lowe
1308b64c67
Recategorize some errors as expected.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-26 13:57:39 +02:00
Pagan Gazzard
667358b23e
Import just strip-tags from common-tags to reduce startup time
...
This saves ~100ms for me on startup with no fast-boot cache and ~50ms
with a fast-boot cache
Change-type: patch
2020-06-25 22:56:43 +01:00
Pagan Gazzard
b114697cab
Use native fs promises rather than promisify or mz
...
Change-type: patch
2020-06-24 18:13:48 +01:00
Pagan Gazzard
6dce5c1212
Use import type
where possible to explicitly import only type info
...
Change-type: patch
2020-06-24 13:46:27 +00:00
Pagan Gazzard
420a282bea
Standardize all references to Bluebird
...
Change-type: patch
2020-06-24 12:38:09 +00:00
Paulo Castro
11d1a3f5a0
Add runtime warning for unused .dockerignore files
...
Change-type: patch
2020-06-22 01:14:27 +01:00
Scott Lowe
ab673f884a
Convert device commands to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-18 13:59:41 +02:00
Paulo Castro
146de39b83
Add --gitignore (-g) option to push/build/deploy commands for v11 compatibility
...
Change-type: minor
2020-06-17 14:18:23 +01:00
Paulo Castro
c619bd4b99
Update 'balena-lint' and apply new prettier rules
...
Change-type: patch
2020-06-15 23:53:07 +01:00
Paulo Castro
7e1d58546c
Add tests for standalone executable via proxy server
...
Change-type: patch
2020-06-15 23:53:04 +01:00
Paulo Castro
a7b78d2ccd
Turn v12 feature switch on
...
See https://github.com/balena-io/balena-cli/issues/1770
Change-type: major
2020-06-15 23:52:58 +01:00
Rich Bayliss
d967b942e0
Allow setting the initialDeviceName
...
Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-06-11 16:02:17 +01:00
Scott Lowe
1569915fae
v12 preparations: Add feature switch for default eol-converson
...
Change-type: patch
Connects-to: #1770
2020-06-05 16:37:44 +01:00
Paulo Castro
626d328194
v12 preparations: Add feature switch for build/deploy --logs
option
...
Connects-to: #1770
Change-type: patch
2020-06-02 16:42:51 +01:00