
patrons_import:
  cmd.run:
    - name: docker run
              -e "MYSQLPASS={{ pillar['koha']['adminpass'] }}" 
              -e "MYSQLUSER={{ pillar['koha']['adminuser'] }}" 
              -e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
              -e "MYSQLHOST=db"
              -e "BCRYPT=true"
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              --link koha_mysql_container:db 
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              make --file /migration/sh/Makefile import_patrons


patrons_import:
  cmd.run:
    - name: docker run
              -rm
              -e "MYSQLPASS={{ pillar['koha']['adminpass'] }}" 
              -e "MYSQLUSER={{ pillar['koha']['adminuser'] }}" 
              -e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
              -e "MYSQLHOST=db"
              -e "BCRYPT=true"
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              --link koha_mysql_container:db 
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              make --file /migration/sh/Makefile import_patrons

Remove migration containers after use.
Remove migration containers after use.

digibib/ls.ext,digibib/ls.ext,digibib/ls.ext,digibib/ls.ext