Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rebranding] Rename postgresql_cluster to autobase #821

Merged
merged 13 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 git@github.com:YOURNAMESPACE/postgresql_cluster.git
git clone git@github.com:YOURNAMESPACE/autobase.git
```

### 4. Test your changes (Optional)
Expand All @@ -32,8 +32,8 @@ git clone git@github.com: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