Categories
github

GitHub Container Registry

General https://ghcr.io https://github.blog/2020-09-01-introducing-github-container-registry/ Note: GitHub Container Registry is free for public images. Container Registry is free for private images during the beta, and as part of GitHub Packages will follow the same pricing model when generally available. Create personal token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token Go to https://github.com/settings/tokens. Click Generate new token. Permissions: write:packages / read:packages delete:packages Click Generate token. Copy […]

Categories
docker

Push to Docker Hub using GitHub Actions

Knock-knock! Who’s there? Jenkins. Jenkins who? jk 🤣 Links https://docs.github.com/en/actions https://github.com/actions https://github.com/marketplace (think of it as an alternative to Jenkins plugins) https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions https://lab.github.com/githubtraining/github-actions:-publish-to-github-packages Create & clone repo Create a GitHub repository. Clone your repository and cd into it. git clone git@github.com:itsmetommy/github-actions.git && cd github-actions Create secrets Settings → Secrets Click New repository secret. Create two secrets. Create DOCKER_USERNAME. […]

Categories
docker Linux

docker-compose redis

Clone git repository Pick your redis version and download the git repository. redis version 4 My example uses 4.0.2-alpine. https://github.com/itsmetommy/docker-redis4 redis version 2-3 My example uses 2.6.17. https://github.com/itsmetommy/docker-redis-2-3 Build and start all containers This will build all the sentinel images, then start all containers in detached mode. docker-compose up –build -d Verify that the master is […]