1. 07 Nov, 2022 2 commits
    • Jérome Perrin's avatar
      component/theia: version up 1.31.1 · f45ce3c1
      Jérome Perrin authored
      f45ce3c1
    • Jérome Perrin's avatar
      software/theia: don't set a python in $PATH · db61f30e
      Jérome Perrin authored
      This is a big changes for users, now typing "python" on the command line
      will use system python if it exists or fail with "command not found".
      
      `python3` is set to the SlapOS python from Theia software release.
      Recommended approach for python users is either to get used to type
      `python3` or to create a virtualenv and use it. With the virtualenv,
      they can also install pylint or other linters, so this might be the
      best thing to do.
      
      This solves two problems:
      
      First problem is that it makes the embedded SlapOS always have a python
      interpreter as `python` in $PATH, which is not always the case in other
      SlapOS usage and can hide problems that would cause a software to build
      successfully in Theia but not in "bare metal" SlapOS.
      
      Second problem problem is that on python was a interpreter from pygolang
      and it is not perfect regarding line edition at least on python 3.8, as
      we can observe in this session:
      
      run python and type "something":
      
      ```
      Python 3.8.13 (default, Sep  6 2022, 10:45:07)
      [GCC 8.5.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      (InteractiveConsole)
      >>> something
                   ^ cursor is here, as expected
      ```
      
      type Ctrl+A to go to beginning of line:
      
      ```
      Python 3.8.13 (default, Sep  6 2022, 10:45:07)
      [GCC 8.5.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      (InteractiveConsole)
      >>> something
          ^ expected cursor position
      ^ actual cursor position
      ```
      
      likewise, type Ctrl+E to go to end of line:
      
      ```
      Python 3.8.13 (default, Sep  6 2022, 10:45:07)
      [GCC 8.5.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      (InteractiveConsole)
      >>> something
                   ^ expected cursor position
               ^ actual cursor position
      ```
      db61f30e
  2. 05 Nov, 2022 1 commit
  3. 30 Aug, 2022 1 commit
    • Jérome Perrin's avatar
      component/defaults: use python3 by default · cc7f36a0
      Jérome Perrin authored
      Change python2 softwares to use python2 explicitly and python3
      softwares to use the default, but leave a few softwares (html5as,
      html5as-base, fluent-bit, packer, seleniumrunner) using the default
      python, as they were using python2 not because they only support python2
      but because they don't have strong dependency to the python version
      being used.
      cc7f36a0
  4. 29 Aug, 2022 1 commit
  5. 29 Apr, 2022 1 commit
    • Xavier Thompson's avatar
      software/theia: Simplify embedded SR options · 8cb2f7d7
      Xavier Thompson authored
      Remove existing "embedded instance" options:
      - `embedded-sr`
      - `embedded-sr-type`
      - `embedded-instance-parameters`
      
      Instead introduce `one-time-embedded-instance` option:
      - Only taken into account when Theia is instantiated the first time.
      - Content should be a JSON object with:
        - 'software-url': string of the software URL
        - 'software-type': (optional) string of the software type
        - 'instance-parameters': (optional) JSON object
      
      If the option is non-empty:
      - Theia will attempt once to:
        - Parse the JSON content
        - Create a supply/request script
        - Call the script
      - A promise will check whether the script was successfully called.
      
      If the promise fails forever, e.g. because of ill-formed JSON, emptying
      the option will remove the promise. Editing the option after the first
      time will have no effect, whether the promise succeded or not.
      8cb2f7d7
  6. 25 Apr, 2022 1 commit
    • Thomas Gambier's avatar
      theia, erp5testnode: switch to python3 · a6abf8f0
      Thomas Gambier authored
      theia, erp5testnode are both running a slapos standalone. We don't
      change slaprunner to python3 because it's not maintained anymore and
      should disappear in the near future.
      a6abf8f0
  7. 03 Apr, 2022 2 commits
  8. 16 Dec, 2021 4 commits
  9. 13 Dec, 2021 1 commit
  10. 12 Dec, 2021 1 commit
  11. 06 Dec, 2021 1 commit
    • Xavier Thompson's avatar
      software/theia: Revert libsecret path resolution · 86d6869a
      Xavier Thompson authored
      It appears no longer needed to use LD_LIBRARY_PATH to ensure the
      correct runtime path resolution of libsecret in theia's `keytar`
      component. Also LD_LIBRARY_PATH was leaking into theia's environment
      and affecting tests launched from within theia.
      
      This reverts commit 681ec188.
      86d6869a
  12. 03 Dec, 2021 1 commit
    • Xavier Thompson's avatar
      software/theia: Fix standalone service script · ef2a540a
      Xavier Thompson authored
      Always format the partitions to ensure the slapformat configuration is
      valid, because the constructor overwrites it with invalid values.
      
      We need a valid configuration so that `slapos node format` works,
      and we need `slapos node format` for the resiliency import script.
      ef2a540a
  13. 01 Oct, 2021 1 commit
  14. 20 Aug, 2021 3 commits
  15. 19 Aug, 2021 4 commits
  16. 02 Jun, 2021 1 commit
    • Xavier Thompson's avatar
      software/theia: Fix null parameters templating · c60456d3
      Xavier Thompson authored
      Before this commit, instance parameters that have a default null value
      in JSON format were rendered as 'None' string in instance-theia.cfg.
      
      In particular, Theia frontends were always requested with unsolvable
      SLA parameters that prevented a frontend from ever being allocated:
      ```
      sla-instance_guid = None
      ```
      c60456d3
  17. 27 May, 2021 1 commit
  18. 19 May, 2021 2 commits
  19. 12 May, 2021 1 commit
    • Xavier Thompson's avatar
      software/theia: Add switch-softwaretype · cb40e46f
      Xavier Thompson authored
      This defers the rendering of `instance-theia.cfg.in` to the instance
      creation time instead of the software installation time, which will
      allow buildout sections to be added based on the instance parameters.
      
      See merge request !981
      cb40e46f
  20. 05 May, 2021 1 commit
  21. 06 Apr, 2021 2 commits
  22. 29 Mar, 2021 1 commit
  23. 25 Mar, 2021 1 commit
    • Xavier Thompson's avatar
      software/theia: Fix slapos environment discrepancy · b2f3dc78
      Xavier Thompson authored
      Before this commit, running
        'slapos node software'
      and
        'supervisorctl start slapos-node-software'
      behaved differently because the PATH and other environment variables
      where different in the interactive theia shell and in supervisord.
      b2f3dc78
  24. 15 Mar, 2021 1 commit
  25. 02 Mar, 2021 1 commit
    • Jérome Perrin's avatar
      stack/nodejs: add yarn · cb334146
      Jérome Perrin authored
      Instead of having softwares install yarn, unify this in nodejs stack.
      
      Yarn usage is similar to nodejs usage, if a specific version is needed,
      software should use macro to expose which yarn version to use, example:
      
          [yarn]
          <= yarn-1.17.3
      
      Then sections can use yarn by having ${yarn:location}/bin/ in their path.
      
      yarn will use the default [nodejs], so to another nodejs version, the same
      pattern can be used:
      
          [nodejs]
          <= nodejs-10.6.0
      cb334146
  26. 22 Feb, 2021 1 commit
  27. 13 Jan, 2021 1 commit
  28. 12 Jan, 2021 1 commit