From 30b9f796abec11fda853e95e1ffd19c033b8349e Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Fri, 15 Jun 2018 11:37:34 -0500 Subject: [PATCH] Added slapd proxy for COmanage Added Dockerfile and associated files to create image used to create a container that runs slapd as an LDAP proxy to help support high availability. --- comanage-registry-slapd-proxy/Dockerfile | 23 ++++++++++++++++ .../docker-slapd-entrypoint | 26 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 comanage-registry-slapd-proxy/Dockerfile create mode 100755 comanage-registry-slapd-proxy/docker-slapd-entrypoint diff --git a/comanage-registry-slapd-proxy/Dockerfile b/comanage-registry-slapd-proxy/Dockerfile new file mode 100644 index 0000000..5bbd531 --- /dev/null +++ b/comanage-registry-slapd-proxy/Dockerfile @@ -0,0 +1,23 @@ +# slapd proxy Dockerfile for use with COmanage Registry +# +# Portions licensed to the University Corporation for Advanced Internet +# Development, Inc. ("UCAID") under one or more contributor license agreements. +# See the NOTICE file distributed with this work for additional information +# regarding copyright ownership. +# +# UCAID licenses this file to you under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +FROM sphericalcowgroup/comanage-registry-slapd-base + +COPY docker-slapd-entrypoint /usr/local/bin/ + +ENTRYPOINT ["docker-slapd-entrypoint"] diff --git a/comanage-registry-slapd-proxy/docker-slapd-entrypoint b/comanage-registry-slapd-proxy/docker-slapd-entrypoint new file mode 100755 index 0000000..30c6d32 --- /dev/null +++ b/comanage-registry-slapd-proxy/docker-slapd-entrypoint @@ -0,0 +1,26 @@ +#!/bin/bash + +# slapd proxy for COmanage Registry Dockerfile entrypoint +# +# Portions licensed to the University Corporation for Advanced Internet +# Development, Inc. ("UCAID") under one or more contributor license agreements. +# See the NOTICE file distributed with this work for additional information +# regarding copyright ownership. +# +# UCAID licenses this file to you under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +source /usr/local/lib/comanage_ldap_utils.sh + +comanage_ldap_utils::exec_slapd_proxy "$@"