You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Runs checks and starts development environment (default mode).
26
+
- Uses `docker-compose.yml` with Django dev server on port 8000 and Nginx on port 8080.
27
+
- Includes development tools, debugging capabilities, and auto-population of test data.
28
+
-**Example**: `./Auto-Setup.sh --dev`
29
+
-**`--prod`**
30
+
- Runs checks and starts production environment.
31
+
- Uses `docker-compose-prod.yml` with Gunicorn server behind Nginx on port 80.
32
+
- Optimised for performance with production-grade configuration.
33
+
-**Example**: `./Auto-Setup.sh --prod`
23
34
-**`--setup`**
24
-
- Uses `docker-compose up --build -d` to launch the Docker containers and performs all environment checks.
25
-
- Awaits confirmation from the health endpoint that the application is operating properly.
26
-
- Feedback on setup success or failure is given, along with recommendations for log checks if necessary.
35
+
- Legacy command that defaults to development mode for backwards compatibility.
27
36
-**Example**: `./Auto-Setup.sh --setup`
28
37
-**`--help`**
29
-
-Displays a help message with the instructions and options available.
38
+
- Displays help message with all available options and mode descriptions.
30
39
-**Example**: `./Auto-Setup.sh --help`
31
40
32
41
## precommit.sh
@@ -83,10 +92,13 @@ The `secrets-scan.sh` script incorporates TruffleHog to detect secrets within fi
83
92
-**Example**: `./secrets-scan.sh`
84
93
85
94
## harden_docker_script.sh
86
-
The `harden_docker_script.sh` script evaluates Docker settings for security compliance, verifying adherence to best practices like minimal base images, non-root users, and appropriate cleanupprocedures.
95
+
The `harden_docker_script.sh` script evaluates Docker settings for security compliance, verifying adherence to best practices like minimal base images, non-root users, and appropriate cleanupprocedures.
87
96
88
97
-**`compliance`**
89
-
- Checks `Dockerfile`, `.dockerignore`, and `docker-compose.yml` for security compliance. - Validates the use of minimal base images (`python:3.12-slim`, `nginx:alpine`), non-root user configurations, dependency cleanup, and read-only > - Generates a compliance report with pass/fail results for each check.
98
+
- Checks `Dockerfile`, `Dockerfile.prod`, `.dockerignore`, `docker-compose.yml`, and `docker-compose-prod.yml` for security compliance.
99
+
- Validates development and production configurations separately.
100
+
- Ensures proper environment separation between dev and prod modes.
101
+
- Generates a compliance report with pass/fail results for each check.
0 commit comments