Skip to content

Commit

Permalink
chore(docker-compose): Simplify docker compose file (#452)
Browse files Browse the repository at this point in the history
* chore(docker-compose): ease the usage of the docker compose file

* add some other variables

* some cleanup

* add email env vars

* add docker compose CI

* update worker healthcheck

* fix ci
  • Loading branch information
jdenquin authored Jan 30, 2025
1 parent 75f451d commit 6a1c26d
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 293 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Docker CI"
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker-ci:
name: Docker CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
docker-compose.yml
- name: Launch all services with default configuration
env:
LAGO_CREATE_ORG: "true"
LAGO_ORG_NAME: "Lago"
LAGO_ORG_USER_EMAIL: "[email protected]"
LAGO_ORG_USER_PASSWORD: "foobar"
LAGO_ORG_API_KEY: "test"
run: |
export LAGO_RSA_PRIVATE_KEY="`openssl genrsa 2048 | base64 | tr -d '\n'`"
docker compose up -d --wait
- name: cURL API
run: curl -f http://localhost:3000/health
- name: cURL Front
run: curl -f http://localhost:80
- name: cURL API Customers
run: |
curl -f http://localhost:3000/api/v1/customers -H "Authorization: Bearer test"
- name: Down services
run: docker compose down
2 changes: 1 addition & 1 deletion api
Submodule api updated 48 files
+2 −2 Gemfile.lock
+1 −1 app/models/api_key.rb
+16 −9 app/models/organization.rb
+1 −1 app/services/api_keys/create_service.rb
+1 −1 app/services/api_keys/update_service.rb
+7 −2 app/services/credit_notes/generate_service.rb
+1 −1 app/services/fees/charge_service.rb
+1 −1 app/services/integrations/aggregator/taxes/invoices/payload.rb
+1 −1 app/services/integrations/hubspot/create_service.rb
+1 −1 app/services/integrations/hubspot/update_service.rb
+1 −1 app/services/integrations/netsuite/create_service.rb
+1 −1 app/services/integrations/netsuite/update_service.rb
+2 −2 app/services/integrations/okta/create_service.rb
+1 −1 app/services/integrations/okta/update_service.rb
+1 −1 app/services/integrations/salesforce/create_service.rb
+1 −1 app/services/integrations/salesforce/update_service.rb
+2 −2 app/services/integrations/xero/create_service.rb
+1 −1 app/services/integrations/xero/update_service.rb
+3 −1 app/services/invoices/customer_usage_service.rb
+1 −1 app/services/invoices/subscription_service.rb
+1 −1 app/services/plans/create_service.rb
+1 −1 app/services/plans/override_service.rb
+1 −1 app/services/plans/update_service.rb
+0 −494 app/views/templates/credit_note.slim
+97 −0 app/views/templates/credit_notes/_details.slim
+11 −0 app/views/templates/credit_notes/_eu_tax_management.slim
+286 −0 app/views/templates/credit_notes/_styles.slim
+101 −0 app/views/templates/credit_notes/credit_note.slim
+103 −0 app/views/templates/credit_notes/self_billed.slim
+2 −0 config/locales/de/credit_note.yml
+2 −0 config/locales/en/credit_note.yml
+2 −0 config/locales/es/credit_note.yml
+2 −0 config/locales/fr/credit_note.yml
+2 −0 config/locales/it/credit_note.yml
+2 −0 config/locales/nb/credit_note.yml
+2 −0 config/locales/sv/credit_note.yml
+2 −0 spec/graphql/mutations/api_keys/update_spec.rb
+2 −0 spec/models/api_key_spec.rb
+4 −6 spec/models/organization_spec.rb
+2 −0 spec/services/api_keys/update_service_spec.rb
+18 −4 spec/services/credit_notes/generate_service_spec.rb
+2 −0 spec/services/fees/charge_service_spec.rb
+2 −0 spec/services/integrations/okta/create_service_spec.rb
+2 −0 spec/services/integrations/okta/update_service_spec.rb
+2 −0 spec/services/integrations/salesforce/create_service_spec.rb
+8 −2 spec/services/invoices/customer_usage_service_spec.rb
+2 −0 spec/services/invoices/subscription_service_spec.rb
+2 −0 spec/support/shared_examples/api_requirements.rb
Loading

0 comments on commit 6a1c26d

Please sign in to comment.