Enabled adb remotely
This commit is contained in:
parent
efd1f07e58
commit
e45bc0010f
|
@ -104,7 +104,7 @@ RUN wget -nv -O genymotion.bin "https://dl.genymotion.com/releases/genymotion-${
|
||||||
&& chmod +x ./genymotion.bin \
|
&& chmod +x ./genymotion.bin \
|
||||||
&& yes | ./genymotion.bin \
|
&& yes | ./genymotion.bin \
|
||||||
&& rm genymotion.bin
|
&& rm genymotion.bin
|
||||||
COPY genymotion/generate_config.sh genymotion/geny_start.sh /root/
|
COPY genymotion/generate_config.sh genymotion/geny_start.sh genymotion/enable_adb.sh /root/
|
||||||
|
|
||||||
#===================
|
#===================
|
||||||
# Install Terraform
|
# Install Terraform
|
||||||
|
|
2
genymotion/enable_adb.sh
Executable file
2
genymotion/enable_adb.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/system/bin/sh
|
||||||
|
setprop persist.sys.usb.config adb
|
|
@ -117,6 +117,16 @@ resource "aws_instance" "geny_aws_$index" {
|
||||||
Name = "EK-\${data.aws_ami.geny_aws_$index.id}"
|
Name = "EK-\${data.aws_ami.geny_aws_$index.id}"
|
||||||
}
|
}
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
|
provisioner "remote-exec" {
|
||||||
|
connection {
|
||||||
|
type = "ssh"
|
||||||
|
user = "shell"
|
||||||
|
private_key = "\${file("~/.ssh/id_rsa")}"
|
||||||
|
}
|
||||||
|
|
||||||
|
script = "/root/enable_adb.sh"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
output "image_id_$index" {
|
output "image_id_$index" {
|
||||||
|
|
Loading…
Reference in a new issue