golemfactory / dapp-runner

GNU Lesser General Public License v3.0
5 stars 6 forks source link

Blue/explicit run in init #45

Closed shadeofblue closed 2 years ago

shadeofblue commented 2 years ago

closes #17 closes #16

this is the implemented syntax as per: https://github.com/golemfactory/golem-architecture/pull/39#issuecomment-1245416018

    init:
      - test:
          args: ["/bin/rm", "/var/log/nginx/access.log", "/var/log/nginx/error.log"]
          from: "aa"
          to: "b"
      - aaa:
          args: ["/bin/rm", "/var/log/nginx/access.log", "/var/log/nginx/error.log"]
          from: "aa"
          to: "b"

    init: ["/docker-entrypoint.sh"]

    init:
      - run:
          args:
            - "/docker-entrypoint.sh"

    init:
        - ["/docker-entrypoint.sh"]
        - ["/bin/chmod", "a+x", "/"]
        - ["/bin/sh", "-c", 'echo "Hello from inside Golem!" > /usr/share/nginx/html/index.html']

and obviously, currently the only supported command is run