title: Can the kafka connectors be configured via env variables passed when launching docker? Or curl is the only way?
body: <p>This is the docker image we use to host docker-connect with the plugins</p>
  
  <pre><code>FROM confluentinc/cp-kafka-connect:5.3.1
  
  ENV CONNECT_PLUGIN_PATH=/usr/share/java
  
  # JDBC-MariaDB
  RUN wget -nv -P /usr/share/java/kafka-connect-jdbc/ https://downloads.mariadb.com/Connectors/java/connector-java-2.4.4/mariadb-java-client-2.4.4.jar
  
  # SNMP Source
  RUN wget -nv -P /tmp/ https://github.com/name/kafka-connect-snmp/releases/download/0.0.1.11/kafka-connect-snmp-0.0.1.11.tar.gz
  RUN mkdir /tmp/kafka-connect-snmp &amp;&amp; tar -xf /tmp/kafka-connect-snmp-0.0.1.11.tar.gz -C /tmp/kafka-connect-snmp/
  RUN mv /tmp/kafka-connect-snmp/usr/share/kafka-connect/kafka-connect-snmp /usr/share/java/
  
  </code></pre>
  
  <p>I run this docker via docker-compose and then I have specified some common env variables defined here <a href="https://docs.confluent.io/current/installation/docker/config-reference.html#kafka-connect-configuration" rel="nofollow noreferrer">https://docs.confluent.io/current/installation/docker/config-reference.html#kafka-connect-configuration</a></p>
  
  <p>But I also would like to specify connector related config from the env variable also, example I have done this</p>
  
  <pre><code> - CONNECT_NAME=snmp-connector
   - CONNECT_CONNECTOR_CLASS=com.github.jcustenborder.kafka.connect.snmp.SnmpTrapSourceConnector
   - CONNECT_TOPIC=fm_snmp
  </code></pre>
  
  <p>What I am trying to do it, instead of calling </p>
  
  <pre><code>curl -X POST -H "Content-Type: application/json" --data '{"name":"","config":{"connector.class":"com.github.jcustenborder.kafka.connect.snmp.SnmpTrapSourceConnector","topic":"fm_snmp"}}' http://localhost:8083/connectors
  </code></pre>
  
  <p>I want to just specify it via env variables, BUT!! unfortunately its not working. So when I try seeing list of active connectors   curl -localhost:8083/connectors/  , then I dont see it listed there.</p>
  
  <p>So finally, my question can I configure it via env variables or only curl is the way?</p>