From a68134667c65ea02b2742cbd8718ce4022e61909 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Wed, 27 Nov 2024 19:11:38 +0100 Subject: [PATCH] Add nix shell with some dependencies to ease bootstrap of local environment --- k8s_config/dev/parcoursmob/config.yaml | 35 +++++++++++++++----------- k8s_config/k3d/kustomization.yaml | 8 +++--- shell.nix | 16 ++++++++++++ 3 files changed, 41 insertions(+), 18 deletions(-) create mode 100644 shell.nix diff --git a/k8s_config/dev/parcoursmob/config.yaml b/k8s_config/dev/parcoursmob/config.yaml index ddb614c..cba3f9f 100644 --- a/k8s_config/dev/parcoursmob/config.yaml +++ b/k8s_config/dev/parcoursmob/config.yaml @@ -3,25 +3,25 @@ dev_env: true server: listen: 0.0.0.0:80 -templates: +templates: root: /themes/default/ public_dir: /themes/default/web/public/ identification: oidc: - provider: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob - provider_config: - issuer_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob + provider: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob + provider_config: + issuer_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob auth_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/auth token_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/token user_info_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/user_info jwks_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/.well_known/jwks.json - client_id: abcdef - client_secret: ghijkl - redirect_url: http://parcoursmob.tilt-dev.svc.cluster.local/api/oauth2/callback + client_id: abcdef + client_secret: ghijkl + redirect_url: http://parcoursmob.tilt-dev.svc.cluster.local/api/oauth2/callback services: - grpc: + grpc: mobilityaccounts: dial: mobility-accounts:8080 groupsmanagement: @@ -33,9 +33,9 @@ services: navitia: api_key: abcd -storage: +storage: kv: - type: etcd + type: etcd etcd: endpoints: - etcd:2379 @@ -49,7 +49,7 @@ storage: use_ssl: false bucket_name: parcoursmob location: fr-par - file_types: + file_types: driving_licence: Permis de conduire work_contract: Contrat de travail ou de formation identity_proof: Pièce d'identité @@ -57,12 +57,12 @@ storage: emailing: smtp: - host: smtp4dev + host: smtp4dev port: 25 - username: noreply@parcoursmob.fr + username: noreply@parcoursmob.fr password: 12345678 -modules: +modules: beneficiaries: enable: true documents_types: @@ -85,6 +85,11 @@ modules: - work_contract agenda: enabled: true + calendars: + global: + enabled: true + organizations: + enabled: true events_types: - name: Accompagnements individuels - name: Permis accéléré @@ -98,3 +103,5 @@ modules: - name: Information collective - name: Autre +# knowledge: +# enabled: true diff --git a/k8s_config/k3d/kustomization.yaml b/k8s_config/k3d/kustomization.yaml index 9674c54..1b2f930 100644 --- a/k8s_config/k3d/kustomization.yaml +++ b/k8s_config/k3d/kustomization.yaml @@ -1,12 +1,12 @@ -resources: - - ../dev/ +resources: + - ../dev/ images: - name: git.coopgo.io/coopgo-apps/parcoursmob newName: "coopgo-apps/parcoursmob" - name: git.coopgo.io/coopgo-platform/mobility-accounts newName: "coopgo-platform/mobility-accounts" - - name: git.coopgo.io/coopgo-platform/fleets - newName: "coopgo-platform/fleets" + # - name: git.coopgo.io/coopgo-platform/fleets + # newName: "coopgo-platform/fleets" - name: git.coopgo.io/coopgo-platform/agenda newName: "coopgo-platform/agenda" diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..8fbd5a5 --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +let + nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05"; + pkgs = import nixpkgs { config = {}; overlays = []; }; +in + +pkgs.mkShellNoCC { + packages = with pkgs; [ + tilt + k3d + neovim + kubectl + protobuf + protoc-gen-go + protoc-gen-go-grpc + ]; +}