Git Product home page Git Product logo

docker-kmip's Introduction

PyKMIP docker container

What is this container ?

This container was created to enable integration testing against KMIP.

Do not use in production

How to use this container

Docker Hub image

I start the container using the following command:

docker run -d --security-opt seccomp=unconfined --cap-add=NET_ADMIN --rm -p 5696:5696 --name kmip altmannmarcelo/kmip:latest

Building local image

Build a local image using the Dockerfile

docker build .

. . .
Successfully built 5f1fd412b0e4

Then start the container passing the hash id from previous command

docker run -d --security-opt seccomp=unconfined --cap-add=NET_ADMIN --rm -p 5696:5696 --name kmip  5f1fd412b0e4

Alternatively, you can pass -t your_user/image_name#tag parameter to build command and use that as image ID:

docker build -t altmannmarcelo/kmip:latest .
docker run -d --security-opt seccomp=unconfined --cap-add=NET_ADMIN --rm -p 5696:5696 --name kmip altmannmarcelo/kmip:latest

Copy Certificates

In order to use kmip, you will have to copy the certificates:

mkdir /tmp/certs
docker cp kmip:/opt/certs/root_certificate.pem /tmp/certs/
docker cp kmip:/opt/certs/client_key_jane_doe.pem /tmp/certs/
docker cp kmip:/opt/certs/client_certificate_jane_doe.pem /tmp/certs/

Using with Percona Server / Percona XtraDB Cluster (mysql)

In order to use with mysql, you need to configure component_keyring_kmip.cnf with following configuration:

{
  "server_addr": "127.0.0.1",
  "server_port": "5696",
  "client_ca": "/tmp/certs/client_certificate_jane_doe.pem",
  "client_key": "/tmp/certs/client_key_jane_doe.pem",
  "server_ca": "/tmp/certs/root_certificate.pem"
}

Using with Percona Xtrabackup test suite

In order to run pxb test suite you need to call it with following variables:

KMIP_CLIENT_CA="/tmp/certs/client_certificate_jane_doe.pem" KMIP_CLIENT_KEY="/tmp/certs/client_key_jane_doe.pem" KMIP_SERVER_CA="/tmp/certs/root_certificate.pem" ./run.sh

KMIP server logs

To inspect server logs run:

docker exec -it kmip tail -f /var/log/pykmip/server.log

docker-kmip's People

Contributors

altmannmarcelo avatar dutow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.