Пример #1
0
                CACHE_DIR,
                DOT_LOCAL_LOCATION,
                runtime_version,
                runtime.get_java_version(runtime_version),
            )
        except RuntimeError as error:
            logging.error(error)
            exit(1)
        finally:
            for folder in ("mxbuild", "mono"):
                path = os.path.join(DOT_LOCAL_LOCATION, folder)
                shutil.rmtree(path, ignore_errors=True)

    set_up_directory_structure()
    copy_buildpack_resources()
    java.stage(
        BUILDPACK_DIR,
        CACHE_DIR,
        DOT_LOCAL_LOCATION,
        runtime.get_java_version(runtime.get_version(BUILD_DIR)),
    )
    appdynamics.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    dynatrace.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    newrelic.stage(BUILDPACK_DIR, BUILD_DIR)
    telegraf.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    datadog.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    runtime.stage(BUILD_DIR, CACHE_DIR)
    databroker.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    nginx.stage(BUILD_DIR, CACHE_DIR)
    logging.info("Mendix Cloud Foundry Buildpack staging completed")
Пример #2
0
                DOT_LOCAL_LOCATION,
                runtime_version,
                runtime.get_java_version(runtime_version),
            )
        except RuntimeError as error:
            logging.error(error)
            exit(1)
        finally:
            for folder in ("mxbuild", "mono"):
                path = os.path.join(DOT_LOCAL_LOCATION, folder)
                shutil.rmtree(path, ignore_errors=True)

    set_up_directory_structure()
    copy_buildpack_resources()
    java.stage(
        BUILDPACK_DIR,
        CACHE_DIR,
        DOT_LOCAL_LOCATION,
        runtime.get_java_version(runtime.get_version(BUILD_DIR)),
    )
    appdynamics.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    dynatrace.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    newrelic.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    mx_java_agent.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    telegraf.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    datadog.stage(BUILDPACK_DIR, DOT_LOCAL_LOCATION, CACHE_DIR)
    runtime.stage(BUILDPACK_DIR, BUILD_DIR, CACHE_DIR)
    databroker.stage(DOT_LOCAL_LOCATION, CACHE_DIR)
    nginx.stage(BUILDPACK_DIR, BUILD_DIR, CACHE_DIR)
    logging.info("Mendix Cloud Foundry Buildpack staging completed")