Skip to content

Commit

Permalink
refactor: rename project to doco-cd (#61)
Browse files Browse the repository at this point in the history
* refactor: rename project to doco-cd

* docs: adjust docs
  • Loading branch information
kimdre authored Aug 5, 2024
1 parent 72f7500 commit c1720e6
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "docs"]
path = docs
url = git@github.com:kimdre/docker-compose-webhook.wiki.git
url = git@github.com:kimdre/doco-cd.wiki.git
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ FROM gcr.io/distroless/base-debian12@sha256:1aae189e3baecbb4044c648d356ddb75025b

WORKDIR /

COPY --from=build-stage /docker-compose-webhook /docker-compose-webhook
COPY --from=build-stage /doco-cd /doco-cd

ENV TZ=UTC \
HTTP_PORT=80 \
LOG_LEVEL=info

USER nonroot:nonroot

CMD ["/docker-compose-webhook"]
CMD ["/doco-cd"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BINARY_DIR=bin
BINARY_NAME=docker-compose-webhook
BINARY_NAME=doco-cd
.PHONY: test build run lint fmt update update-all submodule-commit generate-coverage

test:
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# docker-compose-webhook
# doco-cd - Docker Compose Continuous Deployment

## GitOps for Docker Compose

![GitHub Release](https://img.shields.io/github/v/release/kimdre/docker-compose-webhook?display_name=tag&label=Release)
[![CodeQL](https://github.com/kimdre/docker-compose-webhook/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/kimdre/docker-compose-webhook/actions/workflows/github-code-scanning/codeql)
[![Spell checking](https://github.com/kimdre/docker-compose-webhook/actions/workflows/spelling.yaml/badge.svg)](https://github.com/kimdre/docker-compose-webhook/actions/workflows/spelling.yaml)
[![Build Image](https://github.com/kimdre/docker-compose-webhook/actions/workflows/build.yaml/badge.svg)](https://github.com/kimdre/docker-compose-webhook/actions/workflows/build.yaml)
[![GitHub Release](https://img.shields.io/github/v/release/kimdre/doco-cd?display_name=tag&label=Release)](https://github.com/kimdre/doco-cd/releases)
[![CodeQL](https://github.com/kimdre/doco-cd/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/kimdre/doco-cd/actions/workflows/github-code-scanning/codeql)
[![Tests](https://github.com/kimdre/doco-cd/actions/workflows/test.yaml/badge.svg)](https://github.com/kimdre/doco-cd/actions/workflows/test.yaml)
[![Spell checking](https://github.com/kimdre/doco-cd/actions/workflows/spelling.yaml/badge.svg)](https://github.com/kimdre/doco-cd/actions/workflows/spelling.yaml)
[![Build Image](https://github.com/kimdre/doco-cd/actions/workflows/build.yaml/badge.svg)](https://github.com/kimdre/doco-cd/actions/workflows/build.yaml)


Docker Compose Webhook is a lightweight GitOps tool that automatically deploys and updates Docker Compose services using webhooks, that are triggered by your Git repository.
You can think of a ArgoCD alternative for Docker.
Doco CD is a lightweight GitOps tool that automatically deploys and updates Docker Compose services using webhooks, that are triggered by your Git repository.
You can think of it as a simple Portainer or ArgoCD alternative for Docker.

## Documentation

You can find the documentation in the [Wiki](https://github.com/kimdre/docker-compose-webhook/wiki).
You can find the documentation in the [Wiki](https://github.com/kimdre/doco-cd/wiki).

## Community

- Ask questions on [GitHub Discussions](https://github.com/kimdre/doco-cd/discussions)
- Report bugs or suggest features by [opening an issue](https://github.com/kimdre/doco-cd/issues/new)
- Contribute by [opening a pull request](https://github.com/kimdre/doco-cd/pulls)
12 changes: 6 additions & 6 deletions cmd/docker-compose-webhook/main.go → cmd/doco-cd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import (
"path"
"reflect"

"github.com/kimdre/docker-compose-webhook/internal/webhook"
"github.com/kimdre/doco-cd/internal/webhook"

"github.com/docker/cli/cli/command"

"github.com/google/uuid"

"github.com/compose-spec/compose-go/v2/cli"
"github.com/docker/docker/client"
"github.com/kimdre/docker-compose-webhook/internal/utils"
"github.com/kimdre/doco-cd/internal/utils"

"github.com/kimdre/docker-compose-webhook/internal/docker"
"github.com/kimdre/doco-cd/internal/docker"

"github.com/kimdre/docker-compose-webhook/internal/config"
"github.com/kimdre/docker-compose-webhook/internal/git"
"github.com/kimdre/docker-compose-webhook/internal/logger"
"github.com/kimdre/doco-cd/internal/config"
"github.com/kimdre/doco-cd/internal/git"
"github.com/kimdre/doco-cd/internal/logger"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion dev.compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
app:
container_name: docker-compose-webhook
container_name: doco-cd
build: .
restart: no
ports:
Expand Down
2 changes: 1 addition & 1 deletion docs
Submodule docs updated from da8f93 to a212f8
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kimdre/docker-compose-webhook
module github.com/kimdre/doco-cd

go 1.22.5

Expand Down
2 changes: 1 addition & 1 deletion internal/docker/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"syscall"
"time"

"github.com/kimdre/docker-compose-webhook/internal/config"
"github.com/kimdre/doco-cd/internal/config"

"github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/flags"
Expand Down
2 changes: 1 addition & 1 deletion internal/docker/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/docker/compose/v2/pkg/api"
"github.com/docker/compose/v2/pkg/compose"
"github.com/kimdre/docker-compose-webhook/internal/config"
"github.com/kimdre/doco-cd/internal/config"
)

func createTmpDir(t *testing.T) string {
Expand Down
8 changes: 4 additions & 4 deletions internal/git/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package git
import (
"fmt"
"github.com/google/uuid"
"github.com/kimdre/docker-compose-webhook/internal/config"
"github.com/kimdre/doco-cd/internal/config"
"os"
"testing"
)
Expand All @@ -14,10 +14,10 @@ func TestGetAuthUrl(t *testing.T) {
t.Fatalf("Failed to get app config: %v", err)
}

expectedUrl := fmt.Sprintf("https://%s:%s@github.com/kimdre/docker-compose-webhook.git", c.AuthType, c.GitAccessToken)
expectedUrl := fmt.Sprintf("https://%s:%s@github.com/kimdre/doco-cd.git", c.AuthType, c.GitAccessToken)

authUrl := GetAuthUrl(
"https://github.com/kimdre/docker-compose-webhook.git",
"https://github.com/kimdre/doco-cd.git",
c.AuthType,
c.GitAccessToken,
)
Expand All @@ -28,7 +28,7 @@ func TestGetAuthUrl(t *testing.T) {
}

func TestCloneRepository(t *testing.T) {
cloneUrl := "https://github.com/kimdre/docker-compose-webhook.git"
cloneUrl := "https://github.com/kimdre/doco-cd.git"
ref := "refs/heads/main"

repo, err := CloneRepository(uuid.New().String(), cloneUrl, ref, true)
Expand Down

0 comments on commit c1720e6

Please sign in to comment.