Docker

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Docker

balogun tobi
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

vineet daniel
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <[hidden email]> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

Nick Sarbicki
Don't use git inside the container, this is not the standard way of doing things.

Docker has its own guide for using django with compose. This works fine for a single server setup: https://docs.docker.com/compose/django/

- Nick


On Thu, Oct 10, 2019 at 5:09 PM vineet daniel <[hidden email]> wrote:
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <[hidden email]> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

vineet daniel
How would one use volumes if containers are to initiated after git merge/push ? (CI/CD setup).

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
Blog   |   Linkedin  |  Twitter



On Thu, Oct 10, 2019 at 10:13 PM Nick Sarbicki <[hidden email]> wrote:
Don't use git inside the container, this is not the standard way of doing things.

Docker has its own guide for using django with compose. This works fine for a single server setup: https://docs.docker.com/compose/django/

- Nick


On Thu, Oct 10, 2019 at 5:09 PM vineet daniel <[hidden email]> wrote:
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <[hidden email]> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW9Zd9g%2BZ6hga7AHKfBRUkMy%3DQ%3DHK7SZKYGcLyx2ACxRKg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

Nick Sarbicki
You would use volumes in the same way regardless of how git is used and your CI/CD is setup.

Documentation on volumes in docker is here: https://docs.docker.com/storage/volumes/ and for compose here: https://docs.docker.com/compose/compose-file/#volume-configuration-reference

On Monday, October 14, 2019 at 8:15:46 AM UTC+1, vineet daniel wrote:
How would one use volumes if containers are to initiated after git merge/push ? (CI/CD setup).

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
<a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="http://vineetdaniel.blogspot.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvineetdaniel.blogspot.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiOE6p66rCVuFhieZcMQC2FvX1Iw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvineetdaniel.blogspot.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiOE6p66rCVuFhieZcMQC2FvX1Iw&#39;;return true;">Blog   |   <a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="http://in.linkedin.com/in/vineetdaniel" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fin.linkedin.com%2Fin%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFML9U_5R-_EeSRzIwANFna5WQuNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fin.linkedin.com%2Fin%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFML9U_5R-_EeSRzIwANFna5WQuNA&#39;;return true;">Linkedin  |  <a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="https://twitter.com/vineetdaniel" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHONyyZHaqn9oyAX4k4OK-BfLEz5A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHONyyZHaqn9oyAX4k4OK-BfLEz5A&#39;;return true;">Twitter



On Thu, Oct 10, 2019 at 10:13 PM Nick Sarbicki <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="W6yMscCbDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nick.a...@...> wrote:
Don't use git inside the container, this is not the standard way of doing things.

Docker has its own guide for using django with compose. This works fine for a single server setup: <a href="https://docs.docker.com/compose/django/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fcompose%2Fdjango%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGSHFS7G3jI5xCmzJW6YuQiZ_KCsg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fcompose%2Fdjango%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGSHFS7G3jI5xCmzJW6YuQiZ_KCsg&#39;;return true;">https://docs.docker.com/compose/django/

- Nick


On Thu, Oct 10, 2019 at 5:09 PM vineet daniel <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="W6yMscCbDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vineet...@...> wrote:
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="W6yMscCbDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">blgn...@...> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="W6yMscCbDgAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="W6yMscCbDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="W6yMscCbDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

vineet daniel
in reference to kubernetes cluster as well? with multiple containers? developer pushes the code to git and that invokes kube pipeline where does volume come into picture here. I might be wrong here and that's why need clarity on this. May be we are thinking differently.

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
Blog   |   Linkedin  |  Twitter



On Mon, Oct 14, 2019 at 2:40 PM Nick Sarbicki <[hidden email]> wrote:
You would use volumes in the same way regardless of how git is used and your CI/CD is setup.

Documentation on volumes in docker is here: https://docs.docker.com/storage/volumes/ and for compose here: https://docs.docker.com/compose/compose-file/#volume-configuration-reference

On Monday, October 14, 2019 at 8:15:46 AM UTC+1, vineet daniel wrote:
How would one use volumes if containers are to initiated after git merge/push ? (CI/CD setup).

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
Blog   |   Linkedin  |  Twitter



On Thu, Oct 10, 2019 at 10:13 PM Nick Sarbicki <[hidden email]> wrote:
Don't use git inside the container, this is not the standard way of doing things.

