docker-tinc icon indicating copy to clipboard operation
docker-tinc copied to clipboard

What should be the structure of the git repo to pass to the docker image?

Open iakat opened this issue 6 years ago • 1 comments

iakat avatar Dec 10 '18 17:12 iakat

I run gitlab and make the repo available via https - and I have hardcoded that into the image, although it could be changed easy enough. I suppose I should rework the URI for the public to better use.

In /install/etc/s6/services/10-tinc/run on line 25 I have this: git clone https://$GIT_USER:$GIT_PASS@$GIT_URL /etc/tinc/$NETWORK/hosts

So my url would be https://user:[email protected]/reponame.git

There are a few other ways you can do this (manually) by editting the .git folder inside your data/hosts folder and changing the URL. If you give me a few days I'll rework this to be more accommodating for users.

tiredofit avatar Dec 10 '18 17:12 tiredofit