Getting Started
Prerequisites
- GitHub account (linked via GitHub Classroom)
- Docker installed locally
- Basic understanding of containers
Your First Deployment
1. Clone Your Repository
After accepting the GitHub Classroom assignment, clone your repo:
git clone https://github.com/your-org/your-team-repo.git
cd your-team-repo
2. Create a Dockerfile
Add a Dockerfile to your repository root:
FROM nginx:alpine
COPY . /usr/share/nginx/html/
EXPOSE 80
3. Build and Push
Login to Harbor and push your image:
# Login (use credentials provided by your instructor)
docker login harbor.145.220.72.21.nip.io
# Build
docker build -t harbor.145.220.72.21.nip.io/your-team/app:v1.0.0 .
# Push
docker push harbor.145.220.72.21.nip.io/your-team/app:v1.0.0
4. Update Your Helm Values
Edit helm-charts/your-app/values.yaml:
image:
repository: harbor.145.220.72.21.nip.io/your-team/app
tag: v1.0.0
5. Commit and Push
git add .
git commit -m "Deploy v1.0.0"
git push
6. Watch It Deploy
- Open ArgoCD
- Find your application
- Watch it sync and deploy
- Visit
https://your-team.145.220.72.21.nip.io
Congratulations!
Your app is now live and will auto-deploy on every push.