summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2018-10-18Unset LD_LIBRARY_PATH before executing commands (exec api)Sebastien Douheret2-11/+21
New environment-setup-*-agl-linux file, used to set environment variables to use an SDK, now checks if LD_LIBRARY_PATH is set or not. And not empty LD_LIBRARY_PATH is considered as misconfigured and prevent to use SDK. So unset by default LD_LIBRARY_PATH env variable and allow to disable this unset by setting ldLibPathNoReset field of ExecArgs command. For info, reported error message when call environement-setup-* script: Your environment is misconfigured, you probably need to 'unset LD_LIBRARY_PATH' but please check why this was set in the first place and that it's safe to unset. The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set. For more references see: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80 http://xahlee.info/UnixResource_dir/_/ldpath.html Change-Id: I386b92b04ebd33db39ac617acffa4e15b21213ad Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-16update xds-server package in dockerClément Bénier12-44/+320
scripts/package-update: bash scripts to update xds-server package in docker monitor updates: default time is 24h, a update is tried at startup api/v1: 2 new requests: - get(updates): return various information about xds-server packages - post(updates): update xds-server packages Change-Id: I1673f7860e57cfe1d4abe5a24609ee46a90b67d8 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-15fileconfig: env variables after default valuesClément Bénier1-7/+7
resolv env variables after setting default values if needed obviously, it will also resolv default values so it will fix EXEPATH bug Change-Id: If334d44374d021f9439288a46ed5827ea3b9fbe2 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-04Update doc link and clarify instructionsSebastien Douheret1-1/+1
Change-Id: If8ca1ce6d0fb33e7e9a684391ec4b856073dc48e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-08-20sdk force install: already installedClément Bénier1-1/+1
fix sdk Install when force boolean is true Install function was returning when sdk was already installed Change-Id: Ie8530ebe697bb66b17ac051804b42e367531134b Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-20terminal: when closing term, pass status to closingClément Bénier2-2/+6
status in return TerminalConfig is still opened when a term is closed Change-Id: Idacb67607ca32bfe35738d86e784512cb7758b02 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-07-25Add missing event when starting SDK installSebastien Douheret1-0/+4
Change-Id: I32892a8ad64ed05a93aedf413a81b6e8c50c26f7 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-20Add XDS_SERVER_WORKSPACE_DIR env var supportflounder_5.99.2flounder/5.99.25.99.2Sebastien Douheret2-1/+19
By default xds-server uses $HOME/xds-workspace directory to access to user shared workspace directory. This root directory may be changed by defining XDS_SERVER_WORKSPACE_DIR environment variable. Change-Id: Ib786ba9a954b0b093216295d37236a80f78f2f2c Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-18Add XDS_SERVER_ROOT_CFG_DIR env var supportSebastien Douheret2-16/+26
By default xds-server uses $HOME/.xds/server directory to save all config. This changes allows user to change this root directory by defining XDS_SERVER_ROOT_CFG_DIR environment variable. Change-Id: Iebde8dcf2d27b77671c7332bac04295d31659e24 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-27Fixed sdk from local file installationSebastien Douheret3-4/+8
Rework sdk uuid management because previous code prevented to install local sdk using following command: xds-cli sdks install --file $HOME/xds-workspace/my_local_sdk.sh Change-Id: I20bac8a76d32b005a6775e936756c96048651766 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-04-05Fixed sdk uuid setting during install [SPEC-1377]Sebastien Douheret1-0/+1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-04-05Added Target and Terminal events through WS.Sebastien Douheret5-38/+163
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-03-09Fixed terminal output (support escape and control characters)Sebastien Douheret4-26/+32
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-23Added target and terminal support.v1.1.0Sebastien Douheret17-21/+1509
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-08Avoid duplicate SDK install dir - SPEC-1252Sebastien Douheret1-1/+1
- install sdk in a directory that includes a unique id (built from install url or path). SDKs are now install under: <SDK_ROOT_DIR>/<PROFILE>/<VERSION>/<ARCH>/<UID> Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-06Auto update SDK DB on startup.Sebastien Douheret4-2/+33
Auto update db is enable by default (setting sdkDbUpdate = "startup") but it can be disable by setting sdkDbUpdate to "disable" in server config file. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-26Don't send command output too fast.eel_5.0.1eel/5.0.15.0.1Sebastien Douheret1-60/+13
Changes done in eows package of xds-common now allow to accumulate command output during a period of time (eg. 500ms) or up to the end of a line. Usage of this feature is mandatory to avoid to post to much buffers in websocket and consequently flood client (eg. web-browser) Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-23Reworked SDKs events (introduced sdk-state-change)Sebastien Douheret5-37/+84
Split add/remove/state-change from installing output (AKA SDKManagement event) in order to clearly separate events used to send installation output and sdk config changes. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-10Fixed go linter warnings.Sebastien Douheret3-12/+25
2018-01-09Fixed source env sdk file when file is not set.Sebastien Douheret2-0/+7
2018-01-05Migration to AGL gerrit (update go import)Sebastien Douheret32-76/+75
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-04Improved and fixed local SDK tarball installation.Sebastien Douheret5-47/+190
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-23Fixed SDKs management when running in xds VM.v1.0.0-rc2Sebastien Douheret4-11/+63
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-22Fixed invalid default value for Sdkscripts directory.Sebastien Douheret1-10/+10
2017-12-22Added SDKs management support.Sebastien Douheret11-59/+715
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-16Fixed and improved events management.Sebastien Douheret11-255/+338
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-11Standardized XDS config file name and location.Sebastien Douheret5-17/+17
- config file name is : server-config.json - xds-server settings under user's home is: $HOME/.xds/server - xds-server settings under etc is: /etc/xds/server Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-11Removed useless code of deprecated make command.Sebastien Douheret1-203/+1
2017-12-08Support old folder type encoding (backward compatibility)Sebastien Douheret1-3/+15
2017-12-05Move xds-project.conf file create to xds-agent.Sebastien Douheret1-24/+0
2017-12-05Fixed default xds-agent port number and env var (XDS_AGENT_URL)Sebastien Douheret1-1/+1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-05Improved Silly logging.Sebastien Douheret2-5/+12
2017-11-30Fix null pointer exception when no sdk installed.v1.0.0-rc1Sebastien Douheret1-1/+3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-30Added Copyright header.Sebastien Douheret31-1/+528
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-30Create server data directory when not existing.Sebastien Douheret2-0/+9
2017-11-29Fixed bug introduces by previous commit / refitSebastien Douheret3-13/+17
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-29Refit source files to have a public xs-apiv1 lib package.Sebastien Douheret30-716/+910
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-28Defined structures for /exec and /signal response.Sebastien Douheret1-9/+14
2017-11-24Fixed SDK ID resolution for /exec api.Sebastien Douheret2-7/+7
2017-11-24Add folder update support and ClientData field.Sebastien Douheret8-7/+119
- folder config can be updated using PUT /folders/:id route - ClientData field of FolderConfig can be used by client to store any data (used from example by dashboard to save build settings)
2017-11-21Always close gdb pty/tty even if an error rises.Sebastien Douheret1-8/+10
2017-11-17Merge remote-tracking branch 'origin/master' into wipSebastien Douheret1-1/+1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh> Conflicts: Makefile webapp/package.json
2017-11-17Fixed spaces handling in RPath - SPEC1116Sebastien Douheret1-1/+1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-06Used uuid of SDK ID and support short ID name if not ambiguous.Sebastien Douheret3-28/+60
2017-11-06Use plural nouns for all routes.Sebastien Douheret1-5/+5
2017-11-06Added short project ID name support if not ambiguous.Sebastien Douheret5-17/+62
2017-11-06Fixed folder ID and label generation.Sebastien Douheret5-18/+31
Folder ID is now a simple uuid (without sub-string of label)
2017-11-06Add sanity check on pathmap folder creation.Sebastien Douheret2-12/+38
2017-11-06Add silly log level support.Sebastien Douheret3-20/+22
Silly logging is enable when: XDS_LOG_SILLY env var is set and log level is debug
2017-11-06Add Server UUID and use it build CmdID.Sebastien Douheret6-14/+27