Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.33 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.33 KB

Virtual Node Platform

Contains the specific instructions and ansible scripts for the Virtual Node Platform.

Docker

There are two options to run the Ansible playbooks in a Docker container; with or without beekeeper.

Beekeeper

Building the node with Beekeeper (see the usage) provides a simple way to test for integration and functionality of Beekepers API and the SSH Tunnel.

See the README for Beekeeper

Without Beekeeper

In the mode of running without Beekeeper, a user can test that the Ansible playbooks can be built in a Docker container.

Build:

docker build -t waggle/vm-minimal .

Build with different build-args:

docker build --build-arg VSN="vsn2" --build-arg NODE_ID="0000000000000002" --build-arg BK_REGISTRATION_HOST="bk-sshd" --build-arg BK_REGISTRATION_PORT="2201" -t waggle/vm-minimal .

To run the vm-minimal container, we need to override the CMD for the container since we do not have any beekeeper SSH keys present for this mode.

docker run -d --name vm-minimal --entrypoint '/bin/sh' waggle/vm-minimal -c '/bin/sleep infinity'

Attached to running container if needed:

docker exec -it vm-minimal bash