Skip to content

Commit 62482c2

Browse files
authored
Removed unused build_image code.
It could potentially be restored later, if build.py would also run the Docker build.
1 parent 50bf803 commit 62482c2

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

build.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,6 @@ def prepare_mda(source_path, destination_path, artifacts_repository=None):
227227
else:
228228
raise Exception('No supported files found in source path')
229229

230-
def build_image(mda_dir):
231-
# TODO: build the full image, or just copy MDA into destination?
232-
mda_path = mda_dir.name if isinstance(mda_dir, tempfile.TemporaryDirectory) else mda_dir
233-
mda_metadata = get_metadata_value(mda_path)
234-
mx_version = mda_metadata['RuntimeVersion']
235-
java_version = mda_metadata.get('JavaVersion', 11)
236-
logging.debug("Detected Mendix {} Java {}".format(mx_version, java_version))
237-
238230
if __name__ == '__main__':
239231
parser = argparse.ArgumentParser(description='Build a Mendix app')
240232
parser.add_argument('--source', metavar='source', required=True, nargs='?', type=pathlib.Path, help='Path to source Mendix app (MDA file, MPK file, MPR directory or extracted MDA directory)')
@@ -250,4 +242,3 @@ def build_image(mda_dir):
250242
except KeyboardInterrupt:
251243
stop_processes()
252244
raise
253-
# build_image(args.destination)

0 commit comments

Comments
 (0)