This repository was archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
Not able to clone nested child app in dev mode. #2247
Copy link
Copy link
Closed
Labels
kind/bugSomething isn't workingSomething isn't working
Description
acorn version - v0.9.0-rc1-29-g28f2b006+28f2b006
Steps to reproduce the problem:
- Copy all files from https://github.com/acorn-io/mariadb to your repo.
- Change Acorn file of consuming app - https://github.com/acorn-io/mariadb/blob/main/examples/my-todo/Acornfile to build Mariadb app instead of using an image
services: db: build: {
acornfile: "../../Acornfile"
context: "../.."
}
containers: app: {
build: context: "."
ports: publish: "8000/http"
consumes: ["db"]
env: {
DB_HOST: "@{service.db.address}"
DB_PORT: "@{service.db.port.3306}"
DB_NAME: "@{service.db.data.dbName}"
DB_USER: "@{service.db.secrets.admin.username}"
DB_PASS: "@{service.db.secrets.admin.password}"
MY_TEST: "hello"
}
if args.dev {
dirs: "/app": "./"
env: FLASK_DEBUG: "1"
}
}
- Commit and push to the repo.
- Deploy app from this repo.
%acorn apps
NAME IMAGE COMMIT CREATED ENDPOINTS MESSAGE
mytestmariaprivate 6a42060bde67 faf324a86e8e 36m ago http://app-mytestmariaprivate-b22aeb4b.local.oss-acorn.io/ OK
mytestmariaprivate.db 3e7ad2c9847a faf324a86e8e 36m ago OK
- Change to a different directory.
- Clone the db app in dev mode for db
%acorn dev --clone -n mytestmariaprivate.db
Cloning into 'mytestmariaprivate.db'...
remote: Enumerating objects: 37586, done.
remote: Counting objects: 100% (1054/1054), done.
remote: Compressing objects: 100% (513/513), done.
remote: Total 37586 (delta 469), reused 1016 (delta 448), pack-reused 36532
Receiving objects: 100% (37586/37586), 33.45 MiB | 11.56 MiB/s, done.
Resolving deltas: 100% (17130/17130), done.
Note: switching to 'faf324a86e8ebb2ecd300826e9e409a848f3e616'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at faf324a8 Testapp
NOTE: The Acornfile used for this acorn differs from the git repository. Run `git status` for more details.
ERRO[0007] Failed to build mytestmariaprivate.db/integration/e2e/testdata/build/testapp/mariadb/examples/my-todo/Acornfile: open mytestmariaprivate.db/integration/e2e/testdata/build/testapp/mariadb/examples/my-todo/icon.png: no such file or directory
Acornfile of db app gets copied over to consuming app's Acornfile which is the one that is trying to get build and fails.
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working