Fix resource_path
This commit is contained in:
parent
651c166920
commit
8732c374a6
2 changed files with 3 additions and 3 deletions
|
@ -17,14 +17,14 @@ class ImageBuildService:
|
|||
)
|
||||
|
||||
def __copy_build_resource_file_from_package__(self, resource_name, devops: Devops):
|
||||
data = self.resource_api.read_resource(f"main/resources/docker/{resource_name}")
|
||||
data = self.resource_api.read_resource(f"src/main/resources/docker/{resource_name}")
|
||||
self.file_api.write_data_to_file(
|
||||
f"{devops.build_path()}/{resource_name}", data
|
||||
)
|
||||
|
||||
def __copy_build_resources_from_package__(self, devops: Devops):
|
||||
self.__copy_build_resource_file_from_package__(
|
||||
"image/resources/install_functions.sh", devops.specialized_builds[BuildType.IMAGE]
|
||||
"image/resources/install_functions.sh", devops
|
||||
)
|
||||
|
||||
def __copy_build_resources_from_dir__(self, devops: Devops):
|
||||
|
|
|
@ -9,7 +9,7 @@ from ..domain import Devops, Image, C4k, Release, BuildFile
|
|||
|
||||
class ResourceApi:
|
||||
def read_resource(self, path: str) -> bytes:
|
||||
return resource_string('src', path)
|
||||
return resource_string('ddadevops', path)
|
||||
|
||||
|
||||
class FileApi:
|
||||
|
|
Loading…
Reference in a new issue