Skip to content
Snippets Groups Projects
Commit b7d4030f authored by George Sedov's avatar George Sedov
Browse files

update docker

parent b7b7b3f5
No related branches found
No related tags found
No related merge requests found
......@@ -71,11 +71,58 @@ telemetry = {\n\
prometheus_retention_time = \"24h\"\n\
}" > /etc/consul.d/consul.hcl
RUN echo "include /etc/ldap/schema/core.schema\n\
include /etc/ldap/schema/cosine.schema\n\
include /etc/ldap/schema/nis.schema\n\
modulepath /usr/lib/ldap\n\
moduleload back_bdb.so\n\
pidfile /var/run/slapd/slapd.pid\n\
access to * by * write\n\
access to * by * manage\n\
access to * by * read\n\
allow bind_anon_cred\n\
allow bind_anon_dn\n\
allow update_anon\n\
database bdb\n\
suffix \"ou=rgy,o=desy,c=de\"\n\
" > /etc/ldap/slapd.conf
RUN rm -rf /etc/ldap/slapd.d
RUN echo "dn: ou=rgy,o=desy,c=de\n\
objectclass: organizationalUnit\n\
ou: rgy\n\
\n\
dn: ou=netgroup,ou=rgy,o=desy,c=de\n\
objectclass: organizationalUnit\n\
ou: netgroup\n\
\n\
dn: cn=a3p00-hosts,ou=netgroup,ou=rgy,o=desy,c=de\n\
objectClass :top\n\
objectClass :nisNetgroup\n\
cn:a3p00-hosts\n\
description: Netgroup for nodes on PETRA III Beamline P00\n\
nisNetgroupTriple: (blabla,-,)\n\
nisNetgroupTriple: (localhost,-,)\n\
nisNetgroupTriple: (blabla2,-,)\n\
\n\
dn: cn=a3p07-hosts,ou=netgroup,ou=rgy,o=desy,c=de\n\
objectClass :top\n\
objectClass :nisNetgroup\n\
cn:a3p07-hosts\n\
description: Netgroup for nodes on PETRA III Beamline P07\n\
nisNetgroupTriple: (blabla,-,)\n\
nisNetgroupTriple: (localhost,-,)\n\
nisNetgroupTriple: (blabla2,-,)\n\
" > /etc/ldap/record.ldif
RUN echo "\n\
/usr/bin/nomad agent -config /etc/nomad.d &> /dev/null &\n\
/usr/bin/consul agent -config-dir=/etc/consul.d/ &> /dev/null &\n\
service slapd start\n\
service mongod start\n\
\n\
ldapadd -x -D \"ou=rgy,o=desy,c=de\" -f /etc/ldap/record.ldif -h localhost\n\
" > /services_start.sh
CMD ["bash", "/services_start.sh"]
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