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

Project (almost) finished #7

Merged
merged 24 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use hot reloading for django
It is no longer required to rebuild the whole container when making
changes in the code
  • Loading branch information
noellrr committed Jun 8, 2024
commit ed3271c7c02aeed8963c2629d0651b72ccae5d22
2 changes: 2 additions & 0 deletions sample/otel-in-action/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ services:
# Können wir immer noch wiederherstellen, wenn wir sie brauchen
depends_on:
- postgresdb
volumes:
- ./todobackend_django:/app # Bind mount your local code to the container


todoui-thymeleaf:
Expand Down
3 changes: 3 additions & 0 deletions sample/otel-in-action/todobackend_django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Install PostgreSQL client
RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*

# Kopieren des gesamten Django-Projektcodes ins Arbeitsverzeichnis
COPY . /app

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@
}

}

DEBUG = True # For hot reloading