> ## Content Index
> Fetch the complete content index at: https://www.oransblog.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ghetto CI/CD
- URL: https://www.oransblog.com/ghetto-ci-cd/
- Published: 2021-02-09T05:30:10.000Z
- Updated: 2026-10-29T05:58:51.000Z
- Author: Oran C
- Tags: #Import 2026-11-12 01:14

How to make simple docker Continues delivery for small projects.

# Sample app: Update my static website

![](https://www.oransblog.com/content/images/2021/02/image-2.png)

This tutorial assumes:

1) you have your project as a hosted docker container  
2) you have docker-compose.yml in your project's repo on github  
3) you have docker /docker-compose installed  
4) you have a git repo with the source code  
5) your docker hub account is linked to github

# Setup auto builds on docker hub

![](https://www.oransblog.com/content/images/2021/02/image-3.png)

![](https://www.oransblog.com/content/images/2021/02/image-4.png)

![](https://www.oransblog.com/content/images/2021/02/image-5.png)

Link to github

![](https://www.oransblog.com/content/images/2021/02/image-6.png)

![](https://www.oransblog.com/content/images/2021/02/image-7.png)

select the repo you're docker container project is

![](https://www.oransblog.com/content/images/2021/02/image-8.png)

![](https://www.oransblog.com/content/images/2021/02/image-9.png)

![](https://www.oransblog.com/content/images/2021/02/image-10.png)

![](https://www.oransblog.com/content/images/2021/02/image-11.png)

download your project

![](https://www.oransblog.com/content/images/2021/02/image-12.png)

![](https://www.oransblog.com/content/images/2021/02/image-13.png)

### modify the docker-compose file

![](https://www.oransblog.com/content/images/2021/02/image-14.png)

![](https://www.oransblog.com/content/images/2021/02/image-15.png)

ADD

```
version: '3.3'
services:
<--snip--->
        labels: 
            com.centurylinklabs.watchtower.enable: true
<--snip--->
        image: 'wisehackermonkey/website:latest'

```

Run your project with the modified docker-compose file

![](https://www.oransblog.com/content/images/2021/02/image-16.png)

### Have Watchtower automatically update your app

Create a docker-compose file

EXAMPLE

```bash
version: "3"
services:
  watchtower:
    image: containrrr/watchtower
    environment:
      REPO_USER: <DOCKER HUB USERNAME>
      REPO_PASS: <DOCKER HUB PASSWORD>
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: --interval 1 --label-enable

```

in my case it looked like

```
version: "3"
services:
  watchtower:
    image: containrrr/watchtower
    environment:
      REPO_USER: wisehackermonkey
      REPO_PASS: XXXXXXXXX
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: --interval 1 --label-enable

```

NOTE: I am adding my docker hub account user/password because watchtower complains about its access it wants me to run 'docker login'

#### Run docker compose on watchtower docker-compose file

![](https://www.oransblog.com/content/images/2021/02/image-17.png)

Look at logs to see if everything worked

![](https://www.oransblog.com/content/images/2021/02/image-19.png)

"Ctrl + c" to exit

# Test our ghetto CD pipeline!

##### Make a change on github

In my case

![](https://www.oransblog.com/content/images/2021/02/image-20.png)

![](https://www.oransblog.com/content/images/2021/02/image-21.png)

![](https://www.oransblog.com/content/images/2021/02/image-22.png)

![](https://www.oransblog.com/content/images/2021/02/image-23.png)

![](https://www.oransblog.com/content/images/2021/02/image-24.png)

![](https://www.oransblog.com/content/images/2021/02/image-25.png)

![](https://www.oransblog.com/content/images/2021/02/image-26.png)

## Create a Tag for docker hub to build

![](https://www.oransblog.com/content/images/2021/02/image-27.png)

![](https://www.oransblog.com/content/images/2021/02/image-28.png)

![](https://www.oransblog.com/content/images/2021/02/image-29.png)

![](https://www.oransblog.com/content/images/2021/02/image-30.png)

![](https://www.oransblog.com/content/images/2021/02/image-31.png)

![](https://www.oransblog.com/content/images/2021/02/image-32.png)

![](https://www.oransblog.com/content/images/2021/02/image-33.png)

Docker hub registered a build and it completed

![](https://www.oransblog.com/content/images/2021/02/image-34.png)

Notice that the app has now been updated witht the latest code from github through the build docker image!

Lets check the website to see if the "." showed up

![](https://www.oransblog.com/content/images/2021/02/image-35.png)

# SUCCESS!

by oran collins  
github.com/wisehackermonkey  
oranbusiness gmail com  
20210208

Antes de elegir entre [camisetas históricas de fútbol](https://www.camisetatienda.com/?ref=oransblog.com), merece la pena comprobar el escudo, el cuello y la disposición de los patrocinadores. Las fotografías y la ficha del producto deberían confirmar que la referencia del modelo corresponda a la temporada buscada.