Skip to content
Snippets Groups Projects
Commit 91850415 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Rename stage to builder.

parent c31eeb56
No related branches found
No related tags found
No related merge requests found
FROM debian:buster-slim AS stage FROM debian:buster-slim AS builder
ADD build.sh / ADD build.sh /
RUN /build.sh RUN /build.sh
...@@ -21,9 +21,9 @@ RUN apt-get update && \ ...@@ -21,9 +21,9 @@ RUN apt-get update && \
procps procps
# Copy software from stage image # Copy software from stage image
COPY --from=stage /artifacts / COPY --from=builder /artifacts /
RUN rm -rfv /etc/ldap/slapd.d/* /etc/ldap/*.default /etc/ldap/slapd.con \ RUN rm -rfv /etc/ldap/slapd.d/* \
&& mkdir -p /etc/ldap/sasl2 \ && mkdir -p /etc/ldap/sasl2 \
&& echo "mech_list: GSSAPI EXTERNAL" >> /etc/ldap/sasl2/slapd.conf \ && echo "mech_list: GSSAPI EXTERNAL" >> /etc/ldap/sasl2/slapd.conf \
&& mkdir -p /var/lib/ldap/accesslog \ && mkdir -p /var/lib/ldap/accesslog \
......
...@@ -97,7 +97,10 @@ function install_openldap { ...@@ -97,7 +97,10 @@ function install_openldap {
-Wno-pointer-compare" -Wno-pointer-compare"
make depend && make make depend && make
make DESTDIR=${ARTIFACTS} install make DESTDIR=${ARTIFACTS} install
rm -rf ${ARTIFACTS}/etc/ldap/*.defaut ${ARTIFACTS}/etc/ldap/*.ldif # Clean up default configurations
rm -rf ${ARTIFACTS}/etc/ldap/*.default \
${ARTIFACTS}/etc/ldap/*.conf \
${ARTIFACTS}/etc/ldap/slapd.ldif
} }
## MAIN ## MAIN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment