From 749ddbcdad60f50af1c7f9488552ffed5affceac Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Wed, 22 Jul 2026 20:22:05 +0000 Subject: [PATCH] fix: ghcr references and old files (#18) # What - Closes #17 # Why - Keep the repo updated with needed files onlyReviewed-on: https://lightroasted.vps-kinghost.net/rmcampos/tasknote/pulls/18 --- CONTRIBUTING.md | 14 ++++++++++---- Taskfile.yml | 4 ++-- client/Dockerfile | 2 +- client/package.json | 2 +- client/sonar-project.properties | 21 --------------------- docker-compose.prod.yml | 4 ++-- terraform/main.tf | 4 ++-- tools/start-server.sh | 23 ----------------------- tools/tools.md | 12 ++++++------ 9 files changed, 24 insertions(+), 62 deletions(-) delete mode 100644 client/sonar-project.properties delete mode 100644 tools/start-server.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7367789..ef27336 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ If you want to contribute, please create a fork and a Merge Request. Take a look ## Steps to Contribute 1. Fork the Project -2. Clone it on your local (`git clone https://github.com/ricardo-campos-org/react-typescript-todolist`) +2. Clone it on your local (`git clone https://lightroasted.vps-kinghost.net/rmcampos/tasknote.git`) 3. Develop your amazing feature/changes 4. Make sure your name is set (`git config user.name 'YOUR NAME'; git config user.email 'YOUR EMAIL'`) 5. Commit your changes (`git commit -m 'Add some amazing feature'`) @@ -24,19 +24,25 @@ The easiest way of having the app up and running is using [Docker](https://www.d 1. Start the database engine (PostgreSQL) ```sh - bash tools/run-docker-db.sh + task dev-run-db ``` 2. Start the back-end engine (Java & Spring Boot) ```sh - bash tools/run-docker-server.sh + task dev-run-api ``` 3. Start the app server ```sh - bash tools/run-docker-client.sh + task dev-run-web ``` > Remember to follow up logs with 'docker ps' and 'docker logs -f ' +Or start all services at once with Docker Compose: + +```sh +docker compose -f docker-compose.dev.yml up -d +``` + If everything went well, you can head to [http://localhost:5000](http://localhost:5000) and create your user. ## 🦾 Automation diff --git a/Taskfile.yml b/Taskfile.yml index ca9f225..9fea788 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -5,11 +5,11 @@ version: '3' tasks: docker-build-web: desc: Build the tasknote-web prod-ready docker image, tagging it as candidate - cmd: docker build --no-cache --build-arg VITE_BUILD="v999-$(date '+%Y-%m-%d-%H%M%S')" --build-arg SOURCE_PR="v999-123456789-$(date '+%Y-%m-%d-%H%M%S')" -t ghcr.io/rmcampos/tasknote/app:latest ./client + cmd: docker build --no-cache --build-arg VITE_BUILD="v999-$(date '+%Y-%m-%d-%H%M%S')" --build-arg SOURCE_PR="v999-123456789-$(date '+%Y-%m-%d-%H%M%S')" -t rmcampos/tasknote-app:latest ./client docker-build-api: desc: Build the tasknote-api prod-ready docker image, tagging it as candidate - cmd: cd server && mvn -Pnative -DskipTests spring-boot:build-image -Dspring-boot.build-image.imageName=ghcr.io/rmcampos/tasknote/api:latest -Dspring-boot.build-image.builder=paketobuildpacks/builder-jammy-tiny:0.0.505 + cmd: cd server && mvn -Pnative -DskipTests spring-boot:build-image -Dspring-boot.build-image.imageName=rmcampos/tasknote-api:latest -Dspring-boot.build-image.builder=paketobuildpacks/builder-jammy-tiny:0.0.505 prod-up-web: desc: Speed up the tasknote-web prod-like image, building it if required diff --git a/client/Dockerfile b/client/Dockerfile index 673ad61..ff160c2 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -29,7 +29,7 @@ LABEL org.opencontainers.image.authors="Ricardo Campos + rmcampos/tasknote-api: ``` Build Cloud Native: `./mvnw -B package -Pnative -DskipTests` @@ -89,19 +89,19 @@ The frontend app will run on Nginx. ``` export CR_PAT=YOUR_TOKEN -echo $CR_PAT | docker login ghcr.io -u RMCampos --password-stdin +echo $CR_PAT | docker login -u RMCampos --password-stdin ``` **Pulling images:** ```sh -docker pull ghcr.io/ricardo-campos-org/react-typescript-todolist/tasknote-web:50 -docker pull ghcr.io/ricardo-campos-org/react-typescript-todolist/tasknote-api:50 +docker pull rmcampos/tasknote-app:latest +docker pull rmcampos/tasknote-api:latest ``` **Pushing images:** ```sh -docker push ghcr.io/ricardo-campos-org/react-typescript-todolist/tasknote-api:316 +docker push rmcampos/tasknote-api:latest ``` - Get container IP