mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	updated comments in DeveloperGuide.md
This commit is contained in:
		
							parent
							
								
									6cef1fac5f
								
							
						
					
					
						commit
						0006a77b5d
					
				| @ -55,7 +55,7 @@ Stirling-PDF uses Lombok to reduce boilerplate code. Some IDEs, like Eclipse, do | ||||
| Visit the [Lombok website](https://projectlombok.org/setup/) for installation instructions specific to your IDE. | ||||
| 
 | ||||
| 5. Add environment variable | ||||
| For local testing, you should generally be testing the full 'Security' version of Stirling-PDF. To do this, you must add the environment flag DISABLE_ADDITIONAL_FEATURES=false to your system and/or IDE build/run step. | ||||
| For local testing, you should generally be testing the full 'Security' version of Stirling PDF. To do this, you must add the environment flag DISABLE_ADDITIONAL_FEATURES=false to your system and/or IDE build/run step. | ||||
| 
 | ||||
| ## 4. Project Structure | ||||
| 
 | ||||
| @ -114,9 +114,9 @@ Stirling-PDF offers several Docker versions: | ||||
| 
 | ||||
| Stirling-PDF provides several example Docker Compose files in the `exampleYmlFiles` directory, such as: | ||||
| 
 | ||||
| - `docker-compose-latest.yml`: Latest version without security features | ||||
| - `docker-compose-latest-security.yml`: Latest version with security features enabled | ||||
| - `docker-compose-latest-fat-security.yml`: Fat version with security features enabled | ||||
| - `docker-compose-latest.yml`: Latest version without login and security features | ||||
| - `docker-compose-latest-security.yml`: Latest version with login and security features enabled | ||||
| - `docker-compose-latest-fat-security.yml`: Fat version with login and security features enabled | ||||
| 
 | ||||
| These files provide pre-configured setups for different scenarios. For example, here's a snippet from `docker-compose-latest-security.yml`: | ||||
| 
 | ||||
| @ -170,7 +170,7 @@ Stirling-PDF uses different Docker images for various configurations. The build | ||||
| 1. Set the security environment variable: | ||||
| 
 | ||||
|    ```bash | ||||
|    export DISABLE_ADDITIONAL_FEATURES=true  # or false for security-enabled builds | ||||
|    export DISABLE_ADDITIONAL_FEATURES=true  # or false for to enable login and security features for builds | ||||
|    ``` | ||||
| 
 | ||||
| 2. Build the project with Gradle: | ||||
| @ -193,7 +193,7 @@ Stirling-PDF uses different Docker images for various configurations. The build | ||||
|    docker build --no-cache --pull --build-arg VERSION_TAG=alpha -t stirlingtools/stirling-pdf:latest-ultra-lite -f ./Dockerfile.ultra-lite . | ||||
|    ``` | ||||
| 
 | ||||
|    For the fat version (with security enabled): | ||||
|    For the fat version (with login and security features enabled): | ||||
| 
 | ||||
|    ```bash | ||||
|    export DISABLE_ADDITIONAL_FEATURES=false | ||||
|  | ||||
| @ -433,7 +433,9 @@ dependencies { | ||||
|     implementation 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20240325.1' | ||||
|     implementation 'org.snakeyaml:snakeyaml-engine:2.9' | ||||
| 
 | ||||
|     if (System.getenv("DOCKER_ENABLE_SECURITY") != "false" && System.getenv("DISABLE_ADDITIONAL_FEATURES") != "true") { | ||||
|     if (System.getenv("DOCKER_ENABLE_SECURITY") != "false" || System.getenv('DISABLE_ADDITIONAL_FEATURES') != 'true' | ||||
|         || (project.hasProperty('DISABLE_ADDITIONAL_FEATURES') | ||||
|         && System.getProperty('DISABLE_ADDITIONAL_FEATURES') != 'true')) { | ||||
|         implementation project(':proprietary') | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user