summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2018-09-20Update SDK definition - add flounderSebastien Douheret1-0/+4
Change-Id: I2ccadbd30705c4726152a9e86108cdb25608e872 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-09-18Filter output of environmentJosé Bollo1-1/+1
Remove functions (using set -o posix) and values contaning new lines. Without that change on some environment, the script scripts/sdks/agl/db-dump may fail line 51 Change-Id: I5118c0054d50ab3c7ac2757aff820adec2584cb3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-20Fixed GPG keyserver intermittenly failureSebastien Douheret1-1/+10
Workaround about issue with the particular GPG keyserver: trying several explicit keyservers until the command succeeds Change-Id: I7410c07e25d25006c9252b97036c3b33ca183ae6 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-06Add retry (3 times) when glide download failsSebastien Douheret1-10/+10
Change-Id: I97d70664ed6e62831a70d46f721ed2024ee9b574 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-05Update/fix rpm and deb packagingSebastien Douheret1-1/+1
- fix packaging to be compliant with latest subprojects hierarchy (Master, Master-Next, ElectricEel, ...) - fix rpmlint warnings/error Change-Id: Ib8c2014624542d3dfb81818ed605dc7a2dedf2c5 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-27Fixed sdk from local file installationSebastien Douheret4-2/+14
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-06-27Updated AGL sdks list definitionSebastien Douheret1-4/+14
Change-Id: I239b052f2d2bf4caf6fe4e756ee372e4ae6060ec Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-04-05Convert db-dump to python3Sebastien Douheret1-2/+3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-04-05Rework SDK default directory.Sebastien Douheret2-6/+10
Default SDK directory is $HOME/xds-workspace/.sdks expect if /xdt/sdk exists (backward compatibility). Default SDK directory can be set by defining XDT_SDK variable in /etc/xdtrc file Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-04-05Fixed sdk uuid setting during install [SPEC-1377]Sebastien Douheret3-11/+39
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-08Avoid duplicate SDK install dir - SPEC-1252Sebastien Douheret3-25/+47
- 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 Douheret1-1/+18
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-22Migrate db-dump script in python avoid nodejs depSebastien Douheret1-136/+129
- Also, workaround SPEC-1252 matching first detected SDK and break. - Fixed SDK date extraction. Bug-AGL: SPEC-1249 Change-Id: Ia1cb3e9466d0f8f958f6e8759287f801a5b81d04 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-22Fix not existing /etc/xdtrc fileRomain Forlot1-1/+1
Change-Id: I1bfcb754fe7fd510f88d16153c00cb1f966aabed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-01-10Update sdks list with EEL/5.0.0 release.v1.0.1Sebastien Douheret1-3/+7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-01-09Create sdk directory when needed.Sebastien Douheret1-0/+6
2018-01-08Fixed sdks db-update name and backup prev version.v1.0.0Sebastien Douheret2-4/+10
2018-01-04Improved and fixed local SDK tarball installation.Sebastien Douheret7-36/+240
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-23Fixed SDKs management when running in xds VM.v1.0.0-rc2Sebastien Douheret4-6/+7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-22Added SDKs management support.Sebastien Douheret9-1/+556
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-11Standardized XDS config file name and location.Sebastien Douheret2-0/+0
- 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-11-30Added Copyright header.Sebastien Douheret6-0/+103
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-10Fix case where ~/.ssh/id_rsa.pub is a softlinkbrian avery1-1/+1
Some users may have the default id_rsa/id_rsa.pub be a softlink to one of a set of rsa keys. In this case, the cp would result in a dangling softlink in the container and the startup fails. Adding a -L to the cp command results in copying whatever the softlink points to into the container, which seems like the desired behaviour. Signed-off-by: brian avery <brian.avery@intel.com>
2017-10-19Fix ssh command when execited with a wget pipev0.3.3Sebastien Douheret1-3/+3
2017-10-19Support case when .ssh and default key dont exist.Sebastien Douheret1-5/+6
2017-10-19Fix warnings detected by shellcheck.Sebastien Douheret1-22/+18
2017-10-19Fix: piped execution of script failedForlot Romain [IoT.bzh]1-1/+1
2017-10-19Fixed auto detection of versionSebastien Douheret1-5/+5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-10-19Fix docker images detection on Redhat like distro.Sebastien Douheret1-2/+3
2017-10-17Improved docker creation script.Sebastien Douheret1-18/+55
- detect uid/gid conflict - add -id option - improved help - cleanup invalid container on error (unless -nc option is set)
2017-10-16Fixed xds systemd user serviceSebastien Douheret1-9/+28
2017-10-12xds-server is now start as user systemd service.Sebastien Douheret1-5/+4
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-10-12Add --volume option support.Sebastien Douheret1-9/+23
Also removed useless volume (residual settings of AGL SDK container)
2017-10-12Fix ssh credential copy where hostname cannot be resolvedSebastien Douheret1-3/+3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-14Allow to install sdks from local file when iot download site is not availableSebastien Douheret1-1/+2
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-14Dynamically retrieve docker image name/versionSebastien Douheret1-11/+23
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-13Set same uid and gid inside and outside dockerSebastien Douheret1-16/+34
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-13Auto retrieve docker image tagSebastien Douheret1-0/+10
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-13Set install dir to /opt/AGL and move conf to $HOME/.xds-serverSebastien Douheret3-83/+15
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-08-30Bump docker container version to 4.0 and update doc.Sebastien Douheret1-2/+6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-08-30Fixed again freeze when iot.bzh website is not accessiblev0.2.2Sebastien Douheret1-7/+7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-08-30Prevent script freeze when iot.bzh website is not accessible.Sebastien Douheret1-0/+7
2017-07-24Support SDK directory with spacesSebastien Douheret1-5/+5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-07-09Set exit codeSebastien Douheret2-0/+3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-27Update Readme fileRonan Le Martret2-0/+23
* Add systemd service file * Add autoconfig for ssh contener * Add http port conf to xds-server-start.sh script Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-06-26Fix FILE decoding when --file option is set with a full path.Sebastien Douheret1-0/+1
2017-06-26Intel SDK is now named corei7-64.Sebastien Douheret1-3/+9
2017-06-22Fix invalid file parameter.Sebastien Douheret1-2/+2
2017-06-22Fix args decoding and improve error detection.Sebastien Douheret1-7/+12
2017-06-20Update xds-agent tarballs by default.Sebastien Douheret1-1/+1