Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage in Docker #228

Closed
BenA-SA opened this issue Jul 8, 2023 · 2 comments
Closed

Usage in Docker #228

BenA-SA opened this issue Jul 8, 2023 · 2 comments
Labels

Comments

@BenA-SA
Copy link

BenA-SA commented Jul 8, 2023

Hi all,

Thanks for producing a great package!

I'm wanting to use this package with Clicky inside docker (from cookiecutter-django), but I'm not sure how to do the initial python setup within my docker container.

Has anyone used this package inside a docker container, and if so, how did you do the initial install?

Many thanks for any help anyone can offer!

@bittner
Copy link
Member

bittner commented Jul 8, 2023

Like any Django app you integrate it in your Django project. If you manage to install your Django project in a container image (e.g. Docker) you're done. Just try it and you'll see it's not magic!

If you look at an existing Dockerfile that hosts a Django project you'll likely see lines like these:

COPY requirements.txt ./
RUN pip install -r requirements.txt

This is a very common way to install all your project's dependencies, which would also cover django-analytical if you use it.

In a more advanced approach you'd package your Django project up as a Python package first and install it directly in the Dockerfile. But that's a topic for another day assuming you're only starting with Docker now.

@bittner
Copy link
Member

bittner commented Jul 8, 2023

This question is not specific to a feature of this project, hence closing the issue.

You may look for tutorials on how to deploy a Django project using Docker.

@bittner bittner closed this as completed Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants