mirror of
				https://github.com/Unstructured-IO/unstructured.git
				synced 2025-10-31 10:03:07 +00:00 
			
		
		
		
	 bd8a74d686
			
		
	
	
		bd8a74d686
		
			
		
	
	
	
	
		
			
			Given the tendency for shell scripts to easily enter into a few levels of indentation and long line lengths, update the default to 2 spaces.
		
			
				
	
	
		
			26 lines
		
	
	
		
			849 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			849 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| SCRIPT_DIR=$(dirname "$(realpath "$0")")
 | |
| 
 | |
| secret_key=minioadmin
 | |
| access_key=minioadmin
 | |
| region=us-east-2
 | |
| endpoint_url=http://localhost:9000
 | |
| bucket_name=utic-dev-tech-fixtures
 | |
| 
 | |
| function upload() {
 | |
|   echo "Uploading test content to new bucket in minio"
 | |
|   AWS_REGION=$region AWS_SECRET_ACCESS_KEY=$secret_key AWS_ACCESS_KEY_ID=$access_key \
 | |
|     aws --output json --endpoint-url $endpoint_url s3api create-bucket --bucket $bucket_name | jq
 | |
|   AWS_REGION=$region AWS_SECRET_ACCESS_KEY=$secret_key AWS_ACCESS_KEY_ID=$access_key \
 | |
|     aws --endpoint-url $endpoint_url s3 cp "$SCRIPT_DIR"/wiki_movie_plots_small.csv s3://$bucket_name/
 | |
| }
 | |
| 
 | |
| # Create Minio single server
 | |
| docker compose version
 | |
| docker compose -f "$SCRIPT_DIR"/docker-compose.yaml up --wait
 | |
| docker compose -f "$SCRIPT_DIR"/docker-compose.yaml ps
 | |
| 
 | |
| echo "Cluster is live."
 | |
| upload
 |