Sign inSign up

moophlo/opendlp

By moophlo

Updated over 1 year ago

Image
0

1.2K

moophlo/opendlp repository overview

OpenDLP - Production Ready Docker Image

This project provides a production-ready Docker image for OpenDLP, built and automatically published using GitHub Actions.

Forked from: ezarko/opendlp
We acknowledge and appreciate the work done in the upstream project.

🛠 Project Goals

  • Create a modern, automated, multi-architecture Docker build for OpenDLP
  • Automatically publish new Docker images on every push and version tag via GitHub Actions
  • Provide flexible customization options via environment variables
  • Include TLS certificate generation and database initialization on container startup

📦 Docker Image

Docker Hub: moophlo/opendlp

Supported tags:

  • latest
  • git-sha (e.g., moophlo/opendlp:abc1234)
  • Semantic versioning (e.g., moophlo/opendlp:v1.0.0)

⚙ Environment Variable Configuration

The container supports several environment variables for customization at runtime:

🔐 Certificate and CA Customization
VariableDescriptionDefault
APACHE_SSL_SUBJSubject string for server certificate/C=US/ST=State/L=City/O=MyOrg/OU=IT/CN=example.com
APACHE_CLIENT_SUBJSubject string for client certificate/C=US/ST=State/L=City/O=MyOrg/OU=Clients/CN=client1
APACHE_CERT_PASSPassphrase used for certificatespassword
OPENSSL_CONFIGOpenSSL config file path/etc/ssl/openssl.cnf
🗄 Database Configuration
VariableDescriptionDefault
OPENDLP_DB_USERMySQL database usernameOpenDLP
OPENDLP_DB_PASSMySQL database passwordpassword
DB_HOSTMySQL database host127.0.0.1
DB_PORTMySQL database port3306
DB_NAMEMySQL database nameOpenDLP

The container automatically checks the database on startup, creates it if missing, and initializes the schema if empty using create.sql.

🧩 Configuration File Auto-Update

If DB_HOST is not the default (127.0.0.1), the container will update OpenDLP configuration files to point to the provided host automatically.

🔄 CI/CD Pipeline Overview

This project uses a GitHub Actions workflow to:

  • Build the Docker image for multiple architectures (amd64, arm64)
  • Run a smoke test before pushing the image
  • Push the image to Docker Hub with appropriate tags

See .github/workflows/docker-build.yml for full pipeline details.

📜 License

This project is licensed under the MIT License. See the original LICENSE from the upstream repository.


✅ Example Usage

docker run -e OPENDLP_DB_USER=admin -e OPENDLP_DB_PASS=secret \
           -e DB_HOST=10.10.10.10 \
           moophlo/opendlp:latest

Tag summary

Content type

Image

Digest

sha256:d77cd4120

Size

235.3 MB

Last updated

over 1 year ago

docker pull moophlo/opendlp