devops_stuff
Table of Contents
DevOps Stuff (Under Construction)
Getting Started with Git
For now, this section assumes that the platform in use is Linux,
and that the Git repository hosting platform in use is Gitea.
Install git
sudo apt -y install git
Generate an ed25519 ssh key
ssh-keygen -t ed25519 -C "gitea-key" -f ~/.ssh/gitea_key
Add the key to Gitea
Steps to create a repo and get it into Gitea
cd <repo directory> git init git remote add origin ssh://git@192.168.1.85:2222/mike/<repo-name>.git git status git add . git commit -m "Initial Commit" git push -u origin main
Building an image and pushing to a container registry
Ensure a login to the appropriate registry is enabled, especially for private repos:
docker login [registry fqdn] (ex: www.github.com)
Build and push the image:
cd [image directory] docker build -t [registry fqdn]/[username]/[image_name]:[tag] Example: docker build -t www.github.com/fred/awesome_image:v1.0.0 . docker push [registry fqdn]/[username]/[image_name]:[tag] Example: docker push www.github.com/fred/awesome_image:v1.0.0
devops_stuff.txt · Last modified: by mike
