aalex94 / Csapat_3

Tagok:
Apache License 2.0
1 stars 0 forks source link

A feladatunk #8

Closed fattila1 closed 11 months ago

fattila1 commented 12 months ago

Sziasztok, megérkezett a feladatunk. Holnap 9:00-kor találkozzunk. Én tudok Teams szobát indítani, ha az jó nektek, de jobb ötletet elfogadok!

A feladatunk: Information the engineers get in real life Summary of the meeting with the customer The customer would like to hire external IT experts who can provide a solution to successfully migrate the company's semi-scripted tasks into a more mature automated solution. Currently there are a lot of human errors during their work because there are many manual steps in their existing processes. They would like to have a framework that helps them "automate everything". They also do not want to use complicated tools because it would be hard for their team to onboard and understand it. They also want to be able to collaborate on a shared environment/framework. The customer wants it to be ready as soon as possible. They also highlighted to following points:

The provided solution should be documented as detailed as possible. They want to be able to easily teach this framework to their colleagues Possibility to test their code Introduce approval workflow They would like to have some example terraform codes From a technical perspective they want to have an integrated system that manages code, issue tracking and automated processes. Manager's request Based on the meeting notes try to brake down the project into tasks Create a sketch, diagramm or roadmap about the project. You could maybe use miro.com or draw.io Create a technical architect diagramm about the solution Be ready by tomorrow ;) AFP class related information The goal is to simulate a project work. That is why every team should utilize as much of the features that github offers as possible. Please use projects, issues, milestones to track the progress. Sometimes would be nice to create a few releases (tags). Team members can collaborate more easily by using separate branches and pull requests.

Create team workspace Every team should have their own github repository created and the team members added. Invite me as a collaborator to your repo: Settings / Collaborators / Add people (simark2357@gmail.com). Copy the .gitignore file to the root of your repository and commit/push your changes to the main branch Create the root main.tf file Enable terraform pipeline in the repository: In the 'Actions' tab search for the 'terraform' keyword and press configure In the generated yaml the if statement in the terraform apply step needs to be changed from if: github.ref == 'refs/heads/"main"' && github.event_name == 'push' to if: github.ref == 'refs/heads/main' && github.event_name == 'push' otherwise the apply step will not execute in case of pushing to main branch. You can also optionally delete the step that does the fmt check. In case of any doubt you can use this terraform.yml for reference commit and push your changes to the main branch. At this point you should have the following struture . ├── .github │ └── workflows │ └── terraform.yml │── .gitignore └── main.tf This repository will be the team's workspace and everyone should work on the tasks there

Work Maybe you already found out that what the customer wants is basically can be covered with the github features

issues milestones projects pipelines documentation pull requests and code reviews approval workflows releases (tags) release notes etc... Documentation Atleast a well structured README.md file should be created in the root of the repo. It would be a nice touch to have pictures, diagramms in the documentation. Parts of the documentation could be:

system design (for example how the github pipeline mechanism works --> uses a docker runtime that github hosts) pull request mechanism issues/projects terraform code test code pipeline workflow pull request approval workflow terraform code Create three example terraform codes that simply creates files

simply use the local_file resource use the local_file resource but now with variables create n number of files with the local_file resource with the help of the count meta-argument test code An extra step should be created in the pipeline named test or validation that would check if the files were created or not. For example a bash script could be used to check the existence of the files...

eengineer96 commented 12 months ago

Sziasztok! Nekem megfelelő bármilyen komm. platform, alkalmazkodok. Reggel találkozunk!

fattila1 commented 12 months ago

Offtopic: Házy Attila megosztott drivejához tudja valaki a passt? Megint nem tudunk belépni, pedig valószínű ott teszi közzé a ZH feladatot ma.

eengineer96 commented 12 months ago

Itt a drive teljesen megosztva, így nem kell belépni sem:

https://drive.google.com/drive/folders/1RqTcl1N_m_-XAW95zUUrNuBzoZev_eks

SziliCs commented 12 months ago

Sziasztok! Nekem is jó bárhol!

aalex94 commented 12 months ago

Nekem is jó bárhol.

fattila1 commented 12 months ago

Köszi a gyors válaszokat, akkor itt a Teams link: https://teams.microsoft.com/l/team/19%3aB-Ke_8d5egnvvDVBfmyMVl5idamEqdsls__kiHg2Xps1%40thread.tacv2/conversations?groupId=a62a6f79-6484-4492-a5f8-eb107a89c4a8&tenantId=7a75db96-b75c-4b84-9fee-af761ad9df82 Holnap 9:00!

aalex94 commented 12 months ago

@fattila1 Most adtam le a hozzáférési igényt az MS Teams laborgyak csoportodhoz. :)