summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
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
2017-06-20Create XDT_SDK dir when not existing.Sebastien Douheret1-0/+2
2017-06-20Add script to start AGL worker XDS docker container.Sebastien Douheret1-0/+102
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-16Bump syncthing-inotify version to 0.8.6Sebastien Douheret1-14/+40
2017-06-16Improved script and add -file option.Sebastien Douheret1-16/+37
2017-06-07Allow to not update xds-agent tarball on startup.Sebastien Douheret1-14/+17
Also set debug loglevel to info
2017-06-07Add windows and packaging build support.Sebastien Douheret1-9/+22
2017-05-28Add script to get xds-agent tarballs.Sebastien Douheret5-0/+76
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>