deployment stage fails, can't find generated apps.json #2

Closed
opened 2021-06-12 22:01:24 +00:00 by 3wordchant · 0 comments
Owner

Even if we sneak past #1, deployment is failing with:

open /root/.abra/apps/drone-abra/apps.json: no such file or directory

I hacked .drone.yml to add debugging output and found that apps.json ends up here:

/root/.abra/apps/keycloak-collective-portal/apps.json

I guess this is because app-json.py saves it into getcwd(), but the script is also cd'ing around to investigate recipe repos.

Should we have app-json.py always output to a fixed location, like ${ABRA_DIR}/apps.json? Or add an --output argument to app-json.py? Or something else?

Even if we sneak past #1, deployment is failing with: ``` open /root/.abra/apps/drone-abra/apps.json: no such file or directory ``` [I hacked `.drone.yml` to add debugging output](https://git.autonomic.zone/coop-cloud/abra/src/branch/main/bin/app-json.py#L201) and [found that `apps.json` ends up here](https://drone.autonomic.zone/coop-cloud/auto-apps-json/14/1/2): ``` /root/.abra/apps/keycloak-collective-portal/apps.json ``` I guess this is because `app-json.py` [saves it into `getcwd()`](https://git.autonomic.zone/coop-cloud/abra/src/branch/main/bin/app-json.py#L201), but the script is also `cd`'ing around to investigate recipe repos. Should we have `app-json.py` always output to a fixed location, like `${ABRA_DIR}/apps.json`? Or add an `--output` argument to `app-json.py`? Or something else?
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/auto-apps-json#2
No description provided.