aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xdsconfig
AgeCommit message (Collapse)AuthorFilesLines
2018-11-06Allow XDT_SDK overwriteSebastien Douheret1-1/+1
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-16update xds-server package in dockerClément Bénier2-21/+35
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-07-20Add XDS_SERVER_WORKSPACE_DIR env var supportflounder_5.99.2flounder/5.99.25.99.2Sebastien Douheret1-0/+16
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-02-23Added target and terminal support.v1.1.0Sebastien Douheret1-0/+7
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 Douheret2-0/+6
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-10Fixed go linter warnings.Sebastien Douheret2-3/+4
2018-01-05Migration to AGL gerrit (update go import)Sebastien Douheret4-9/+9
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 Douheret2-11/+11
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-11Standardized XDS config file name and location.Sebastien Douheret2-14/+14
- 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 Douheret4-0/+68
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-30Create server data directory when not existing.Sebastien Douheret2-0/+9
2017-11-29Refit source files to have a public xs-apiv1 lib package.Sebastien Douheret2-22/+16
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-11-06Add Server UUID and use it build CmdID.Sebastien Douheret2-3/+6
2017-11-06Cleanup and improvementsSebastien Douheret4-15/+119
- Save server data into file - FolderType is now a string - cleanup useless code Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-22Set default syncthing path.Sebastien Douheret1-1/+12
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-18Fix syncthing binary path detection.Sebastien Douheret2-3/+4
2017-09-13Set install dir to /opt/AGL and move conf to $HOME/.xds-serverSebastien Douheret2-11/+47
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-08-24Redirect HTTP and Gin server logs into a file (xds-server-verbose.log).Sebastien Douheret1-3/+5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-08-16Add folder interface and support native pathmap folder type.Sebastien Douheret4-146/+47
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-26Use xds-common go library.Sebastien Douheret2-2/+2
2017-06-20Remove duplicate fields and set default SDK dir.Sebastien Douheret2-30/+32
- Removed duplicate fields between Config and FileConfig - set /xdt/sdk as default SDK directory
2017-05-22Allow to set Syncthing rescanInterval parameter.Sebastien Douheret1-4/+5
2017-05-18Improved ResolveEnvVar and add support of tilde (~/...)Sebastien Douheret1-23/+2
2017-05-18Add Cross SDKs support (part 2)Sebastien Douheret1-1/+3
2017-05-17Use autogenerated Synchting apikey.Sebastien Douheret1-3/+4
Except if gui-apikey is set in config.json file. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-17Add SDKs support.Sebastien Douheret2-39/+20
Don't allow to install SDKs through XDS for now. Only probe existing SDKs that have been manually installed using scripts/agl/install-agl-sdks.sh. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-17Auto start Syncthing and Syncthing-inotify.Sebastien Douheret3-186/+34
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-15Update doc: add current dir in config.json discovery logic.Sebastien Douheret1-1/+2
2017-05-13Fix invalid rootPath when creating a new project.Sebastien Douheret2-0/+10
2017-05-13Detect undefined env variables used in config.jsonSebastien Douheret1-8/+26
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-05-11Initial main commit.Sebastien Douheret5-0/+540
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>