Skip to content

Commit

Permalink
[Rebranding] Rename postgresql_cluster to autobase (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Nov 28, 2024
1 parent 90948bc commit e93fbe0
Show file tree
Hide file tree
Showing 26 changed files with 109 additions and 149 deletions.
32 changes: 16 additions & 16 deletions .config/make/docker.mak
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## —— Docker —————————————————————————————————————————————————————————————————————————————————————
TAG ?= local
DOCKER_REGISTRY ?= vitabaks
DOCKER_REGISTRY ?= autobase

.PHONY: docker-lint docker-lint-console-ui docker-lint-console-api docker-lint-console-db docker-lint-console
docker-lint: docker-lint-automation docker-lint-console-ui docker-lint-console-api docker-lint-console-db docker-lint-console ## Lint all Dockerfiles
Expand Down Expand Up @@ -35,56 +35,56 @@ docker-build: docker-build-automation docker-build-console-ui docker-build-conso

docker-build-automation: ## Build automation image
@echo "Build automation docker image with tag $(TAG)";
docker build --no-cache --platform linux/amd64 --tag postgresql_cluster:$(TAG) --file automation/Dockerfile .
docker build --no-cache --platform linux/amd64 --tag automation:$(TAG) --file automation/Dockerfile .

docker-build-console-ui: ## Build console ui image
@echo "Build console ui docker image with tag $(TAG)"
docker build --no-cache --platform linux/amd64 --tag postgresql_cluster_console_ui:$(TAG) --file console/ui/Dockerfile .
docker build --no-cache --platform linux/amd64 --tag console_ui:$(TAG) --file console/ui/Dockerfile .

docker-build-console-api: ## Build console api image
@echo "Build console api docker image with tag $(TAG)"
docker build --no-cache --platform linux/amd64 --tag postgresql_cluster_console_api:$(TAG) --file console/service/Dockerfile .
docker build --no-cache --platform linux/amd64 --tag console_api:$(TAG) --file console/service/Dockerfile .

docker-build-console-db: ## Build console db image
@echo "Build console db docker image with tag $(TAG)"
docker build --no-cache --platform linux/amd64 --tag postgresql_cluster_console_db:$(TAG) --file console/db/Dockerfile .
docker build --no-cache --platform linux/amd64 --tag console_db:$(TAG) --file console/db/Dockerfile .

docker-build-console: ## Build console image (all services)
@echo "Build console docker image with tag $(TAG)"
docker build --no-cache --platform linux/amd64 --tag postgresql_cluster_console:$(TAG) --file console/Dockerfile .
docker build --no-cache --platform linux/amd64 --tag console:$(TAG) --file console/Dockerfile .

.PHONY: docker-push docker-push-console-ui docker-push-console-api docker-push-console-db docker-push-console
docker-push: docker-push-automation docker-push-console-ui docker-push-console-api docker-push-console-db docker-push-console ## Push all images to Dockerhub (example: make docker-push TAG=my_tag DOCKER_REGISTRY=my_repo DOCKER_REGISTRY_USER="my_username" DOCKER_REGISTRY_PASSWORD="my_password")

docker-push-automation: ## Push automation to Dockerhub
@echo "Push automation docker image with tag $(TAG)";
echo "$(DOCKER_REGISTRY_PASSWORD)" | docker login --username "$(DOCKER_REGISTRY_USER)" --password-stdin
docker tag postgresql_cluster:$(TAG) $(DOCKER_REGISTRY)/postgresql_cluster:$(TAG)
docker push $(DOCKER_REGISTRY)/postgresql_cluster:$(TAG)
docker tag automation:$(TAG) $(DOCKER_REGISTRY)/automation:$(TAG)
docker push $(DOCKER_REGISTRY)/automation:$(TAG)

docker-push-console-ui: ## Push console ui image to Dockerhub
@echo "Push console ui docker image with tag $(TAG)"
echo "$(DOCKER_REGISTRY_PASSWORD)" | docker login --username "$(DOCKER_REGISTRY_USER)" --password-stdin
docker tag postgresql_cluster_console_ui:$(TAG) $(DOCKER_REGISTRY)/postgresql_cluster_console_ui:$(TAG)
docker push $(DOCKER_REGISTRY)/postgresql_cluster_console_ui:$(TAG)
docker tag console_ui:$(TAG) $(DOCKER_REGISTRY)/console_ui:$(TAG)
docker push $(DOCKER_REGISTRY)/console_ui:$(TAG)

docker-push-console-api: ## Push console api image to Dockerhub
@echo "Push console api docker image with tag $(TAG)"
echo "$(DOCKER_REGISTRY_PASSWORD)" | docker login --username "$(DOCKER_REGISTRY_USER)" --password-stdin
docker tag postgresql_cluster_console_api:$(TAG) $(DOCKER_REGISTRY)/postgresql_cluster_console_api:$(TAG)
docker push $(DOCKER_REGISTRY)/postgresql_cluster_console_api:$(TAG)
docker tag console_api:$(TAG) $(DOCKER_REGISTRY)/console_api:$(TAG)
docker push $(DOCKER_REGISTRY)/console_api:$(TAG)

docker-push-console-db: ## Push console db image to Dockerhub
@echo "Push console db docker image with tag $(TAG)"
echo "$(DOCKER_REGISTRY_PASSWORD)" | docker login --username "$(DOCKER_REGISTRY_USER)" --password-stdin
docker tag postgresql_cluster_console_db:$(TAG) $(DOCKER_REGISTRY)/postgresql_cluster_console_db:$(TAG)
docker push $(DOCKER_REGISTRY)/postgresql_cluster_console_db:$(TAG)
docker tag console_db:$(TAG) $(DOCKER_REGISTRY)/console_db:$(TAG)
docker push $(DOCKER_REGISTRY)/console_db:$(TAG)

docker-push-console: ## Push console image to Dockerhub (all services)
@echo "Push console docker image with tag $(TAG)"
echo "$(DOCKER_REGISTRY_PASSWORD)" | docker login --username "$(DOCKER_REGISTRY_USER)" --password-stdin
docker tag postgresql_cluster_console:$(TAG) $(DOCKER_REGISTRY)/postgresql_cluster_console:$(TAG)
docker push $(DOCKER_REGISTRY)/postgresql_cluster_console:$(TAG)
docker tag console:$(TAG) $(DOCKER_REGISTRY)/console:$(TAG)
docker push $(DOCKER_REGISTRY)/console:$(TAG)

.PHONY: docker-tests
docker-tests: ## Run tests for docker
Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ Your contributions are appreciated and will be taken seriously.

### 1. Create an issue

Report problems or suggest improvements by [creating an issue](https://github.com/vitabaks/postgresql_cluster/issues).
Report problems or suggest improvements by [creating an issue](https://github.com/vitabaks/autobase/issues).

### 2. Fork the project

[Fork the repository](https://github.com/vitabaks/postgresql_cluster) to your GitHub account.
[Fork the repository](https://github.com/vitabaks/autobase) to your GitHub account.

### 3. Make changes

Clone your fork locally and make the necessary changes:

```bash
git clone [email protected]:YOURNAMESPACE/postgresql_cluster.git
git clone [email protected]:YOURNAMESPACE/autobase.git
```

### 4. Test your changes (Optional)
Expand All @@ -32,8 +32,8 @@ git clone [email protected]:YOURNAMESPACE/postgresql_cluster.git
Use Gitpod for a cloud-based development environment:

1. Sign up for Gitpod: https://gitpod.io
2. Fork the `postgresql_cluster` repository
3. Open your fork in Gitpod: `https://gitpod.io/#https://github.com/username/postgresql_cluster`
2. Fork the `autobase` repository
3. Open your fork in Gitpod: `https://gitpod.io/#https://github.com/username/autobase`
4. Create a new branch: `git checkout -b my-feature-branch`
5. Make your changes and commit: `git add .` and `git commit -m "Description of changes"`
6. Test with Molecule: `make tests` or `make tests-fast`
Expand Down
Loading

0 comments on commit e93fbe0

Please sign in to comment.