Skip to content

Malware scanning #1267

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
41 changes: 21 additions & 20 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
ENVIRONMENT='development'
FRONTEND_PORT=3000

FRONTEND_PORT="3000"
VITE_FRONTEND_URL="http://localhost:3000"
Copy link
Member

@mattburnett-repo mattburnett-repo May 18, 2025

Choose a reason for hiding this comment

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

The change in the formatting of the values (the "" ) is not necessary.

Usually, the only changes to a .env file should be adding / removing variables. It is best to leave the formatting as-is.

@Joshua-Tihabwangye , could you please revert this file? Thanks!

VITE_BACKEND_URL="http://localhost:8000"
VITE_API_URL="http://localhost:8000/v1"
VITE_FRONTEND_URL=http://localhost:3000
VITE_BACKEND_URL=http://localhost:8000
VITE_API_URL=http://localhost:8000/v1

ADMIN_PATH="admin/"
BACKEND_PORT="8000"
ADMIN_PATH=admin/
BACKEND_PORT=8000
DJANGO_ALLOWED_HOSTS="localhost *"
DJANGO_CSRF_TRUSTED_ORIGINS="http://localhost"
DJANGO_CSRF_TRUSTED_ORIGINS=http://localhost

# DB port should always be set to 5432.
DATABASE_PORT="5432"
DATABASE_PORT=5432
DATABASE_HOST=db
DATABASE_NAME="activist"
DATABASE_USER="postgres"
DATABASE_PASSWORD="postgres"
DATABASE_NAME=activist
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres

SECRET_KEY='secret'
DEBUG='1'
SECRET_KEY=secret
DEBUG=1

ACTIVIST_EMAIL="[email protected]"
EMAIL_HOST="smtp.activist.org"
EMAIL_PORT="587"
EMAIL_HOST_USER="[email protected]"
EMAIL_HOST_PASSWORD="activist123!?"
EMAIL_USE_TLS="True"
[email protected]
EMAIL_HOST=smtp.activist.org
EMAIL_PORT=587
[email protected]
EMAIL_HOST_PASSWORD=activist123!?
EMAIL_USE_TLS=true

ENVIRONMENT=development
26 changes: 19 additions & 7 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
FROM python:3.11-alpine3.16

# Set work dir for relative paths.
WORKDIR /app

# Install dependencies.
COPY ./requirements-dev.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements-dev.txt
COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy code from context to image.
COPY . .
RUN apt-get update && apt-get install -y clamav clamav-daemon
Copy link
Member

Choose a reason for hiding this comment

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

During Docker build, getting this error:

RUN apt-get update && apt-get install -y clamav clamav-daemon

/bin/sh: apt-get: not found

See comment above, about including clamav modules in the requirements.txt file.



COPY . /app/.


# ... other configurations ...

CMD sh -c "python manage.py wait_for_db && \
python manage.py makemigrations && \
python manage.py migrate && \
python manage.py loaddata fixtures/superuser.json && \
python manage.py loaddata fixtures/status_types.json && \
python manage.py loaddata fixtures/topics.json && \
python manage.py populate_db --users 10 --orgs-per-user 1 --groups-per-org 1 --events-per-org 1 --resources-per-entity 1 --faq-entries-per-entity 1 && \
python manage.py runserver 0.0.0.0:${BACKEND_PORT}"

Loading
Loading