Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...

 
alt

Daniel Nashed

 

    How to pass a Domino V12 OneTouch JSON to your pod or container

    Daniel Nashed  3 May 2021 06:16:12
    For Docker it is quite easy to pass the JSON file.
    You just add another volume into a known location:


    Environment variables:

    SetupAutoConfigure=1

    SetupAutoConfigureParams=/etc/domino-cfg/auto_config.json


    When using Kubernetes you can either pass data via screts or better juse a ConfigMap for your JSON file.
    Using a ConfigMap already prepares you for Helm charts later, where you can work with place holders.
    In your volume definition you just specify the configMap and in your pod you just mount this volume to the right place.


    We started to add new material into our Docker Domino repository.
    This is still work in progress and we will have more over time.
    But here is a start link for now:
    https://github.com/IBM/domino-docker/tree/develop/lab/kubernetes/domino

    Special THANKS to Daniele Vistalli for bringing us on to the right track for Helm over the weekend ;-)

    -- Daniel


    apiVersion: v1
    kind: ConfigMap
    metadata:
    name: domino12-cfg
    namespace: default
    data:
    auto_config.json: |
      {
        "serverSetup": {
          "server": {
            "type": "first",
            "name": "master.domino.lab",
      ...

       }

    -----

    volumes:
    - name: domino-data
      persistentVolumeClaim:
        claimName: local-path-pvc

    - name: domino-cfg
      configMap:
        name: domino12-cfg


    Links

      Archives


      • [HCL Domino]
      • [Domino on Linux]
      • [Nash!Com]
      • [Daniel Nashed]