Nous essayons de réduire les vulnérabilités dans ce projet. Nous avons mis en place un workflow de scan de vulnérabilités en utilisant Trivy. Le badge ci-dessus montre le statut du dernier scan.
Pour exécuter le projet, suivez ces étapes :
- Assurez-vous que Docker et Docker Compose sont installés sur votre système.
- Clonez le dépôt :
git clone https://github.com/seb34000/T-NSA810.git
- Naviguez vers le répertoire du projet :
cd T-NSA810
- Démarrez le projet en utilisant Docker Compose :
docker-compose up --build
C'est tout ! Le projet devrait maintenant être opérationnel.
This guide provides step-by-step instructions to deploy a sample application on Kubernetes using Minikube.
Ensure you have the following installed on your machine:
You will need to set the following environment variables:
GIT_USER
: Your GitHub username.
-
Clone the Repository
git clone https://github.com/yourusername/your-repo.git cd your-repo
-
Prepare the Environment
export GIT_USER=your_github_username
-
Run the Deployment Script
The provided script automates the deployment process. Save the script below as
kube-start.sh
and make it executable.chmod +x kube-start.sh sudo ./kube-start.sh
when asked by argocd you will need to put your github token as github password
-
Access the Argo CD UI
Once the script completes, you can access the Argo CD UI using the URL provided in the script output. It will look something like:
http://<minikube-ip>:<node-port>
You can log in using the username
admin
and the passwordadminadmin
. -
Verify Deployment
You can verify that your application is running correctly by checking the Argo CD dashboard and using
kubectl
commands to inspect the deployed resources.kubectl get pods -n nsa
-
If you encounter issues with Minikube or Kubernetes, refer to their official documentation for troubleshooting tips:
-
Ensure Docker is running and you have sufficient resources allocated to Minikube (CPU, Memory).
To delete the Minikube cluster and all deployed resources, run:
minikube delete