Public Repository

Last pushed: 2 years ago
Short Description
IAM.2FA Dockable - Microservice Concept
Full Description

This Docker image is one of the smallest rails operating environment around and showcases the IAM Microservice concept. It's based on TinyCore Linux distribution and only has the necessary libraries installed for a ruby on rails environment. In addition this image has the sample rails application which implements the Authy Two Factor API. This image contains:

TinyCore 3.16.1-tinycore64
Rails 4.1.6
Ruby 2.1.2p95
Authy-Devise Plugin for the easiest 2FA implementation ever!

You may install any rails application you would like under /opt in addition to the Authy sample already packaged in the container. This TinyCore server is running in persistence mode and has the appropriate boot codes to persist both the home and opt directories.

You can find the two factor authentication sample in /opt/authy-dockable. You must request a valid Authy API key (https://www.authy.com/developers) to test. Once you receive your key, insert it into the initializer at /opt/authy-dockable/config/initializers/authy.rb.

To Run Container

  1. Pull image : [docker pull apietro/tinyrails-dockable:authyV1]
  2. Start container: [docker run -p 3000:3000 -i -t ea2 /bin/bash]
  3. Change directory to /opt/authy-dockable
  4. run [rails s]
  5. Make a request to the server: [http://your ip address:3000

You can login using the sample user "user@example.com" and "password". You can then enable the user for two factor authentication. If you have any questions or would like for us to schedule a demo, you can reach us at info@gooddoglabs.com or aldo@gooddoglabs.com.

That is it! You now have an IAM 2FA micro service.


Ensure WEBrick is running. You should see output similar to the following:

=> Booting WEBrick
=> Rails 4.1.6 application starting in development on http://0.0.0.0:3000
=> Run rails server -h for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2014-10-22 02:34:44] INFO WEBrick 1.3.1
[2014-10-22 02:34:44] INFO ruby 2.1.2 (2014-05-08) [i686-linux]

[2014-10-22 02:34:44] INFO WEBrick::HTTPServer#start: pid=13 port=3000

This image was created for showcasing small lightweight containers for enabling an IAM Microservices (IAM.Dockables) model. More to come from Good Dog Labs, Inc. We will be creating IAM.Dockables and sharing them with the community in a future date.

[Docker image managed by Good Dog Labs, Inc. and powered by Authy API]

http://www.gooddoglabs.com
Visit Authy here http://www.authy.com

Docker Pull Command
Owner
apietro

Comments (0)