kopia lustrzana https://github.com/nytimes/rd-blender-docker
append xz-utils to deps only when its needed
rodzic
1359ff2c1e
commit
095d7cade6
11
generate.py
11
generate.py
|
@ -57,14 +57,19 @@ def create_dockerfile(base_os: str,
|
|||
|
||||
dockerfile += "# Install dependencies\n"
|
||||
dockerfile += "RUN apt-get update && apt-get install -y \ \n"
|
||||
|
||||
archivetype = blender_download_url.split(".")[-1]
|
||||
archiveflags = "xjvf"
|
||||
|
||||
if archivetype == "xz":
|
||||
archiveflags = "xvf"
|
||||
deps.append("xz-utils")
|
||||
|
||||
for dependency, has_more in lookahead(deps):
|
||||
is_multiline = " \ " if has_more else ""
|
||||
dockerfile += "\u0009{}{}\n".format(dependency, is_multiline)
|
||||
dockerfile += "\n"
|
||||
|
||||
archivetype = blender_download_url.split(".")[-1]
|
||||
archiveflags = "xjvf" if archivetype == "bz2" else "xvf"
|
||||
|
||||
dockerfile += "# Download and install Blender\n"
|
||||
dockerfile += "RUN wget {} \ \n".format(blender_download_url)
|
||||
dockerfile += "\u0009&& tar -{} {} --strip-components=1 -C /bin \ \n".format(
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
"wget",
|
||||
"libopenexr-dev",
|
||||
"bzip2",
|
||||
"xz-utils",
|
||||
"build-essential",
|
||||
"zlib1g-dev",
|
||||
"libxmu-dev",
|
||||
|
|
Ładowanie…
Reference in New Issue