This project spins up a docker Ubuntu container in your machine to conduct interviews/machine tests for candidates.
The candidates can login to the server using the SSH credentials while you will be able to see their live screen in your terminal.
Project uses docker to run a container for machine tests and ngrok to create a public domain name to access it.
Follow the below commands.
# Clone the repo
git clone [email protected]:ashithwilson/machine-test-infra.git
cd machine-test-infra
# Make sure that you have a working docker daemon
# Build the docker image for running tests
make build
# Make sure you have set up ngrok terminal -> https://ngrok.com/
# below command runs a docker container and sets up port forwarding using ngrok
make run
Now, you will have a port mapping in your terminal. Provide the ngrok domain name as SSH host and TCP port as SSH Port. For example consider the below portmapping.
Forwarding tcp://0.tcp.in.ngrok.io:18744 -> localhost:2222
The SSH details are as follows.
Host: 0.tcp.in.ngrok.io
Port: 18744
To obtain SSH username and password, issue below command.
make generate-ssh-creds
Ask the interviewee to login with these SSH details.
Once the interviewee logs in using SSH, you can see live screen of interviewee using below command.
make view-session