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

Fix docker image build #26

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Fix docker image build #26

merged 1 commit into from
Nov 28, 2023

Conversation

Uxio0
Copy link
Member

@Uxio0 Uxio0 commented Nov 28, 2023

  • Remove not needed dependencies
  • Add gunicorn missing configuration
  • Organize .env samples
  • Update README.md
  • Make sure swagger works
  • Closes Add swagger #4

docker compose up
```

Then go to http://localhost:8000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking that we are mixing configuration and execution here, could we separate them in different sections?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right

@@ -38,4 +38,4 @@ COPY --chown=python:python . .
# Use numeric ids so kubernetes identifies the user correctly
USER 999:999

RUN DJANGO_SETTINGS_MODULE=config.settings.production DJANGO_DOT_ENV_FILE=.env.tracing.sample python manage.py collectstatic --noinput
RUN DJANGO_SETTINGS_MODULE=config.settings.production DJANGO_DOT_ENV_FILE=.env.sample python manage.py collectstatic --noinput
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose that here should be .env instead .env.sample.

Copy link
Member Author

@Uxio0 Uxio0 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, as this is only a placeholder as it needs a file to exist, so it doesn't matter which one, but good catch

- Update dockerignore
- Remove not needed dependencies
- Add gunicorn missing configuration
- Organize .env samples
- Update README.md
- Make sure swagger works
- Closes #4
@Uxio0 Uxio0 merged commit 563d1b0 into main Nov 28, 2023
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2023
@Uxio0 Uxio0 deleted the fix-docker branch November 28, 2023 11:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add swagger
2 participants