Enabled key pair
This commit is contained in:
parent
afcbd4a7e7
commit
f2c6ab79bb
|
@ -16,6 +16,8 @@ WORKDIR /root
|
||||||
# Process manager
|
# Process manager
|
||||||
# socat
|
# socat
|
||||||
# Port forwarder
|
# Port forwarder
|
||||||
|
# keychain
|
||||||
|
# ssh-key creator
|
||||||
#------------------
|
#------------------
|
||||||
# Genymotion spec
|
# Genymotion spec
|
||||||
#------------------
|
#------------------
|
||||||
|
@ -46,6 +48,7 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
|
||||||
xterm \
|
xterm \
|
||||||
supervisor \
|
supervisor \
|
||||||
socat \
|
socat \
|
||||||
|
keychain \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
x11vnc \
|
x11vnc \
|
||||||
openbox \
|
openbox \
|
||||||
|
@ -91,8 +94,8 @@ ENV DISPLAY=:0 \
|
||||||
#====================
|
#====================
|
||||||
# Install genymotion
|
# Install genymotion
|
||||||
#====================
|
#====================
|
||||||
|
RUN echo | ssh-keygen
|
||||||
ARG GENYMOTION_VERSION=2.12.1
|
ARG GENYMOTION_VERSION=2.12.1
|
||||||
|
|
||||||
ENV GENYMOTION=true \
|
ENV GENYMOTION=true \
|
||||||
GENYMOTION_VERSION=$GENYMOTION_VERSION \
|
GENYMOTION_VERSION=$GENYMOTION_VERSION \
|
||||||
PATH="${PATH}:/opt/genymobile/genymotion/" \
|
PATH="${PATH}:/opt/genymobile/genymotion/" \
|
||||||
|
|
|
@ -102,11 +102,17 @@ data "aws_ami" "geny_aws_$index" {
|
||||||
owners = ["679593333241"] #Genymotion
|
owners = ["679593333241"] #Genymotion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "aws_key_pair" "geny_key_$index" {
|
||||||
|
provider = "aws.provider_$index"
|
||||||
|
public_key = "${file("~/.ssh/id_rsa.pub")}"
|
||||||
|
}
|
||||||
|
|
||||||
resource "aws_instance" "geny_aws_$index" {
|
resource "aws_instance" "geny_aws_$index" {
|
||||||
provider = "aws.provider_$index"
|
provider = "aws.provider_$index"
|
||||||
ami = "\${data.aws_ami.geny_aws_$index.id}"
|
ami = "\${data.aws_ami.geny_aws_$index.id}"
|
||||||
instance_type = "\${var.instance_type_$index}"
|
instance_type = "\${var.instance_type_$index}"
|
||||||
vpc_security_group_ids = ["\${aws_security_group.geny_sg_$index.name}"]
|
vpc_security_group_ids = ["\${aws_security_group.geny_sg_$index.name}"]
|
||||||
|
key_name = "\${aws_key_pair.geny_key_$index.key_name}"
|
||||||
tags {
|
tags {
|
||||||
Name = "EK-\${data.aws_ami.geny_aws_$index.id}"
|
Name = "EK-\${data.aws_ami.geny_aws_$index.id}"
|
||||||
}
|
}
|
||||||
|
@ -138,6 +144,8 @@ _EOF
|
||||||
|
|
||||||
# Connect with adb
|
# Connect with adb
|
||||||
# TODO
|
# TODO
|
||||||
|
# ssh -i ~/.ssh/id_rsa -oStrictHostKeyChecking=no $(./terraform output public_dns_$index.id) 'setprop persist.sys.usb.config adb && exit'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_appium() {
|
function run_appium() {
|
||||||
|
|
Loading…
Reference in a new issue