├── screenshot └── cosmic-neofetch.png ├── renovate.json ├── cosign.pub ├── flatpaks.txt ├── Containerfile ├── README.md ├── .github └── workflows │ ├── build_iso.yml │ └── build.yml └── LICENSE /screenshot/cosmic-neofetch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ublue-os/cosmic/HEAD/screenshot/cosmic-neofetch.png -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /cosign.pub: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEHLRpBfPRYiMl9wb7s6fx47PzzNWu 3 | 3zyJgXhWEvxoOgwv9CpwjbvUwR9qHxNMWkJhuGE6cjDA2hpy1I6NbA+24Q== 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /flatpaks.txt: -------------------------------------------------------------------------------- 1 | app/com.github.tchx84.Flatseal/x86_64/stable 2 | app/io.missioncenter.MissionCenter/x86_64/stable 3 | app/org.mozilla.firefox/x86_64/stable 4 | app/org.mozilla.Thunderbird/x86_64/stable 5 | app/org.gnome.baobab/x86_64/stable 6 | app/org.gnome.Calculator/x86_64/stable 7 | app/org.gnome.Calendar/x86_64/stable 8 | app/org.gnome.Characters/x86_64/stable 9 | app/org.gnome.clocks/x86_64/stable 10 | app/org.gnome.Connections/x86_64/stable 11 | app/org.gnome.Contacts/x86_64/stable 12 | app/org.gnome.Papers/x86_64/stable 13 | app/org.gnome.font-viewer/x86_64/stable 14 | app/org.gnome.Logs/x86_64/stable 15 | app/org.gnome.Loupe/x86_64/stable 16 | app/org.gnome.Maps/x86_64/stable 17 | app/org.gnome.Weather/x86_64/stable 18 | -------------------------------------------------------------------------------- /Containerfile: -------------------------------------------------------------------------------- 1 | ARG SOURCE_IMAGE="${SOURCE_IMAGE:-base-main}" 2 | ARG SOURCE_ORG="${SOURCE_ORG:-ghcr.io/ublue-os}" 3 | ARG BASE_IMAGE="${SOURCE_ORG}/${SOURCE_IMAGE}" 4 | ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-41}" 5 | 6 | FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} 7 | ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-41}" 8 | 9 | # Build in one step 10 | RUN if [[ "${FEDORA_MAJOR_VERSION}" == "rawhide" ]]; then \ 11 | curl -Lo /etc/yum.repos.d/_copr_ryanabx-cosmic.repo \ 12 | https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/repo/fedora-rawhide/ryanabx-cosmic-epoch-fedora-rawhide.repo \ 13 | ; else curl -Lo /etc/yum.repos.d/_copr_ryanabx-cosmic.repo \ 14 | https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/repo/fedora-$(rpm -E %fedora)/ryanabx-cosmic-epoch-fedora-$(rpm -E %fedora).repo \ 15 | ; fi && \ 16 | rpm-ostree install \ 17 | cosmic-desktop && \ 18 | rpm-ostree install \ 19 | gnome-keyring-pam NetworkManager-tui \ 20 | NetworkManager-openvpn xdg-user-dirs && \ 21 | systemctl disable gdm || true && \ 22 | systemctl disable sddm || true && \ 23 | systemctl enable cosmic-greeter && \ 24 | ostree container commit && \ 25 | mkdir -p /var/tmp && chmod -R 1777 /var/tmp 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Fedora Atomic Cosmic 2 | 3 | # THIS IMAGE IS DEPRECATED 4 | ### Use: https://github.com/ublue-os/main/pkgs/container/cosmic-atomic-main 5 | 6 | Fedora Atomic Desktop with the COSMIC Desktop Environment included. 7 | 8 | > [!NOTE] 9 | > These images are not associated with System76! If you have issues, please understand they might be COSMIC related, OR they might be related to this image. 10 | > The COSMIC Desktop Environment is still ALPHA. Do not daily drive this image on your main workstation unless you know what you're doing. 11 | 12 | ![Neofetch of COSMIC desktop in Fedora](./screenshot/cosmic-neofetch.png) 13 | 14 | Like Fedora? Want to try the latest from the work in progress Cosmic Desktop Environment? Want to help find bugs and/or contribute to COSMIC development, but don't want to work in a VM or install Pop!\_OS? None of the above things but something else??!? 15 | 16 | Go ahead and try one of the images [@ryanabx](https://github.com/ryanabx) and the Universal Blue project have created! 17 | 18 | ## About 19 | 20 | This project aims to provide a base Fedora Atomic image with the COSMIC Desktop Environment included. This should be treated just like any other base image provided by Universal Blue, and it is expected that you use this image to build your own custom image to meet your specific requirements. 21 | 22 | ### Scope 23 | 24 | The base COSMIC image is intended to be a starting point for users to build their own custom images. Therefore, the image is kept as minimal as possible, with only the COSMIC Desktop Environment and a few other essential packages included. 25 | This is to ensure that the image is as flexible and unopinionated as possible. 26 | 27 | ### What's Included 28 | 29 | - Essential tweaks and packages provided by [ublue-os/main](https://github.com/ublue-os/main) 30 | - COSMIC Desktop Environment 31 | - (ISO) Pre-installed Flatpaks 32 | 33 | ## Installation 34 | 35 | Download an ISO from the latest [GitHub Actions build artifacts](https://github.com/ublue-os/cosmic/actions/workflows/build_iso.yml?query=branch%3Amain+is%3Asuccess). GitHub requires you be logged in to download. 36 | 37 | ### Variants 38 | 39 | - `cosmic`: Only the COSMIC Desktop 40 | - `cosmic-silverblue`: Fedora Silverblue (GNOME) with the COSMIC Desktop 41 | - `cosmic-kinoite`: Fedora Kinoite (KDE) with the COSMIC Desktop 42 | 43 | We include multiple desktop environments in some of the variants as COSMIC is still early in development, and there may be occasions where you need to switch to a different desktop environment to get work done. These will be removed as COSMIC matures. 44 | 45 | Each variant has an `nvidia` version that includes the proprietary NVIDIA drivers. 46 | 47 | ### Secure Boot 48 | 49 | Secure Boot is supported by default on our systems, providing an additional layer of security. After the first installation, you will be prompted to enroll the secure boot key in the BIOS. 50 | 51 | Enter the password `universalblue` when prompted to enroll our key. 52 | 53 | If this step is not completed during the initial setup, you can manually enroll the key by running the following command in the terminal: 54 | 55 | `ujust enroll-secure-boot-key` 56 | 57 | Secure boot is supported with our custom key. The pub key can be found in the root of the akmods repository [here](https://github.com/ublue-os/akmods/raw/main/certs/public_key.der). 58 | If you'd like to enroll this key prior to installation or rebase, download the key and run the following: 59 | 60 | ```bash 61 | sudo mokutil --timeout -1 62 | sudo mokutil --import public_key.der 63 | ``` 64 | 65 | ## Issues 66 | 67 | For issues with the images, feel free to submit an issue on this repo. For COSMIC related issues, please see [cosmic-epoch/issues](https://github.com/pop-os/cosmic-epoch/issues). 68 | -------------------------------------------------------------------------------- /.github/workflows/build_iso.yml: -------------------------------------------------------------------------------- 1 | name: Build Cosmic ISOs 2 | on: 3 | workflow_dispatch: 4 | pull_request: 5 | branches: 6 | - main 7 | paths: 8 | - ".github/workflows/build_iso.yml" 9 | 10 | env: 11 | IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} 12 | 13 | concurrency: 14 | group: ${{ github.workflow }}-${{ github.ref || github.run_id }} 15 | cancel-in-progress: true 16 | 17 | jobs: 18 | build-iso: 19 | runs-on: ubuntu-24.04 20 | permissions: 21 | contents: read 22 | packages: write 23 | id-token: write 24 | strategy: 25 | fail-fast: false 26 | matrix: 27 | image_name: 28 | [cosmic, cosmic-nvidia, cosmic-silverblue, cosmic-silverblue-nvidia] 29 | fedora_version: [41] 30 | env: 31 | IMAGE_TAG: ${{ matrix.fedora_version }}-amd64 32 | IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} 33 | 34 | steps: 35 | - name: Checkout 36 | uses: actions/checkout@v4 37 | 38 | - name: Get Flatpak dependencies 39 | id: flatpak-dependencies 40 | env: 41 | IMAGE_FULL: ${{ env.IMAGE_REGISTRY }}/${{ matrix.image_name }}:${{ env.IMAGE_TAG }} 42 | shell: bash 43 | run: | 44 | set -euox pipefail 45 | 46 | IMAGE="${IMAGE_FULL}" 47 | 48 | # Create temporary directory 49 | TEMP_FLATPAK_INSTALL_DIR=$(mktemp -d -p /tmp flatpak-XXXXXX) 50 | FLATPAK_REFS_DIR=./flatpak-refs 51 | FLATPAK_REFS_DIR_ABS=$(realpath "${FLATPAK_REFS_DIR}") 52 | mkdir -p "${FLATPAK_REFS_DIR}" 53 | mv flatpaks.txt "${FLATPAK_REFS_DIR_ABS}/flatpaks.txt" 54 | 55 | # Read the list of Flatpak packages from the manifest 56 | FLATPAK_REFS=() 57 | while IFS= read -r line; do 58 | FLATPAK_REFS+=("$line") 59 | done < "${FLATPAK_REFS_DIR}/flatpaks.txt" 60 | 61 | echo "Flatpak refs: ${FLATPAK_REFS[@]}" 62 | 63 | # Generate installation script 64 | cat < "${TEMP_FLATPAK_INSTALL_DIR}/install-flatpaks.sh" 65 | mkdir -p /flatpak/flatpak /flatpak/triggers 66 | mkdir /var/tmp 67 | chmod -R 1777 /var/tmp 68 | flatpak config --system --set languages "*" 69 | flatpak remote-add --system flathub https://flathub.org/repo/flathub.flatpakrepo 70 | flatpak install --system -y flathub ${FLATPAK_REFS[@]} 71 | ostree refs --repo=\${FLATPAK_SYSTEM_DIR}/repo | grep '^deploy/' | grep -v 'org\.freedesktop\.Platform\.openh264' | sed 's/^deploy\///g' > /output/flatpaks-with-deps 72 | EOF 73 | docker run --rm --privileged \ 74 | --entrypoint /bin/bash \ 75 | -e FLATPAK_SYSTEM_DIR=/flatpak/flatpak \ 76 | -e FLATPAK_TRIGGERS_DIR=/flatpak/triggers \ 77 | -v ${FLATPAK_REFS_DIR_ABS}:/output \ 78 | -v ${TEMP_FLATPAK_INSTALL_DIR}:/temp_flatpak_install_dir \ 79 | ${IMAGE} /temp_flatpak_install_dir/install-flatpaks.sh 80 | docker rmi ${IMAGE} 81 | cat ${FLATPAK_REFS_DIR}/flatpaks-with-deps 82 | 83 | echo "FLATPAK_REFS_DIR=${FLATPAK_REFS_DIR}" >> $GITHUB_OUTPUT 84 | 85 | - name: Build ISOs 86 | uses: jasonn3/build-container-installer@v1.2.3 87 | id: build 88 | with: 89 | iso_name: ${{ matrix.image_name }}-${{ matrix.fedora_version }}.iso 90 | arch: x86_64 91 | image_name: ${{ matrix.image_name }} 92 | image_repo: ${{ env.IMAGE_REGISTRY }} 93 | # We cannot use Silverblue variant since we need the user creation options in anaconda 94 | variant: "Kinoite" 95 | version: ${{ matrix.fedora_version }} 96 | image_tag: ${{ env.IMAGE_TAG }} 97 | secure_boot_key_url: "https://github.com/ublue-os/akmods/raw/main/certs/public_key.der" 98 | enrollment_password: "universalblue" 99 | flatpak_remote_refs_dir: ${{ steps.flatpak-dependencies.outputs.FLATPAK_REFS_DIR }} 100 | enable_flatpak_dependencies: false 101 | 102 | - name: Upload ISOs and Checksum to Job Artifacts 103 | uses: actions/upload-artifact@v4 104 | with: 105 | name: ${{ matrix.image_name }}-${{ env.IMAGE_TAG }} 106 | path: | 107 | ${{ steps.build.outputs.iso_path }} 108 | ${{ steps.build.outputs.iso_path }}-CHECKSUM 109 | if-no-files-found: error 110 | retention-days: 0 111 | compression-level: 0 112 | overwrite: true 113 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: build-ublue 2 | 3 | on: 4 | pull_request: 5 | merge_group: 6 | schedule: 7 | - cron: "0 15 * * *" # 3pm UTC everyday (timed against official fedora container pushes) 8 | workflow_dispatch: 9 | 10 | env: 11 | IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} 12 | 13 | concurrency: 14 | group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.fedora_version }} 15 | cancel-in-progress: true 16 | 17 | jobs: 18 | build: 19 | name: Build 20 | runs-on: ubuntu-24.04 21 | permissions: 22 | contents: read 23 | packages: write 24 | id-token: write 25 | strategy: 26 | fail-fast: false 27 | matrix: 28 | arch: 29 | - amd64 30 | version: 31 | - 41 32 | flavor: 33 | - base 34 | - base-nvidia 35 | - silverblue 36 | - silverblue-nvidia 37 | - kinoite 38 | - kinoite-nvidia 39 | 40 | steps: 41 | # Checkout push-to-registry action GitHub repository 42 | - name: Maximize build space 43 | uses: ublue-os/remove-unwanted-software@v9 44 | with: 45 | remove-android: 'true' 46 | 47 | - name: Checkout Push to Registry action 48 | uses: actions/checkout@v4 49 | 50 | - name: Generate tags 51 | id: generate-tags 52 | shell: bash 53 | run: | 54 | # Generate a timestamp for creating an image version history 55 | TIMESTAMP="$(date +%Y%m%d)" 56 | MAJOR_VERSION="$(echo ${{ matrix.version }} | cut -d . -f 1)" 57 | COMMIT_TAGS=() 58 | BUILD_TAGS=() 59 | # Have tags for tracking builds during pull request 60 | SHA_SHORT="${GITHUB_SHA::7}" 61 | 62 | # Using clever bash string templating, https://stackoverflow.com/q/40771781 63 | # don't make malformed tags if $MAJOR_VERSION is empty (base-image didn't include proper labels) -- 64 | COMMIT_TAGS+=("${SHA_SHORT}${MAJOR_VERSION:+-$MAJOR_VERSION}") 65 | BUILD_TAGS=("${MAJOR_VERSION}" "${MAJOR_VERSION}-${{ matrix.arch }}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}-${{ matrix.arch }}") 66 | # -- 67 | if [ "${MAJOR_VERSION}" == "40" ]; then 68 | BUILD_TAGS+=("${TIMESTAMP}") 69 | BUILD_TAGS+=("latest-${{ matrix.arch }}") 70 | fi 71 | 72 | alias_tags=("${BUILD_TAGS[@]}") 73 | echo "Generated the following build tags: " 74 | for TAG in "${BUILD_TAGS[@]}"; do 75 | echo "${TAG}" 76 | done 77 | echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT 78 | 79 | IMAGE_NAME="cosmic-${{ matrix.flavor }}" 80 | if [[ "$IMAGE_NAME" == *-base* ]]; then 81 | IMAGE_NAME="${IMAGE_NAME//-base/}" 82 | fi 83 | echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV 84 | 85 | # Build metadata 86 | - name: Image Metadata 87 | uses: docker/metadata-action@v5 88 | id: meta 89 | with: 90 | images: | 91 | ${{ env.IMAGE_NAME }} 92 | labels: | 93 | org.opencontainers.image.title=${{ env.IMAGE_NAME }} 94 | org.opencontainers.image.version=${{ matrix.version }} 95 | org.opencontainers.image.description=${{ env.description }} 96 | io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/cosmic/main/README.md 97 | io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4 98 | 99 | 100 | # Create Variables. Use UBlue images for amd64, fedora-ostree desktop for arm64 101 | - name: matrix-variables 102 | run: | 103 | if [[ ${{ matrix.arch }} = "amd64" && ${{ matrix.version }} != "rawhide" ]]; then 104 | echo "SOURCE_ORG=ghcr.io/ublue-os" >> $GITHUB_ENV 105 | if [[ "${{ matrix.flavor }}" =~ "nvidia" ]]; then 106 | echo "SOURCE_IMAGE=${{ matrix.flavor }}" >> $GITHUB_ENV 107 | else 108 | echo "SOURCE_IMAGE=${{ matrix.flavor }}-main" >> $GITHUB_ENV 109 | fi 110 | else 111 | echo "SOURCE_ORG=quay.io/fedora-ostree-desktops" >> $GITHUB_ENV 112 | echo "SOURCE_IMAGE=${{ matrix.flavor }}" >> $GITHUB_ENV 113 | fi 114 | 115 | - name: Build Image 116 | id: build_image 117 | run: | 118 | sudo buildah build \ 119 | --arch "${{ matrix.arch }}" \ 120 | --format "docker" \ 121 | --build-arg FEDORA_MAJOR_VERSION="${{ matrix.version }}" \ 122 | --build-arg SOURCE_IMAGE="${{ env.SOURCE_IMAGE }}" \ 123 | --build-arg SOURCE_ORG="${{ env.SOURCE_ORG }}" \ 124 | --tag raw-img . 125 | 126 | # Reprocess raw-img using rechunker which will delete it 127 | - name: Run Rechunker 128 | id: rechunk 129 | uses: hhd-dev/rechunk@v1.1.3 130 | with: 131 | rechunk: 'ghcr.io/hhd-dev/rechunk:v0.8.1' 132 | ref: 'raw-img' 133 | prev-ref: "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}" 134 | skip_compression: true 135 | version: ${{ matrix.version }} 136 | labels: | 137 | org.opencontainers.image.title=${{ env.IMAGE_NAME }} 138 | org.opencontainers.image.description=${{ env.description }} 139 | io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/cosmic/main/README.md 140 | io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4 141 | 142 | - name: Load in podman and tag 143 | run: | 144 | IMAGE=$(podman pull ${{ steps.rechunk.outputs.ref }}) 145 | sudo rm -rf ${{ steps.rechunk.outputs.output }} 146 | for tag in ${{ steps.generate-tags.outputs.alias_tags }}; do 147 | podman tag $IMAGE ${{ env.IMAGE_NAME }}:$tag 148 | done 149 | 150 | # Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR. 151 | # https://github.com/macbre/push-to-ghcr/issues/12 152 | - name: Lowercase Registry 153 | id: registry_case 154 | uses: ASzc/change-string-case-action@v6 155 | with: 156 | string: ${{ env.IMAGE_REGISTRY }} 157 | 158 | - name: Login to GitHub Container Registry 159 | uses: docker/login-action@v3 160 | if: github.event_name != 'pull_request' 161 | with: 162 | registry: ghcr.io 163 | username: ${{ github.actor }} 164 | password: ${{ secrets.GITHUB_TOKEN }} 165 | 166 | # Push the image to GHCR (Image Registry) 167 | - name: Push To GHCR 168 | uses: redhat-actions/push-to-registry@v2 169 | if: github.event_name != 'pull_request' 170 | id: push 171 | with: 172 | registry: ${{ steps.registry_case.outputs.lowercase }} 173 | image: ${{ env.IMAGE_NAME }} 174 | tags: ${{ steps.generate-tags.outputs.alias_tags }} 175 | extra-args: | 176 | --disable-content-trust 177 | 178 | # Sign container 179 | - uses: sigstore/cosign-installer@v3.8.1 180 | if: github.event_name != 'pull_request' 181 | 182 | - name: Sign container image 183 | if: github.event_name != 'pull_request' 184 | run: | 185 | cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}@${TAGS} 186 | env: 187 | TAGS: ${{ steps.push.outputs.digest }} 188 | COSIGN_EXPERIMENTAL: false 189 | COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }} 190 | 191 | check: 192 | name: Check all builds successful 193 | if: ${{ !cancelled() }} 194 | runs-on: ubuntu-latest 195 | needs: [build] 196 | steps: 197 | - name: Exit on failure 198 | if: ${{ needs.build.result == 'failure' }} 199 | shell: bash 200 | run: exit 1 201 | - name: Exit 202 | shell: bash 203 | run: exit 0 204 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | --------------------------------------------------------------------------------