add docker instructions to readme
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									a6f800a2a3
								
							
						
					
					
						commit
						c31138d367
					
				
					 1 changed files with 20 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								README.md
									
										
									
									
									
								
							|  | @ -13,3 +13,23 @@ UpdateItem, PutItem and GetItem should be trivial to implement. | |||
| It's designed for those times you want [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html), | ||||
| but don't want a full Java VM, etc. On small data sets, this static executable | ||||
| executable will use <10MB of resident memory. | ||||
| 
 | ||||
| # Running as Docker | ||||
| 
 | ||||
| Latest version can be found at [https://r.lerch.org/repo/ddbbolt/tags/](https://r.lerch.org/repo/ddbbolt/tags/). | ||||
| Versions are tagged with the short hash of the git commit, and are | ||||
| built as a multi-architecture image based on a scratch image. | ||||
| 
 | ||||
| You can run the docker image with a command like: | ||||
| 
 | ||||
| ```sh | ||||
| docker run \ | ||||
|   --volume=$(pwd)/ddbbolt:/data \ | ||||
|   -e FILE=/data/ddb.db          \ | ||||
|   -e PORT=8080                  \ | ||||
|   -p 8080:8080                  \ | ||||
|   -d                            \ | ||||
|   --name=ddbbolt                \ | ||||
|   --restart=unless-stopped      \ | ||||
|   r.lerch.org/ddbbolt:f501abe | ||||
| ``` | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue