title: How to pass argument for a configuration file in JuPyterhub's deployment?
body: <p>I want to install <code>envkey</code> in my docker image which requires a <code>key-value</code> pair. I have the <code>key-value</code> pair with me but I am unable to figure out as to how do I install it in my docker image using those arguments and then deploy the same on <code>jupyterhub</code>.</p>
  
  <p>I tried reading other deployments of mine which use <code>envkey</code>. Here is how it goes:
  1. I have a <code>Makefile</code> and I run the command <code>sudo make dev config=aviral.cfg</code>
  2. The dev command in the Makefile is as follows:</p>
  
  <pre><code>dev:
      docker build -t $(IMAGE) -f Dockerfile.dev . &amp;&amp; docker tag $(IMAGE) $(ALIAS)
      @echo "\nCreate docker container.."
      CONFIG=$(config) IMAGE=$(IMAGE) docker-compose -f docker-compose.yml up -d --scale test=0 --scale airflow_worker=0
      @echo "\n$(GREEN)Done.$(NO_COLOR)\n"
      @echo "Try airflow at http://localhost:8080."
      @echo "and flower at http://localhost:5555."
  
  </code></pre>
  
  <ol start="3">
  <li>The <code>docker-compose</code> file is:</li>
  </ol>
  
  <pre><code>airflow_worker:
          image: ${IMAGE}:latest
          restart: always
          depends_on:
              - airflow_scheduler
          # ports:
          #     - 8793:8793
          # environment:
              # - GOOGLE_APPLICATION_CREDENTIALS=/gcloud/cloud.json
          env_file:
              - ${CONFIG}
          command: worker
  
  </code></pre>
  
  <p>As you can see, the env_file is passed on.</p>
  
  <p>I am unable to deduce how to do this same in the JuPyterHub.</p>
  
  <p>The helm chart is here(<a href="https://jupyterhub.github.io/helm-chart/jupyterhub-0.8.2.tgz" rel="nofollow noreferrer">https://jupyterhub.github.io/helm-chart/jupyterhub-0.8.2.tgz</a>). And my config is:</p>
  
  <pre><code>proxy:
    secretToken: "yada_yada"
  singleuser:
    image:
      name: yada_yada.dkr.ecr.ap-south-1.amazonaws.com/demo
      tag: 12h
    lifecycleHooks:
      postStart:
        exec:
          command: ["/bin/sh", "-c", 'ipython profile create; cd ~/.ipython/profile_default/startup; echo ''run_id = "sample" ''&gt; aviral.py']
    imagePullSecret:
      enabled: true
      registry: yada_yada.dkr.ecr.ap-south-1.amazonaws.com
      username: aws
      email: aviral@yada_yada.com
      password: yada_yada
  </code></pre>
  
  <p>In my config file, I pass variables as:</p>
  
  <pre><code>ENVKEY=my_personal_envkey
  </code></pre>
  
  <p>I expect to have my configs passed in the docker, or perhaps I write a proper Makefile for this stuff, as of now, I am facing this error:</p>
  
  <pre><code>Step 19/32 : RUN     curl -s https://raw.githubusercontent.com/envkey/envkey-source/master/install.sh | bash
   ---&gt; Running in 35bc1cf0e1c8
  envkey-source 1.2.9 Quick Install
  Copyright (c) 2019 Envkey Inc. - MIT License
  https://github.com/envkey/envkey-source
  
  Downloading envkey-source binary for linux-amd64
  Downloading tarball from https://github.com/envkey/envkey-source/releases/download/v1.2.9/envkey-source_1.2.9_linux_amd64.tar.gz
  envkey-source is installed in /usr/local/bin
  Installation complete. Info:
  
  bash: line 97:    29 Segmentation fault      envkey-source -h
  The command '/bin/sh -c curl -s https://raw.githubusercontent.com/envkey/envkey-source/master/install.sh | bash' returned a non-zero code: 139
  </code></pre>
  
  <p>Although this question alone should be good enough to give you the picture but for the sake of context(if), here are some of the questions:
  1. <a href="https://stackoverflow.com/questions/56182317/how-do-i-make-jupyter-hub-access-my-private-docker-image-repository">How do I make jupyter-hub access my private docker image repository?</a>
  2. <a href="https://stackoverflow.com/questions/56170284/unable-to-run-a-lifecycle-command-from-config-yaml-while-deploying-jupyterhub">Unable to run a lifecycle command from config.yaml while deploying jupyterhub</a>
  3. <a href="https://stackoverflow.com/questions/56161350/how-to-have-file-written-automatically-in-the-startup-folder-when-a-new-user-sig">How to have file written automatically in the startup folder when a new user signs up/in on JuPyter hub?</a></p>