Docker has its own guide for using django with compose. This works fine for a single server setup: https://docs.docker.com/compose/django/

- Nick


On Thu, Oct 10, 2019 at 5:09 PM vineet daniel <[hidden email]> wrote:
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <[hidden email]> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW-R9zbws6z_xe_MMExiktOd%3DM58ERfzKz7yaP50ntz_qg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

Nick Sarbicki
K8S has a very different system of volumes which is separate from Docker.


For K8S you mainly need to consider what your running K8S on, AWS, GCP, bare metal etc? As well as what you are storing on your volumes and if they only need to stick around for the lifetime of the pod, or need to be kept for longer.

In most cases when we are talking about file storage over the course of an apps lifetime (i.e. needs to persist even when deploying a new pod/version) the general direction is to store files in blob storage such as AWS S3. With Django this is pretty easy to do with django-storages (https://django-storages.readthedocs.io/en/latest/).

In some cases this isn't possible, for instance storing large ML models between multiple pods - in which case you will likely need to create persistentVolumeClaim using something like AWS EFS which involves a bit more manual work.

In a few cases it may be that the data should be shipped to a database...

The right path varies wildly depending on what you think you need volumes for.

On Monday, October 14, 2019 at 10:43:45 AM UTC+1, vineet daniel wrote:
in reference to kubernetes cluster as well? with multiple containers? developer pushes the code to git and that invokes kube pipeline where does volume come into picture here. I might be wrong here and that's why need clarity on this. May be we are thinking differently.

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
<a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="http://vineetdaniel.blogspot.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvineetdaniel.blogspot.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiOE6p66rCVuFhieZcMQC2FvX1Iw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvineetdaniel.blogspot.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiOE6p66rCVuFhieZcMQC2FvX1Iw&#39;;return true;">Blog   |   <a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="http://in.linkedin.com/in/vineetdaniel" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fin.linkedin.com%2Fin%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFML9U_5R-_EeSRzIwANFna5WQuNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fin.linkedin.com%2Fin%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFML9U_5R-_EeSRzIwANFna5WQuNA&#39;;return true;">Linkedin  |  <a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="https://twitter.com/vineetdaniel" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHONyyZHaqn9oyAX4k4OK-BfLEz5A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHONyyZHaqn9oyAX4k4OK-BfLEz5A&#39;;return true;">Twitter



On Mon, Oct 14, 2019 at 2:40 PM Nick Sarbicki <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="g4RJFtSjDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nick.a...@...> wrote:
You would use volumes in the same way regardless of how git is used and your CI/CD is setup.

Documentation on volumes in docker is here: <a href="https://docs.docker.com/storage/volumes/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fstorage%2Fvolumes%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH78-8MOM04ZY3kRwNKz9UDKVCzBQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fstorage%2Fvolumes%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH78-8MOM04ZY3kRwNKz9UDKVCzBQ&#39;;return true;">https://docs.docker.com/storage/volumes/ and for compose here: <a href="https://docs.docker.com/compose/compose-file/#volume-configuration-reference" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fcompose%2Fcompose-file%2F%23volume-configuration-reference\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGSkYumPMRxqD8SO2AawP_vlLwQdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fcompose%2Fcompose-file%2F%23volume-configuration-reference\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGSkYumPMRxqD8SO2AawP_vlLwQdw&#39;;return true;">https://docs.docker.com/compose/compose-file/#volume-configuration-reference

On Monday, October 14, 2019 at 8:15:46 AM UTC+1, vineet daniel wrote:
How would one use volumes if containers are to initiated after git merge/push ? (CI/CD setup).

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
<a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="http://vineetdaniel.blogspot.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvineetdaniel.blogspot.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiOE6p66rCVuFhieZcMQC2FvX1Iw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fvineetdaniel.blogspot.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiOE6p66rCVuFhieZcMQC2FvX1Iw&#39;;return true;">Blog   |   <a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="http://in.linkedin.com/in/vineetdaniel" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fin.linkedin.com%2Fin%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFML9U_5R-_EeSRzIwANFna5WQuNA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fin.linkedin.com%2Fin%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFML9U_5R-_EeSRzIwANFna5WQuNA&#39;;return true;">Linkedin  |  <a style="font-family:verdana,sans-serif;color:rgb(102,102,102)" href="https://twitter.com/vineetdaniel" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHONyyZHaqn9oyAX4k4OK-BfLEz5A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fvineetdaniel\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHONyyZHaqn9oyAX4k4OK-BfLEz5A&#39;;return true;">Twitter



On Thu, Oct 10, 2019 at 10:13 PM Nick Sarbicki <[hidden email]> wrote:
Don't use git inside the container, this is not the standard way of doing things.

Docker has its own guide for using django with compose. This works fine for a single server setup: <a href="https://docs.docker.com/compose/django/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fcompose%2Fdjango%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGSHFS7G3jI5xCmzJW6YuQiZ_KCsg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.docker.com%2Fcompose%2Fdjango%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGSHFS7G3jI5xCmzJW6YuQiZ_KCsg&#39;;return true;">https://docs.docker.com/compose/django/

- Nick


On Thu, Oct 10, 2019 at 5:09 PM vineet daniel <[hidden email]> wrote:
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <[hidden email]> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="g4RJFtSjDgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/988ea33a-95b6-45b6-b535-bfa1082ca90a%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Docker

balogun tobi
been away for a while that's why i havent replied. i have built the app already i really just need Docker for deployment 

On Mon, 14 Oct 2019 at 10:51, Nick Sarbicki <[hidden email]> wrote:
K8S has a very different system of volumes which is separate from Docker.


For K8S you mainly need to consider what your running K8S on, AWS, GCP, bare metal etc? As well as what you are storing on your volumes and if they only need to stick around for the lifetime of the pod, or need to be kept for longer.

In most cases when we are talking about file storage over the course of an apps lifetime (i.e. needs to persist even when deploying a new pod/version) the general direction is to store files in blob storage such as AWS S3. With Django this is pretty easy to do with django-storages (https://django-storages.readthedocs.io/en/latest/).

In some cases this isn't possible, for instance storing large ML models between multiple pods - in which case you will likely need to create persistentVolumeClaim using something like AWS EFS which involves a bit more manual work.

In a few cases it may be that the data should be shipped to a database...

The right path varies wildly depending on what you think you need volumes for.

On Monday, October 14, 2019 at 10:43:45 AM UTC+1, vineet daniel wrote:
in reference to kubernetes cluster as well? with multiple containers? developer pushes the code to git and that invokes kube pipeline where does volume come into picture here. I might be wrong here and that's why need clarity on this. May be we are thinking differently.

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
Blog   |   Linkedin  |  Twitter



On Mon, Oct 14, 2019 at 2:40 PM Nick Sarbicki <[hidden email]> wrote:
You would use volumes in the same way regardless of how git is used and your CI/CD is setup.

Documentation on volumes in docker is here: https://docs.docker.com/storage/volumes/ and for compose here: https://docs.docker.com/compose/compose-file/#volume-configuration-reference

On Monday, October 14, 2019 at 8:15:46 AM UTC+1, vineet daniel wrote:
How would one use volumes if containers are to initiated after git merge/push ? (CI/CD setup).

Regards
Vineet Daniel
Cell          : +918527565696
Websites : 
Blog   |   Linkedin  |  Twitter



On Thu, Oct 10, 2019 at 10:13 PM Nick Sarbicki <[hidden email]> wrote:
Don't use git inside the container, this is not the standard way of doing things.

Docker has its own guide for using django with compose. This works fine for a single server setup: https://docs.docker.com/compose/django/

- Nick


On Thu, Oct 10, 2019 at 5:09 PM vineet daniel <[hidden email]> wrote:
Use git to clone the code within the container to fetch latest copy of code. 

On Thu, 10 Oct 2019, 20:59 balogun tobi, <[hidden email]> wrote:
How does one deploy an already developed django app using Docker?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da969e88-ccdc-4cac-9a37-6096b3704de1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJPbAW9mQwb4%2BLOuS0-3c0W0pW3Dt_GQfMhZ%3D_ZBw%2BvnLVxuhA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGuvt903iPdjT%3DNu4iHun%2BkJ-O8EtH-AN7TOmhto7oShqYKsDQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ecc10a91-ca14-4c84-845d-5fed90ec12f2%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/988ea33a-95b6-45b6-b535-bfa1082ca90a%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM8jDpdcgTqBuPVgtiF%2B_RJHBbaOeSMW3biHvQRhvPADUtXqsg%40mail.gmail.com.