Goals
- Learn how to create a cloud project
- Know the Magnolia Paas project structure
Webapp
- Magnolia project starts with the creation of a Webapp.
- This application will be the one we will use to deploy and on which the custom functionalities required by the client will be built.
- To create a local project you need to have Maven and Java installed.
- It's necessary to use a specific maven archetype in order to get a valid Paas project.
magnolia-dx-core-custom-cloud-archetype
Maven creation
The creation of the project will require a number of properties to be defined during the invocation of the maven archetype.
|
Properties | Description |
---|---|
groupId | Maven groupId of your cloud bundle |
artifactId | Maven artifactId of your cloud bundle |
version | Maven version of your cloud bundle |
package | Base package of your cloud bundle |
magnolia-bundle-version | Magnolia version |
shortname | Name of the project to be used in the Magnolia URLs |
region | AWS region |
Code structure
Once the maven archetype has been used, the base structure needed for our Paas project will be created.
paas-training/ └── paas-training-webapp/ │ ├── src/ │ ├── target/ │ ├── Dockerfile │ └── pom.xml ├── .gitignore ├── .gitlab-ci.yml ├── .m2/ │ └── settings.xml ├── values.yml ├── pom.xml └── README.md
.gitlab-ci.yml
- Defines the information related to continuous integration and deployment in the different environments.
values.yml
- Defines the necessary and desired properties of our deployment in the cluster.