-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Add turborepo and Docker config #24
Conversation
Add Docker support and switch to TurboRepo This update introduces Docker support for the Currencia application. A new Dockerfile has been added, along with docker-compose configuration for local development. The build process now uses two stages: a build stage and a final stage. The project's package.json scripts have been updated to use TurboRepo commands instead of bun, reflecting a shift in the build tooling. This includes changes to dev, lint, and other script commands. A turbo.json file was also introduced to manage tasks related to building, generating, developing, and testing the application using TurboRepo. Lastly, an example .env file was added for setting up environment variables in Docker.
Introduced a new GitHub Actions workflow to automatically build and push Docker images for the application. The workflow triggers on pushes to main branch, tag creation, or manual dispatch. It checks for changes in specific paths before proceeding with the build. Updated .gitignore to ignore .turbo files. Modified Dockerfile of the currencia app to include DATABASE_URL as an argument and environment variable. Also adjusted the build steps and added installation of curl. Adjusted nuxt.config.ts file to allow setting NITRO_PRESET from environment variables. Updated docker-compose.local.yml file to include database service configuration for local development. Added a new script "build:app" in package.json for building only the currencia app.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
14476214 | Triggered | Generic Password | d0839b2 | docker/docker-compose.local.yml | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Thank you for following the naming conventions! 🙏 |
This pull request includes several changes to automate the build and deployment process using Docker and Turbo, as well as updates to configuration files and scripts. The most important changes include the addition of a GitHub Actions workflow for building and pushing Docker images, the creation of a multi-stage Dockerfile, and updates to the build and development scripts.
Automation and CI/CD:
main
branch or when a new tag is created. This workflow includes steps to check for changes, set up Docker, and build and push the Docker image. (.github/workflows/build-app-image.yml
)Docker and Environment Configuration:
currencia
application, which includes a build stage using theoven/bun
image and a final stage for running the application. (apps/currencia/Dockerfile
)NUXT_PUBLIC_SITE_URL
variable. (docker/.env.example
)currencia
application and a PostgreSQL database. (docker/docker-compose.local.yml
)Build and Development Scripts:
package.json
scripts to use Turbo for various tasks such as development, building, linting, and testing. (package.json
)turbo.json
configuration file to define global dependencies and task configurations for Turbo. (turbo.json
)Configuration Updates:
apps/currencia/nuxt.config.ts
)