You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll have to provide your own configuration file on the command line:
docker run -it -v /path/to/my/configuration/of/python-gitlab.cfg:/python-gitlab/python-gitlab.cfg python-gitlab <my command>
Which could lead to:
docker run -it -v /path/to/my/configuration/of/python-gitlab.cfg:/python-gitlab/python-gitlab.cfg python-gitlab project list
You can register this command as an alias:
alias gitlab='docker run --rm -it -v /path/to/my/configuration/of/python-gitlab.cfg:/python-gitlab/python-gitlab.cfg python-gitlab'
Which could lead to:
gitlab project list
I'm using this image successfully as CLI. There some more work to achieve in order to use the API.
Could you please reopen the bug for the moment?
And feel free to merge these materials within the git repository, or in another one. It would be greate to enable automatic build and publication to the docker hub.
You'll have to provide your own configuration file on the command line:
docker run -it -v /path/to/my/configuration/of/python-gitlab.cfg:/python-gitlab.cfg python-gitlab <my command>
Which could lead to:
docker run -it -v /path/to/my/configuration/of/python-gitlab.cfg:/python-gitlab.cfg python-gitlab project list
You can register this command as an alias:
alias gitlab='docker run --rm -it -v /path/to/my/configuration/of/python-gitlab.cfg:/python-gitlab.cfg python-gitlab'
Which could lead to:
gitlab project list
I'm using this image successfully as CLI. There some more work to achieve in order to use the API.
Feel free to merge these materials within the git repository, or in another one. It would be greate to enable automatic build and publication to the docker hub.
I have limited time to work on python-gitlab so for now I don't want to add the docker image maintenance to my ToDo list. I've added your Dockerfile and a README to the source code to make it available to the world.
Activity
gpocentek commentedon Aug 3, 2017
Hi,
I don't know if there's a python-gitlab image, but it's not something I want to maintain myself.
If someone wants to do the initial work and make sure it is maintained, I'd be happy to host the code in the python-gitlab/ namespace.
oupala commentedon Aug 3, 2017
Ok, if I succeed in making a working image, I will use it on a daily basis, so I'm sure I'll be maintaining it.
So I'll get back on this issue once I get a working image.
oupala commentedon Aug 22, 2017
The docker image is now ready.
Here is the Dockerfile:
Here is the sample configuration file that I included in my own image via the
COPYinstruction (taken from the documentation):You'll have to provide your own configuration file on the command line:
Which could lead to:
You can register this command as an alias:
Which could lead to:
I'm using this image successfully as CLI. There some more work to achieve in order to use the API.
Could you please reopen the bug for the moment?
And feel free to merge these materials within the git repository, or in another one. It would be greate to enable automatic build and publication to the docker hub.
gpocentek commentedon Aug 26, 2017
Thanks for this Dockerfile. A couple questions about your choices:
pythonbase image? pip is already install and the images are very small/python-gitlab.cfgas config file? I don't see the point of having a subdirectory.gpocentek commentedon Sep 2, 2017
@oupala any feedback on the previous comment?
oupala commentedon Sep 19, 2017
Sorry for the delay and thanks @gpocentek for your comments. You're right for both of them.
I now use a
pythonimage,python:slimimage. I also deleted the subdirectory. All is working well.Here is the Dockerfile:
Here is the sample configuration file that I included in my own image via the
COPYinstruction (taken from the documentation):You'll have to provide your own configuration file on the command line:
Which could lead to:
You can register this command as an alias:
Which could lead to:
I'm using this image successfully as CLI. There some more work to achieve in order to use the API.
Feel free to merge these materials within the git repository, or in another one. It would be greate to enable automatic build and publication to the docker hub.
gpocentek commentedon Nov 1, 2017
@oupala Thanks for the update.
I have limited time to work on python-gitlab so for now I don't want to add the docker image maintenance to my ToDo list. I've added your Dockerfile and a README to the source code to make it available to the world.
Thank you!
oupala commentedon Nov 3, 2017
Great! Thanks.