|
1 |
| -<br/> |
2 |
| -<p align="center"> |
3 |
| - <a href="https://sulu.io/" target="_blank"> |
4 |
| - <img width="50%" src="https://sulu.io/website/images/sulu.svg" alt="Sulu logo"> |
5 |
| - </a> |
6 |
| -</p> |
| 1 | +# Sulu Cluster |
7 | 2 |
|
8 |
| -<br/> |
9 |
| -<p align="center"> |
10 |
| - <a href="https://github.com/sulu/skeleton/blob/master/LICENSE" target="_blank"> |
11 |
| - <img src="https://img.shields.io/github/license/sulu/skeleton.svg" alt="GitHub license"> |
12 |
| - </a> |
13 |
| - <a href="https://github.com/sulu/skeleton/releases" target="_blank"> |
14 |
| - <img src="https://img.shields.io/github/tag/sulu/skeleton.svg" alt="GitHub tag (latest SemVer)"> |
15 |
| - </a> |
16 |
| - <a href="https://travis-ci.org/sulu/skeleton" target="_blank"> |
17 |
| - <img src="https://img.shields.io/travis/sulu/skeleton.svg?label=travis" alt="Travis build"> |
18 |
| - </a> |
19 |
| -</p> |
20 |
| -<br/> |
| 3 | +1. Build your container |
21 | 4 |
|
22 |
| -[Sulu](https://sulu.io/) is a highly extensible open-source **PHP content management system based** on the [Symfony](https://symfony.com/) framework. Sulu is developed to deliver robust **multi-lingual and multi-portal websites** while providing an **intuitive and extensible administration interface** to manage the full content lifecycle. |
23 |
| - |
24 |
| -Have a look at the official [Sulu website](https://sulu.io/) for a comprehensive list of Sulus features, core values and use cases. |
25 |
| - |
26 |
| -<br/> |
27 |
| -<p align="center"> |
28 |
| - <img width="80%" src="https://sulu.io/uploads/media/800x@2x/07/167-ezgif.gif?v=2" alt="Sulu Slideshow"> |
29 |
| -</p> |
30 |
| -<br/> |
31 |
| - |
32 |
| -This repository provides the recommended **project template for starting your new project based on the Sulu content management system**. |
33 |
| -The project template follows the best-practices of the [Symfony](https://symfony.com/) framework and builds upon tho official [symfony/skeleton](https://github.com/symfony/skeleton) template. In addition, it requires and configures the Sulu content management system core framework [sulu/sulu](https://github.com/sulu/sulu). |
34 |
| - |
35 |
| -If you want to **extend your already set up Sulu project**, visit the [Sulu organization](https://github.com/sulu) on GitHub for a complete list of official Sulu bundles. |
36 |
| - |
37 |
| - |
38 |
| -## 🚀 Installation and Documentation |
39 |
| - |
40 |
| -Starting a new Sulu project with the [sulu/skeleton](https://github.com/sulu/skeleton) template is as easy as executing the following [composer](https://getcomposer.org/) command: |
41 |
| - |
42 |
| -```bash |
43 |
| -composer create-project sulu/skeleton my-project |
| 5 | +``` |
| 6 | +docker build . -t eu.gcr.io/sulu-io/sulu-cluster:1.0.0 |
| 7 | +docker push eu.gcr.io/sulu-io/sulu-cluster:1.0.0 |
44 | 8 | ```
|
45 | 9 |
|
46 |
| -Afterwards, visit the official [Sulu documentation](http://docs.sulu.io/en/latest/book/getting-started.html) to find out **how to initialize and configure your project** to your specific needs. |
47 |
| - |
48 |
| - |
49 |
| -## ❤️ Community and Contributions |
| 10 | +2. Create Cluster |
50 | 11 |
|
51 |
| -The Sulu content management system is a **community-driven open source project** backed by various partner companies. We are committed to a fully transparent development process and **highly appreciate any contributions**. Whether you are helping us fixing bugs, proposing new feature, improving our documentation or spreading the word - **we would love to have you as part of the Sulu community**. |
| 12 | +``` |
| 13 | +gcloud beta container --project "sulu-io" clusters create "my-first-cluster-1" --zone "europe-west3-c" --no-enable-basic-auth --cluster-version "1.15.12-gke.2" --release-channel "stable" --machine-type "g1-small" --image-type "COS" --disk-type "pd-standard" --disk-size "32" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --num-nodes "3" --no-enable-stackdriver-kubernetes --enable-ip-alias --network "projects/sulu-io/global/networks/default" --subnetwork "projects/sulu-io/regions/europe-west3/subnetworks/default" --default-max-pods-per-node "110" --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 |
| 14 | +``` |
52 | 15 |
|
| 16 | +3. Connect to cluster |
53 | 17 |
|
54 |
| -## 📫 Have a question? Want to chat? Run into a problem? |
| 18 | +``` |
| 19 | +gcloud container clusters get-credentials my-first-cluster-1 --zone europe-west3-c --project sulu-io |
| 20 | +``` |
55 | 21 |
|
56 |
| -We are happy to welcome you in our official [Slack channel](https://sulu.io/services-and-support)! Obviously you can always **reach out to us directly** via the [Sulu twitter account](https://twitter.com/sulu) or post your question on [StackOverflow](https://stackoverflow.com/questions/tagged/sulu) with the official `sulu` tag. |
| 22 | +4. Create service account |
57 | 23 |
|
| 24 | +Download the key and add cloud-storage admin permissions to the service account in a bucket. |
58 | 25 |
|
59 |
| -## 🤝 Found a bug? Missing a specific feature? |
| 26 | +5. Configure secret values |
60 | 27 |
|
61 |
| -Feel free to **file a new issue** with a respective title and description on the the [sulu/sulu](https://github.com/sulu/sulu/issues) repository. If you already found a solution to your problem, **we would love to review your pull request**! Have a look at our [contribution guidelines](http://docs.sulu.io/en/latest/developer/contributing/) to find out about our coding standards. |
| 28 | +Copy the `deploy/secrets.dist.yaml` to `deploy/secrets.yaml`. |
62 | 29 |
|
| 30 | +Configure the redis password and the google cloud credentials in the secrets file. |
63 | 31 |
|
64 |
| -## ✅ Requirements |
| 32 | +6. Install App |
65 | 33 |
|
66 |
| -Sulu requires a **PHP version higher or equal to 7.2** and is compatible with every **Symfony version starting from 4.3**. Have a look at the `require` section in the [composer.json](https://github.com/sulu/sulu/blob/master/composer.json) of the [sulu/sulu](https://github.com/sulu/sulu) core framework to find an **up-to-date list of the requirements** of Sulu content management system. |
| 34 | +``` |
| 35 | +cd deploy |
| 36 | +helm3 dep build |
| 37 | +helm3 install sulu-cluster . -f secrets.yaml |
| 38 | +``` |
67 | 39 |
|
| 40 | +7. Upgrade App |
68 | 41 |
|
69 |
| -## 📘 License |
70 |
| -The Sulu content management system is released under the under terms of the [MIT License](LICENSE). |
| 42 | +``` |
| 43 | +cd deploy |
| 44 | +helm3 upgrade sulu-cluster . -f secrets.yaml |
| 45 | +``` |
0 commit comments