# Process when creating the environment (renku-env, entrypoint)

**URL:** <https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291>\
**Category:** Renku Admin\
**Created:** [26 March 2021 09:46 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291 "2021-03-26T09:46:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://renku.discourse.group/u/jules)\
**Post date:** [26 March 2021 09:46 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/1 "2021-03-26T09:46:31Z")

</div>

Hi,

I’m trying to use the renku-env repository to dynamically configure some environment variables depending on user configuration. I searched for information on the this in the documentation for have not found anything related to renku-env. From what I understood from [the entrypoint.sh](https://github.com/SwissDataScienceCenter/renkulab-docker/blob/master/docker/py/entrypoint.sh) file, renku-env is just a name of repository where we can put files that will be copied to each project at creation. I tried to create a repository under the same user named _renku-env_ with just one text file in but it does not appear when re-creating an environment. Is there documentation of this process?

The renku-env repository created is present in /tmp with the correct content but apparently this command doesn’t work as (I) expected:

```auto
# append the contents of all the files to same files in ${HOME}
find /tmp/renku-env -not -path '*.git*' -type f -print0 | xargs --null -I{} sh -c 'cat {} >> ${HOME}/$(basename "{}")' || true

```

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [26 March 2021 09:48 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/2 "2021-03-26T09:48:21Z")

</div>

Hi @jules did you resolve this? I was about to reply 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://renku.discourse.group/u/jules)\
**Post date:** [26 March 2021 09:49 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/3 "2021-03-26T09:49:45Z")

</div>

No but I posted it too quickly. I didn’t meant to delete it I just wanted to continue the post

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [26 March 2021 09:53 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/4 "2021-03-26T09:53:56Z")

</div>

> [@jules](#):
>
> The renku-env repository created is present in /tmp with the correct content but apparently this command doesn’t work as (I) expected:

that might very well be - can you look in the logs of your session (you can find it in the drop-down next to the environment status on the project’s environments page) or try to run this line yourself to see where the problem is?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://renku.discourse.group/u/jules)\
**Post date:** [26 March 2021 10:07 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/5 "2021-03-26T10:07:20Z")

</div>

Thank you for your reponses. In fact I thought it would would copy the content to the project but it copies the files to the home directory. Sorry for my confusion!

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [26 March 2021 14:06 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/6 "2021-03-26T14:06:40Z")

</div>

Yes, I need to document this behavior, but the idea is that the environment files from your repo are used to overwrite/amend the existing files in the environment. Did you manage to get it to work?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://renku.discourse.group/u/jules)\
**Post date:** [28 April 2021 12:05 UTC](https://renku.discourse.group/t/process-when-creating-the-environment-renku-env-entrypoint/291/7 "2021-04-28T12:05:48Z")

</div>

Hi,

Yes, or at least I don’t have the issue anymore. Now the problem I have is regarding the access to these repositories. But I’ll create another post for that.

Thank you!
