I was following the overhang.io tutorial for creating new plugins. When it comes to the create new template and build image part, I have the ERROR importing cache manifest from myservice-cache. Then the terminal just shows > importing cache manifest from myservice-cache: and stopped.
Does anyone knows how to solve this? I am really stuck here for a long time. Thanks in advance!
Below are my files related to the plugins. As mentioned before I directly copied and pasted them from the tutorial and no line specify anything about the cache.
my Dockerfile
FROM docker.io/debian:bullseye-slim
CMD echo "what an awesome plugin!"
myplugin.py
from tutor import hooks
import os
template_folder = os.path.join(os.path.dirname(__file__), "templates")
hooks.Filters.ENV_TEMPLATE_ROOTS.add_item(template_folder)
hooks.Filters.ENV_TEMPLATE_TARGETS.add_item(
("myplugin/build", "plugins")
)
hooks.Filters.CONFIG_DEFAULTS.add_item(
("MYPLUGIN_PLATFORM_IS_PUBLIC", False)
)
hooks.Filters.ENV_PATCHES.add_item(
(
"openedx-lms-common-settings",
"FEATURES['ALLOW_PUBLIC_ACCOUNT_CREATION'] = {% if MYPLUGIN_PLATFORM_IS_PUBLIC %}True{% else %}False{% endif %}",
)
)
hooks.Filters.IMAGES_BUILD.add_item(
(
"myservice", # same name that will be passed to the `build` command
("plugins", "myplugin", "build", "myservice"), # path to the Dockerfile folder
"myservice", # Docker image tag
(), # custom build arguments that will be passed to the `docker build` command
)
)
Would that be the tutor CLI problem? As you can see below that even I used --no-cache, the docker command that tutor CLI generated still have the --cache-from. For now I just build the plugin image use docker instead of tutor