forked from 389ds/389-ds-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Deploying DS Container on Podman
Endi S. Dewata edited this page Aug 22, 2022
·
7 revisions
This page describes the process to deploy a DS container on Podman for PKI server.
$ podman network create example
$ podman volume create ds-data
Run the container with the following command:
$ podman run \ --name=ds \ --hostname=ds.example.com \ --network=example \ --network-alias=ds.example.com \ -v ds-data:/data \ -e DS_DM_PASSWORD=Secret.123 \ -p 3389:3389 \ -p 3636:3636 \ -d \ quay.io/389ds/dirsrv
Wait until the container is started:
$ podman logs -f ds
$ podman exec ds dsconf localhost backend create \ --suffix dc=example,dc=com \ --be-name userRoot
$ podman exec ds ldapadd \ -H ldap://ds.example.com:3389 \ -D "cn=Directory Manager" \ -w Secret.123 \ -x << EOF dn: dc=example,dc=com objectClass: domain dc: example dn: dc=pki,dc=example,dc=com objectClass: domain dc: pki EOF
$ podman exec ds ldapsearch \ -H ldap://ds.example.com:3389 \ -D "cn=Directory Manager" \ -w Secret.123 \ -x \ -b "dc=example,dc=com"
$ podman exec ds mkdir -p /data/tls/ca
$ podman rm -f ds $ podman volume rm ds-data $ podman network rm example