summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2018-12-18Update to latest FF verison and add GG releasesSebastien Douheret1-1/+4
Bug : SPEC-2033 Change-Id: I919c106bc8d108992b2d91b5daa1eb27b2245fcf Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-11-06Allow XDT_SDK overwriteSebastien Douheret1-5/+7
Test framework or simply a user may need to set XDT_SDK variable even if /etc/xdtrc file exists. Also change default location of webapp to www to allow to run xds-server without the need to set any config file. Change-Id: I403778e597cbcfd2c16d5ab6b603073ed3a230f0 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-22Added support of new image_url fieldSebastien Douheret3-1/+26
Since commit ecef0475a0a9d51, url to download AGL image matching a SDK has been introduced in SDK definition file. This commit adds ImageURL field (json:image_url) in return json object of GET /sdks Change-Id: If52c39292ac3d5e44c4f61b8b51c48d9661beb2d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-22Prevent db-dump failure when sdk is not validSebastien Douheret1-1/+3
Change-Id: I4cbc0b38333938836dac738f2240a05be1d6a09f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-22Adds 'image_url' JSON parameter to an SDK entryJohann CAHIER1-66/+169
Adds a link to installable target image corresponding to the current SDK. The easest way to implement this was to manage a pair of suffix for earch source of SDKs (AGL or IoT.bzh), The input data are refactored as following: each source has an URL prefix, a list of directories (possibly including wildcard) to be browsed, relative to prefix URL, and a pair of suffixes : one for SDK, one for ilage (relative to prefix + directory). When an SDK installation file is found, the corresponding image is searched by replacing the SDK suffix by the image one, requesting this URL, and grepping for a filename matching agl-demo-plaform-crosssdk-* With different possible extensions: - .vmdk(.xz) in case of qEMU image, or - .rootfs.wic(.xz), when avaible, or - .rrotfs.tar(.xz) If no matching image file is found, the image_url is set to the directory URL containing the image file candidates. If requesting the image directory URL content leads to server error (mainly error 404 Not Found, but also any other error), the image_url value will be set to null in the JSON output. Makes the trace system more flexible, using an verbose -v|vv option. KNOWN ISSUES: - '-nogfx' images are not named agl-demo-plaform-crosssdk-* on the AGL server. image_url is set to the image directory URL for such SDKs/images - on IoT.bzh, older images directories are named 'image' while newer ones are named 'images'. Advantage given to newer images, this lead to have older SDKs' image_url set to null. Change-Id: I8c029d3ebbdef1a096c5cb225fd40405e91b312d Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
2018-10-18Fix qemu sdk detectionSebastien Douheret1-16/+36
arch for qemu sdk is qemux86-64 in sdk-latest.json but extracted value for environement file is corei7-64. Change-Id: Id2656de1648b6c9289d42c9f55fa8e1e4e056760 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-16update xds-server package in dockerClément Bénier3-0/+157
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-11Fixed incorrect detection of installed SDKsSebastien Douheret1-0/+13
Add an additional verification about uuid that is based on url field to identify SDK. Change-Id: Iefe43ff37d928c7592c0c9c8c14b9f537080b0b6 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-09Update naming of SDKs provided by IoT.bzhSebastien Douheret1-2/+5
Change-Id: I83df3abdb19c5075353510cba9dc296de8c04548 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-09Cleanup useless SDKs from SDKs db/listSebastien Douheret1-7/+4
Also ignored some known file when parsing SDK directory Change-Id: I8f9f127325b7743ebe3866d1145f928ded49322b Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-03Update sdks list definitionSebastien Douheret1-2/+5
Change-Id: I1a9efa4818f1d12409b6a04b0f4ce08363d2258f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-02fix sdks list bug: move rgx into db-dumpClément Bénier2-6/+11
SPEC-1777 only match what defines a variable remove set because it adds simple quote with special characters Change-Id: Ib7c13869c9d965c0c0dae1ae69eeeaf446b1ce58 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
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>