mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 04:43:25 +00:00 
			
		
		
		
	Improve naming
This commit is contained in:
		
							parent
							
								
									f9055c711a
								
							
						
					
					
						commit
						a527d425fd
					
				|  | @ -1,4 +1,4 @@ | |||
| # Uncomment a line below and fill in the missing values or add your own. Every line in this file will be called by build.[sh|ps1] once the patched image is built. | ||||
| # docker run -d --name bitwarden -v <full-local-path>\logs:/var/log/bitwarden -v <full-local-path>\bwdata:/etc/bitwarden -p 80:8080 --env-file <full-local-path>\settings.env bitwarden-patch | ||||
| # docker run -d --name bitwarden -v <full-local-path>\logs:/var/log/bitwarden -v <full-local-path>\bwdata:/etc/bitwarden -p 80:8080 --env-file <full-local-path>\settings.env bitwarden-patched | ||||
| # <OR> | ||||
| # docker-compose -f <full-local-path>/docker-compose.yml up -d | ||||
|  |  | |||
|  | @ -70,7 +70,7 @@ From the BitBetter directory, simply run: | |||
| ./build.[sh|ps1] | ||||
| ``` | ||||
| 
 | ||||
| This will create a new self-signed certificate in the `.keys` directory if one does not already exist and then create a modified version of the official `ghcr.io/bitwarden/self-host` image called `bitwarden-patch`. | ||||
| This will create a new self-signed certificate in the `.keys` directory if one does not already exist and then create a modified version of the official `ghcr.io/bitwarden/self-host` image called `bitwarden-patched`. | ||||
| 
 | ||||
| Afterwards it will automatically generate the license generator and start all previously specified containers which are **now ready to accept self-issued licenses.** | ||||
| 
 | ||||
|  |  | |||
|  | @ -55,12 +55,12 @@ if ($args[0] -eq 'y') { | |||
| } | ||||
| 
 | ||||
| # stop and remove previous existing patch(ed) container | ||||
| $oldinstances = docker container ps --all -f Ancestor=bitwarden-patch --format '{{.ID}}' | ||||
| $oldinstances = docker container ps --all -f Ancestor=bitwarden-patched --format '{{.ID}}' | ||||
| foreach ($instance in $oldinstances) { | ||||
| 	docker stop $instance | ||||
| 	docker rm $instance | ||||
| } | ||||
| $oldinstances = docker image ls bitwarden-patch --format '{{.ID}}' | ||||
| $oldinstances = docker image ls bitwarden-patched --format '{{.ID}}' | ||||
| foreach ($instance in $oldinstances) { | ||||
| 	docker image rm $instance | ||||
| } | ||||
|  | @ -92,7 +92,7 @@ docker rm bitwarden-extract | |||
| docker run -v "$tempdirectory`:/app/mount" --rm bitbetter/bitbetter | ||||
| 
 | ||||
| # create a new image with the patched files | ||||
| docker build . --tag bitwarden-patch --file "$pwd\src\bitBetter\Dockerfile-bitwarden-patch" | ||||
| docker build . --tag bitwarden-patched --file "$pwd\src\bitBetter\Dockerfile-bitwarden-patch" | ||||
| 
 | ||||
| # start all user requested instances | ||||
| if (Test-Path -Path "$pwd\.servers\serverlist.txt" -PathType Leaf) { | ||||
|  |  | |||
							
								
								
									
										6
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								build.sh
									
									
									
									
									
								
							|  | @ -58,12 +58,12 @@ else | |||
| fi | ||||
| 
 | ||||
| # stop and remove previous existing patch(ed) container | ||||
| OLDINSTANCES=$(docker container ps --all -f Ancestor=bitwarden-patch --format '{{.ID}}') | ||||
| OLDINSTANCES=$(docker container ps --all -f Ancestor=bitwarden-patched --format '{{.ID}}') | ||||
| for INSTANCE in ${OLDINSTANCES[@]}; do | ||||
| 	docker stop $INSTANCE | ||||
| 	docker rm $INSTANCE | ||||
| done | ||||
| OLDINSTANCES=$(docker image ls bitwarden-patch --format '{{.ID}}') | ||||
| OLDINSTANCES=$(docker image ls bitwarden-patched --format '{{.ID}}') | ||||
| for INSTANCE in ${OLDINSTANCES[@]}; do | ||||
| 	docker image rm $INSTANCE | ||||
| done | ||||
|  | @ -95,7 +95,7 @@ docker rm bitwarden-extract | |||
| docker run -v "$TEMPDIRECTORY:/app/mount" --rm bitbetter/bitbetter | ||||
| 
 | ||||
| # create a new image with the patched files | ||||
| docker build . --tag bitwarden-patch --file "$PWD/src/bitBetter/Dockerfile-bitwarden-patch" | ||||
| docker build . --tag bitwarden-patched --file "$PWD/src/bitBetter/Dockerfile-bitwarden-patch" | ||||
| 
 | ||||
| # start all user requested instances | ||||
| if [ -f "$PWD/src/bitBetter/cert.cert" ]; then | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user