├── update └── README.md ├── op-exclude.txt ├── .magento ├── routes.yaml └── services.yaml ├── .gitignore ├── magento-vars.php ├── COPYING.txt ├── m2-hotfixes └── README.md ├── php.ini ├── .github ├── .metadata.json ├── PULL_REQUEST_TEMPLATE.md └── CODE_OF_CONDUCT.md ├── composer.json ├── .magento.app.yaml ├── README.md └── LICENSE.txt /update/README.md: -------------------------------------------------------------------------------- 1 | A service folder used by the support module. -------------------------------------------------------------------------------- /op-exclude.txt: -------------------------------------------------------------------------------- 1 | /app/*/app/etc/config.php 2 | /app/*/app/etc/env.php 3 | /app/app/etc/config.php 4 | /app/app/etc/env.php 5 | /app/etc/config.php 6 | /app/etc/env.php 7 | -------------------------------------------------------------------------------- /.magento/routes.yaml: -------------------------------------------------------------------------------- 1 | # The routes of the project. 2 | # 3 | # Each route describes how an incoming URL is going to be processed. 4 | 5 | "http://{default}/": 6 | type: upstream 7 | upstream: "mymagento:http" 8 | 9 | "http://{all}/": 10 | type: upstream 11 | upstream: "mymagento:http" 12 | -------------------------------------------------------------------------------- /.magento/services.yaml: -------------------------------------------------------------------------------- 1 | # The services of the project. 2 | # 3 | # Each service listed will be deployed to power your project. 4 | 5 | mysql: 6 | type: mysql:11.4 7 | disk: 5120 8 | 9 | #redis: 10 | # type: redis:7.2 11 | 12 | cache: 13 | type: valkey:8.0 14 | 15 | opensearch: 16 | type: opensearch:3 17 | disk: 1024 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !/.gitignore 3 | !/.magento.app.yaml 4 | !/.magento.env.yaml* 5 | !/.magento 6 | !/.magento/** 7 | /.magento/local 8 | !/app 9 | !/app/*/ 10 | !/app/code/** 11 | !/app/design/** 12 | !/app/etc/config.php 13 | !/app/i18n/** 14 | !/auth.json 15 | !/build_options.ini 16 | !/composer.json 17 | !/composer.lock 18 | !/magento-vars.php 19 | !/m2-hotfixes 20 | !/m2-hotfixes/** 21 | !/php.ini 22 | !/update 23 | !/update/.htaccess 24 | !/README.md 25 | !/op-exclude.txt 26 | -------------------------------------------------------------------------------- /magento-vars.php: -------------------------------------------------------------------------------- 1 | .patch`. 4 | After all Magento patches are applied, custom patches are applied in alphabetical order from the root of the Magento project as shown in the following example: 5 | ``` 6 | diff -Naur a/vendor/package-name/ClassName.php b/vendor/package-name/ClassName.php 7 | --- a/vendor/package-name/ClassName.php 8 | +++ b/vendor/package-name/ClassName.php 9 | ... 10 | ``` 11 | 12 | You can use the following command to apply all Magento patches and your custom patches locally. 13 | ``` 14 | php ./vendor/bin/ece-patches apply 15 | ``` 16 | -------------------------------------------------------------------------------- /php.ini: -------------------------------------------------------------------------------- 1 | ; php.ini 2 | 3 | ; 4 | ; Increase PHP memory limit 5 | ; 6 | memory_limit = 1G 7 | 8 | ; 9 | ; enable resulting html compression 10 | ; 11 | zlib.output_compression = on 12 | 13 | ; 14 | ; Increase realpath cache size 15 | ; 16 | realpath_cache_size = 10M 17 | 18 | ; 19 | ; Increase realpath cache ttl 20 | ; 21 | realpath_cache_ttl = 7200 22 | 23 | ; 24 | ; Multi store support 25 | ; 26 | auto_prepend_file = /app/magento-vars.php 27 | 28 | ; 29 | ; Increase max input variables value 30 | ; 31 | max_input_vars = 10000 32 | 33 | ; 34 | ; Setup the session garbage collector 35 | ; 36 | session.gc_probability = 1 37 | 38 | ; 39 | ; Setup opcache configuration 40 | ; 41 | opcache.validate_timestamps = 0 42 | opcache.blacklist_filename="${MAGENTO_CLOUD_APP_DIR}/op-exclude.txt" 43 | opcache.max_accelerated_files=16229 44 | opcache.consistency_checks=0 45 | -------------------------------------------------------------------------------- /.github/.metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "templateVersion": "0.2", 3 | "product": { 4 | "name": "Magento Commerce Cloud Templates", 5 | "description": "This repository contains a sample Magento Commerce (on-premise) instance for you to deploy in the cloud" 6 | }, 7 | "contacts": { 8 | "team": { 9 | "name": "Mystic Mountain", 10 | "DL": "Grp-Mystic-Mountain", 11 | "slackChannel": "#mystic-mountain-team" 12 | } 13 | }, 14 | "ticketTracker": { 15 | "functionalJiraQueue": { 16 | "projectKey": "MCLOUD" 17 | }, 18 | "securityJiraQueue": { 19 | "projectKey": "MAGREQ", 20 | "component": "MAGREQ/Magento Cloud Engineering" 21 | } 22 | }, 23 | "productionCodeBranches": [ 24 | "master", 25 | "2.2.0", 26 | "2.2.1", 27 | "2.2.2", 28 | "2.2.3", 29 | "2.2.4", 30 | "2.2.5", 31 | "2.2.6", 32 | "2.2.7", 33 | "2.2.8", 34 | "2.2.9", 35 | "2.2.10", 36 | "2.2.11", 37 | "2.3.0", 38 | "2.3.1", 39 | "2.3.2", 40 | "2.3.3", 41 | "2.3.4", 42 | "2.3.5", 43 | "2.3.6", 44 | "2.3.7", 45 | "2.4.0", 46 | "2.4.1", 47 | "2.4.2", 48 | "2.4.3", 49 | "2.4.4", 50 | "2.4.5", 51 | "2.4.6", 52 | "2.4.7" 53 | ] 54 | } 55 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | ### Description 12 | 16 | 17 | ### Fixed Issues (if relevant) 18 | 22 | 1. magento/magento-cloud#: Issue title 23 | 2. ... 24 | 25 | ### Manual testing scenarios 26 | 30 | 1. ... 31 | 2. ... 32 | 33 | ### Contribution checklist 34 | - [ ] Pull request has a meaningful description of its purpose 35 | - [ ] All commits are accompanied by meaningful commit messages 36 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "magento/magento-cloud-template", 3 | "description": "eCommerce Platform for Growth (Enterprise Edition)", 4 | "type": "project", 5 | "version": "2.4.8", 6 | "license": "OSL-3.0", 7 | "config": { 8 | "preferred-install": "dist", 9 | "sort-packages": true, 10 | "allow-plugins": { 11 | "dealerdirect/phpcodesniffer-composer-installer": true, 12 | "laminas/laminas-dependency-plugin": true, 13 | "magento/*": true, 14 | "php-http/discovery": true 15 | } 16 | }, 17 | "repositories": { 18 | "repo": { 19 | "type": "composer", 20 | "url": "https://repo.magento.com" 21 | } 22 | }, 23 | "require": { 24 | "magento/magento-cloud-metapackage": ">=2.4.8 <2.4.9", 25 | "magento/composer-root-update-plugin": "^2.0.3" 26 | }, 27 | "suggest": { 28 | "ext-pcntl": "Need for run processes in parallel mode" 29 | }, 30 | "conflict": { 31 | "gene/bluefoot": "*" 32 | }, 33 | "autoload": { 34 | "psr-4": { 35 | "Magento\\Setup\\": "setup/src/Magento/Setup/", 36 | "Magento\\": "app/code/Magento/", 37 | "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/" 38 | }, 39 | "psr-0": { 40 | "": [ 41 | "app/code/", 42 | "generated/code/" 43 | ] 44 | }, 45 | "files": [ 46 | "app/etc/NonComposerComponentRegistration.php" 47 | ], 48 | "exclude-from-classmap": [ 49 | "**/dev/**", 50 | "**/update/**", 51 | "**/Test/**" 52 | ] 53 | }, 54 | "autoload-dev": { 55 | "psr-4": { 56 | "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/", 57 | "Magento\\Tools\\": "dev/tools/Magento/Tools/", 58 | "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/", 59 | "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/", 60 | "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/" 61 | } 62 | }, 63 | "minimum-stability": "alpha", 64 | "prefer-stable": true, 65 | "extra": { 66 | "component_paths": { 67 | "trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js", 68 | "components/jquery": [ 69 | "lib/web/jquery.js", 70 | "lib/web/jquery/jquery.min.js", 71 | "lib/web/jquery/jquery-migrate.js" 72 | ], 73 | "blueimp/jquery-file-upload": "lib/web/jquery/fileUploader", 74 | "components/jqueryui": [ 75 | "lib/web/jquery/jquery-ui.js" 76 | ], 77 | "twbs/bootstrap": [ 78 | "lib/web/jquery/jquery.tabs.js" 79 | ], 80 | "tinymce/tinymce": "lib/web/tiny_mce_5" 81 | }, 82 | "magento-force": true, 83 | "magento-deploystrategy": "copy", 84 | "magento-deploy-ignore": { 85 | "*": [ 86 | "/.gitignore" 87 | ] 88 | } 89 | }, 90 | "scripts": { 91 | "generate-schema": [ 92 | "php ./vendor/bin/ece-tools schema:generate || true" 93 | ], 94 | "post-install-cmd": [ 95 | "@generate-schema" 96 | ], 97 | "post-update-cmd": [ 98 | "@generate-schema" 99 | ] 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /.magento.app.yaml: -------------------------------------------------------------------------------- 1 | # This file describes an application. You can have multiple applications 2 | # in the same project. 3 | 4 | # The name of this app. Must be unique within a project. 5 | name: mymagento 6 | 7 | # The toolstack used to build the application. 8 | type: php:8.4 9 | build: 10 | flavor: none 11 | 12 | dependencies: 13 | php: 14 | composer/composer: '2.8.4' 15 | 16 | # Enable extensions required by Magento 2 17 | runtime: 18 | extensions: 19 | - xsl 20 | - sodium 21 | 22 | # The relationships of the application with services or other applications. 23 | # The left-hand side is the name of the relationship as it will be exposed 24 | # to the application in the environment variable. The right-hand 25 | # side is in the form `:`. 26 | relationships: 27 | database: "mysql:mysql" 28 | # redis: "redis:redis" 29 | opensearch: "opensearch:opensearch" 30 | valkey: "cache:valkey" 31 | 32 | # The configuration of app when it is exposed to the web. 33 | web: 34 | locations: 35 | "/": 36 | # The public directory of the app, relative to its root. 37 | root: "pub" 38 | # The front-controller script to send non-static requests to. 39 | passthru: "/index.php" 40 | index: 41 | - index.php 42 | expires: -1 43 | scripts: true 44 | allow: false 45 | rules: 46 | \.(css|js|map|hbs|gif|jpe?g|png|tiff|wbmp|ico|jng|bmp|svgz|midi?|mp?ga|mp2|mp3|m4a|ra|weba|3gpp?|mp4|mpe?g|mpe|ogv|mov|webm|flv|mng|asx|asf|wmv|avi|ogx|swf|jar|ttf|eot|woff|otf|html?)$: 47 | allow: true 48 | ^/sitemap(.*)\.xml$: 49 | passthru: "/media/sitemap$1.xml" 50 | "/media": 51 | root: "pub/media" 52 | allow: true 53 | scripts: false 54 | expires: 1y 55 | passthru: "/get.php" 56 | "/static": 57 | root: "pub/static" 58 | allow: true 59 | scripts: false 60 | expires: 1y 61 | passthru: "/front-static.php" 62 | rules: 63 | ^/static/version\d+/(?.*)$: 64 | passthru: "/static/$resource" 65 | 66 | # The size of the persistent disk of the application (in MB). 67 | disk: 5120 68 | 69 | # The mounts that will be performed when the package is deployed. 70 | mounts: 71 | "var": "shared:files/var" 72 | "app/etc": "shared:files/etc" 73 | "pub/media": "shared:files/media" 74 | "pub/static": "shared:files/static" 75 | 76 | hooks: 77 | # We run build hooks before your application has been packaged. 78 | build: | 79 | set -e 80 | composer install --no-dev 81 | php ./vendor/bin/ece-tools run scenario/build/generate.xml 82 | php ./vendor/bin/ece-tools run scenario/build/transfer.xml 83 | # We run deploy hook after your application has been deployed and started. 84 | deploy: | 85 | php ./vendor/bin/ece-tools run scenario/deploy.xml 86 | # We run post deploy hook to clean and warm the cache. Available with ECE-Tools 2002.0.10. 87 | post_deploy: | 88 | php ./vendor/bin/ece-tools run scenario/post-deploy.xml 89 | 90 | # Default Magento 2 cron jobs 91 | crons: 92 | cronrun: 93 | spec: "* * * * *" 94 | cmd: "php bin/magento cron:run" 95 | 96 | # Environment variables 97 | variables: 98 | env: 99 | CONFIG__DEFAULT__PAYPAL_ONBOARDING__MIDDLEMAN_DOMAIN: 'payment-broker.magento.com' 100 | CONFIG__STORES__DEFAULT__PAYPAL__NOTATION_CODE: 'Magento_Enterprise_Cloud' 101 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Magento 2.4.8 Magento Commerce Cloud 2 | 3 | This repository contains a sample Magento Commerce (on-premise) version 2.4.8 instance for you to deploy in the cloud. You must have an active Magento Commerce Cloud user license to use the example in this repository. 4 | 5 | The example requires the use of [Composer](https://getcomposer.org/doc/) to load and manage dependencies and Magento vendor folders. 6 | 7 | - [Authentication](#authentication) 8 | - [Authenticating in Docker](#authenticating-in-docker) 9 | - [Repository structure](#repository-structure) 10 | - [Developer documentation](#developer-documentation) 11 | 12 | ## Authentication 13 | 14 | You must have an authentication key to access the Magento Commerce repository and to enable install and update commands for your Magento Commerce Cloud project. 15 | The following method is best to prevent accidental exposure of credentials, such as pushing an `auth.json` file to a public repository. If you plan to use Docker for your local development, then jump to the [Authenticating in Docker](#authenticating-in-docker) section. 16 | 17 | To add authentication keys using an environment variable: 18 | 19 | 1. In the _Project Web UI_, click the configuration icon in the upper left corner. 20 | 21 | 1. In the _Configure Project_ view, click the **Variables** tab. 22 | 23 | 1. Click **Add Variable**. 24 | 25 | 1. In the _Name_ field, enter `env:COMPOSER_AUTH`. 26 | 27 | 1. In the _Value_ field, add the following and replace `` and `` with your Magento Commerce Cloud authentication credentials. 28 | 29 | ```json 30 | { 31 | "http-basic": { 32 | "repo.magento.com": { 33 | "username": "", 34 | "password": "" 35 | } 36 | } 37 | } 38 | ``` 39 | 40 | 1. Select **Visible during build** and deselect **Visible at run**. 41 | 42 | 1. Click **Add Variable**. 43 | 44 | See [Adding Magento authentication keys](https://devdocs.magento.com/cloud/setup/first-time-setup-import-prepare.html#auth-json). 45 | 46 | ### Authenticating in Docker 47 | 48 | You must have an `auth.json` file that contains your Magento Commerce authorization credentials in your Magento Commerce Cloud root directory. 49 | 50 | 1. Using a text editor, create an `auth.json` file and save it in your Magento root directory. 51 | 52 | 1. Replace and with your Magento Commerce authentication credentials. 53 | 54 | ```json 55 | { 56 | "http-basic": { 57 | "repo.magento.com": { 58 | "username": "", 59 | "password": "" 60 | } 61 | } 62 | } 63 | ``` 64 | 65 | 1. Save your changes to `auth.json` file and exit the text editor. 66 | 67 | To use Docker for local development, see [Launching a Docker configuration](https://devdocs.magento.com/cloud/docker/docker-config.html). 68 | 69 | ## Repository structure 70 | 71 | The following is a list of the specific files required for this example to work in the Magento Commerce Cloud: 72 | 73 | ```bash 74 | .magento/ 75 | /routes.yaml 76 | /services.yaml 77 | .magento.app.yaml 78 | auth.json 79 | composer.json 80 | magento-vars.php 81 | php.ini 82 | ``` 83 | 84 | - `.magento/routes.yaml`—redirects `www` to the naked domain and `php` application to serve HTTP. 85 | - `.magento/services.yaml`—sets up a MySQL instance, including Redis and ElasticSearch. 86 | - `composer.json`—fetches the Magento Enterprise Edition and configuration scripts to prepare your application. 87 | 88 | ## Developer documentation 89 | 90 | See the [Magento Commerce Cloud Guide](https://devdocs.magento.com/cloud/bk-cloud.html). 91 | 92 | ## License 93 | Each Magento source file included in this distribution is licensed under the OSL-3.0 license. 94 | 95 | Please see [LICENSE.txt](https://github.com/magento/magento-cloud/blob/master/LICENSE.txt) for the full text of the [Open Software License v. 3.0 (OSL-3.0)](http://opensource.org/licenses/osl-3.0.php). 96 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Magento Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our project and community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. 6 | 7 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 8 | 9 | ## Our Standards 10 | 11 | Examples of behavior that contribute to a positive environment for our project and community include: 12 | 13 | * Demonstrating empathy and kindness toward other people 14 | * Being respectful of differing opinions, viewpoints, and experiences 15 | * Giving and gracefully accepting constructive feedback 16 | * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 17 | * Focusing on what is best, not just for us as individuals but for the overall community 18 | 19 | Examples of unacceptable behavior include: 20 | 21 | * The use of sexualized language or imagery, and sexual attention or advances of any kind 22 | * Trolling, insulting or derogatory comments, and personal or political attacks 23 | * Public or private harassment 24 | * Publishing others’ private information, such as a physical or email address, without their explicit permission 25 | * Other conduct which could reasonably be considered inappropriate in a professional setting 26 | 27 | ## Our Responsibilities 28 | 29 | Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any instances of unacceptable behavior. 30 | 31 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for behaviors that they deem inappropriate, threatening, offensive, or harmful. 32 | 33 | ## Scope 34 | 35 | This Code of Conduct applies when an individual is representing the project or its community both within project spaces and in public spaces. Examples of representing a project or community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 36 | 37 | ## Enforcement 38 | 39 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by first contacting the project team at engcom@adobe.com. Oversight of Adobe projects is handled by the Adobe Open Source Office, which has final say in any violations and enforcement of this Code of Conduct and can be reached at Grp-opensourceoffice@adobe.com. All complaints will be reviewed and investigated promptly and fairly. 40 | 41 | The project team must respect the privacy and security of the reporter of any incident. 42 | 43 | Project maintainers who do not follow or enforce the Code of Conduct may face temporary or permanent repercussions as determined by other members of the project's leadership or the Adobe Open Source Office. 44 | 45 | ## Enforcement Guidelines 46 | 47 | Project maintainers will follow these Community Impact Guidelines in determining the consequences for any action they deem to be in violation of this Code of Conduct: 48 | 49 | **1. Correction** 50 | 51 | Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 52 | 53 | Consequence: A private, written warning from project maintainers describing the violation and why the behavior was unacceptable. A public apology may be requested from the violator before any further involvement in the project by violator. 54 | 55 | **2. Warning** 56 | 57 | Community Impact: A relatively minor violation through a single incident or series of actions. 58 | 59 | Consequence: A written warning from project maintainers that includes stated consequences for continued unacceptable behavior. Violator must refrain from interacting with the people involved for a specified period of time as determined by the project maintainers, including, but not limited to, unsolicited interaction with those enforcing the Code of Conduct through channels such as community spaces and social media. Continued violations may lead to a temporary or permanent ban. 60 | 61 | **3. Temporary Ban** 62 | 63 | Community Impact: A more serious violation of community standards, including sustained unacceptable behavior. 64 | 65 | Consequence: A temporary ban from any interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Failure to comply with the temporary ban may lead to a permanent ban. 66 | 67 | **4. Permanent Ban** 68 | 69 | Community Impact: Demonstrating a consistent pattern of violation of community standards or an egregious violation of community standards, including, but not limited to, sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 70 | 71 | Consequence: A permanent ban from any interaction with the community. 72 | 73 | ## Attribution 74 | 75 | This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. 76 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Open Software License ("OSL") v. 3.0 3 | 4 | This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: 5 | 6 | Licensed under the Open Software License version 3.0 7 | 8 | 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: 9 | 10 | 1. to reproduce the Original Work in copies, either alone or as part of a collective work; 11 | 12 | 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; 13 | 14 | 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License; 15 | 16 | 4. to perform the Original Work publicly; and 17 | 18 | 5. to display the Original Work publicly. 19 | 20 | 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. 21 | 22 | 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. 23 | 24 | 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. 25 | 26 | 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). 27 | 28 | 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. 29 | 30 | 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. 31 | 32 | 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. 33 | 34 | 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). 35 | 36 | 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. 37 | 38 | 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. 39 | 40 | 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. 41 | 42 | 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 43 | 44 | 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 45 | 46 | 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. 47 | 48 | 16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. --------------------------------------------------------------------------------