Commit Graph

31 Commits

Author SHA1 Message Date
Julien Nahum f3a02df80e
Version in self hosted (#770)
* Enhance Application Version Management in Docker and Feature Flags

- Added a new build argument `APP_VERSION` in the Docker configuration files to facilitate version tracking during builds.
- Introduced a private method `getAppVersion` in `FeatureFlagsController` to retrieve the application version from the Docker environment, enhancing the feature flags response with version information.
- Updated the `app.php` configuration file to include a new entry for `docker_version`, allowing for better version management and fallback when the Docker build version is unavailable.

These changes aim to improve the application's versioning capabilities, ensuring that the version is consistently available across different components and environments.

* Refactor OpenFormFooter and Update Feature Flags Handling

- Modified `OpenFormFooter.vue` to include a version display when available, enhancing user awareness of the application version.
- Refactored the script section to use the `<script setup>` syntax, improving readability and reactivity by utilizing `ref` and `computed` for reactive properties.
- Removed the deprecated `feature-flags.js` plugin and updated `featureFlags.js` to ensure proper SSR compatibility and error handling during feature flag fetching.

These changes aim to improve the user interface by providing version information and enhance the overall code structure for better maintainability and performance.
2025-05-27 17:44:42 +02:00
Julien Nahum bb34cd98e5 Update GitHub Actions workflow to use latest GitHub Actions versions
Upgrade GitHub Actions workflow configuration:
- Update actions/checkout from v2 to v4
- Update actions/setup-node from v1 to v4
- Update actions/cache from v2 to v4
- Update actions/upload-artifact from v3 to v4
- Replace deprecated `::set-output` with `>>$GITHUB_OUTPUT`
2025-02-01 22:11:54 +01:00
Julien Nahum 44a4b983d5 Simplify Docker development setup with minimal configuration
- Remove Redis, queue workers, and scheduler from development environment
- Update docker-compose.dev.yml with simplified service configurations
- Modify Dockerfile.api to support flexible dependency installation
- Update docker-setup.sh script to use single compose file
- Revise Docker development documentation to reflect new lightweight approach
2025-01-29 18:44:42 +01:00
Julien Nahum f7df6bc0d7 Refactor Docker configuration and development setup
- Update .dockerignore with comprehensive ignore patterns for API and client
- Modify docker-compose files to improve service configurations
- Enhance Nginx configuration for development and production environments
- Refactor Dockerfile.api with improved build process
- Add docker-setup.sh script for simplified Docker deployment
- Update update-credentials.vue page with improved UI
- Remove hCaptcha dependency from package-lock.json
- Update PHP configuration and entrypoint scripts
2025-01-29 17:19:36 +01:00
Julien Nahum bf85d8fa76
Developer docker setup (#683)
* Add build context to compose

Signed-off-by: Daniel Ekman <knegge@gmail.com>

* Update Docker documentation with build instructions

Enhance Docker deployment documentation by:
- Adding detailed instructions for building Docker images
- Providing two methods for image building (Docker Compose and manual)
- Clarifying how to use local images with docker-compose.override.yml

* Add development Docker configuration

Introduce development-specific Docker configuration:
- Create docker-compose.dev.yml for local development setup
- Add nginx.dev.conf with development CORS settings
- Update Dockerfile.api to support environment-specific dependency installation
- Configure development services with appropriate volumes and environment variables

* Improve Docker and Development Documentation

- Remove platform-specific ARM64 constraints in docker-compose.dev.yml
- Enhance Nginx configuration with improved proxy and HMR settings
- Update documentation for development setup and Docker deployment
- Add new Docker development documentation page
- Refactor getting started guide with clearer development instructions

* Enhance Docker configuration and CI/CD pipeline

- Update Docker Compose files with improved service configurations
- Add database healthcheck in docker-compose.yml
- Refactor GitHub Actions workflow for Docker image publishing
- Optimize Dockerfile.api with multi-stage build and environment-specific configurations
- Update Nginx configuration for development and production environments

* Add GitHub Actions permissions for Docker image publishing

Configure GitHub Actions workflow with explicit read and write permissions for content and packages to improve security and clarity of Docker image deployment process

---------

Signed-off-by: Daniel Ekman <knegge@gmail.com>
Co-authored-by: Daniel Ekman <knegge@gmail.com>
2025-01-28 17:52:48 +01:00
Julien Nahum 4a2adcf8f7 Add client linting to GitHub Actions workflow
Enhance CI/CD pipeline by introducing a new job to run ESLint on the client application. This ensures code quality and consistency for the frontend codebase.
2025-01-27 18:24:27 +01:00
Julien Nahum 1b4e0b2533 Bump node & nuxt depencies 2024-11-20 18:41:56 +01:00
Julien Nahum 7aafc5cab3 GH issue template, docker cache fix, remove docker client entrypoint 2024-09-04 11:19:03 +02:00
Julien Nahum 1dffd27390 Fix CI 2024-08-26 18:31:53 +02:00
Julien Nahum 5bd1dda504
Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Julien Nahum 3280e38ee1
Docker compose setup (#513)
* fix password reset bug

* self hosted mode middleware changes on  pages

* fix lint

* wip: self hosted changes

* wip: self hosted frontend changes

* wip self hosted mode changes

* typo correction

* remove commented logic

* fix env variable names

* fix lint issues

* fix minor updates

* #445 Switched from single monolithic docker image to a docker-compose
 orchestrated network of services

* Automatically configures shared secret

* Working through some issues

* Use local file storage

* Moved the dockerfiles

* Fixed some issues when building from clean

* Corrected workflow

* Hopefully schedules everything correctly now

* Prep storage for worker process as well

* .env files are required

* Pinned dependency versions

* Disable self hosted in the client as well

* Removed double defaulting logic

* Using regexs is more succinct

* Added FRONT_URL environment variable

* Merge 236e4-self-hosted-mode-changes

* Improve inital user setup

* Finalized the new docker-compose setup

* Fix back-end formatting issues

---------

Co-authored-by: Frank <csskfaves@gmail.com>
Co-authored-by: Don Benjamin <don@webhammer.co.uk>
2024-08-05 12:06:20 +02:00
Julien Nahum c70c0df464 Load encrypted env file on deployment 2024-06-05 15:19:59 +02:00
Julien Nahum 895372f0a9 Remove concurrency in GH action 2024-03-12 12:30:52 +01:00
Julien Nahum 62971a2ef4 Lint PHP code psr-12, add GH action 2024-02-23 11:54:12 +01:00
Julien Nahum ebdd06cbe6 Add SENTRY_AUTH_TOKEN to upload sourcemaps 2024-01-17 19:48:07 +01:00
Julien Nahum e1e3fdee9c Deploy only if nuxt builds 2024-01-16 18:37:29 +01:00
Julien Nahum f0750f22ee Automate Amplify deployments 2024-01-16 18:35:11 +01:00
Julien Nahum 70abfe45f5 Cleaning up 2024-01-15 12:26:22 +01:00
Julien Nahum e889d68e9f Setup client directory for GH workflow 2024-01-15 11:41:39 +01:00
Julien Nahum 496f65040a Setup node in GH Nuxt action 2024-01-15 11:34:41 +01:00
Julien Nahum 80962678c1 Fix tests, added gh action nuxt step 2024-01-14 20:52:14 +01:00
Nicolas Hedger 0960af0373
fix: migrations not passing on pgsql (#242)
* fix: migration not passing on pgsql

* pin postgres version
2023-11-16 12:28:04 +01:00
Nicolas Hedger c51d7397fa
feat: add support for MySQL (#238)
* ci: run tests on mysql

* adapt migration to support default values on MySQL

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2023-11-15 10:55:31 +01:00
Julien Nahum 2ab3f79801 Upload front-end sourcemap to sentry 2023-10-13 11:31:56 +02:00
Julien Nahum 5111957ea5 Upgrade pipeline to php 8.2 2023-09-08 15:01:54 +02:00
Don Benjamin 8f84faf3d1
(#146) Re-wrote the docker code to generate a single self-contained d… (#153)
* (#146) Re-wrote the docker code to generate a single self-contained docker
image rather than using a docker-compose network of connected
containers

* (#146) Push version tags to docker hub automatically

* (#146) Switched to using a multistage docker build process to make the Dockerfile more readable and cache friendly without bloating the published image

* #146 More readable names

* #146 Documented the upgrade process and made 'artisan migrate' run on every boot to automate the upgrade process.
2023-07-27 11:34:19 +02:00
Julien Nahum d4777fd9e3 Enable auto-deploy 2023-03-26 12:54:39 +02:00
Julien Nahum 556fcb9e1a Update github CI action to reflect vite change 2023-02-23 19:09:55 +01:00
Julien Nahum f1c8eeff93 Fix correct branch name in github CI action 2023-02-23 19:09:18 +01:00
Julien Nahum f3a8ca11fe Fix tests and enable paralell testing 2023-02-23 19:05:17 +01:00
Julien Nahum 341ee04268 Added github workflow, clean remaning spatie stuff 2022-09-21 09:17:56 +02:00