kafka_neu-76e4d1b5-8b7b-4eb8-ad4b-86e90f693c1d.zip-extract/kafka-4.2.0-src/vagrant/aws/aws-init.sh

Path
kafka_neu-76e4d1b5-8b7b-4eb8-ad4b-86e90f693c1d.zip-extract/kafka-4.2.0-src/vagrant/aws/aws-init.sh
Status
scanned
Type
file
Name
aws-init.sh
Extension
.sh
Programming language
Bash
Mime type
text/x-shellscript
File type
Bourne-Again shell script, ASCII text executable
Tag

      
    
Rootfs path

      
    
Size
2893 (2.8 KB)
MD5
fa85bccba45be411c6d66d934e316b23
SHA1
b64cf702e2498fee6632ddd5821747279e69a1a9
SHA256
22a3a813e5e60b814c35dd2f2572b728b78ad547770248650110b10b5c163b76
SHA512

      
    
SHA1_git
f36d4e324d62fb1cda7f3023fb1f2030f818640a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
aws-init.sh | 2.8 KB |

#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # This script can be used to set up a driver machine on aws from which you will run tests # or bring up your mini Kafka cluster. # Install dependencies sudo apt-get install -y \ maven \ openjdk-8-jdk-headless \ build-essential \ ruby-dev \ zlib1g-dev \ realpath \ python-setuptools \ iperf \ traceroute base_dir=`dirname $0`/../.. if [ -z `which vagrant` ]; then echo "Installing vagrant..." wget https://releases.hashicorp.com/vagrant/2.1.5/vagrant_2.1.5_x86_64.deb sudo dpkg -i vagrant_2.1.5_x86_64.deb rm -f vagrant_2.1.5_x86_64.deb fi # Install necessary vagrant plugins # Note: Do NOT install vagrant-cachier since it doesn't work on AWS and only # adds log noise # Custom vagrant-aws with spot instance support. See https://github.com/mitchellh/vagrant-aws/issues/32 wget -nv https://s3-us-west-2.amazonaws.com/confluent-packaging-tools/vagrant-aws-0.7.2.spot.gem -P /tmp vagrant_plugins="/tmp/vagrant-aws-0.7.2.spot.gem vagrant-hostmanager" existing=`vagrant plugin list` for plugin in $vagrant_plugins; do echo $existing | grep $plugin > /dev/null if [ $? != 0 ]; then vagrant plugin install $plugin fi done # Create Vagrantfile.local as a convenience if [ ! -e "$base_dir/Vagrantfile.local" ]; then cp $base_dir/vagrant/aws/aws-example-Vagrantfile.local $base_dir/Vagrantfile.local fi gradle="gradle-2.2.1" if [ -z `which gradle` ] && [ ! -d $base_dir/$gradle ]; then if [ ! -e $gradle-bin.zip ]; then wget https://services.gradle.org/distributions/$gradle-bin.zip fi unzip $gradle-bin.zip rm -rf $gradle-bin.zip mv $gradle $base_dir/$gradle fi # Ensure aws access keys are in the environment when we use a EC2 driver machine LOCAL_HOSTNAME=$(hostname -d) if [[ ${LOCAL_HOSTNAME} =~ .*\.compute\.internal ]]; then grep "AWS ACCESS KEYS" ~/.bashrc > /dev/null if [ $? != 0 ]; then echo "# --- AWS ACCESS KEYS ---" >> ~/.bashrc echo ". `realpath $base_dir/aws/aws-access-keys-commands`" >> ~/.bashrc echo "# -----------------------" >> ~/.bashrc source ~/.bashrc fi fi
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
27.42
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9
https://releases.hashicorp.com/vagrant/2.1.5/vagrant_2.1.5_x86_64.deb 36 36
https://github.com/mitchellh/vagrant-aws/issues/32 45 45
https://s3-us-west-2.amazonaws.com/confluent-packaging-tools/vagrant-aws-0.7.2.spot.gem 46 46
https://services.gradle.org/distributions/$gradle-bin.zip 64 64