Git Product home page Git Product logo

docker-simplesamlphp's Introduction

docker-simplesamlphp

simpleSAMLphp installed on a vagrant virtual machine and hosted in Docker.

##Introduction

This is plug and play. Run the installation and SimpleSAMLphp will be waiting

Prerequisites

This setup uses VirtualBox and VagrantUp to instanciate the virtual machines

Installation

The following commands will download the Ubuntu Images and provision the virtual machine. All software will be installed and once completed SimpleSAMLphp will be ready to use.

git clone https://github.com/jnyryan/docker-simplesamlphp.git
cd docker-simplesamlphp
vagrant up
vagrant ssh

Usage

From the host machine the following ports are forwarded to the Vagrant VM.

  • 58080
  • 58443

To get to either the HTTP or HTTPS setup hit the following endpoints:

To access simpleSAMLphp from the browser:

username: admin
password: password

Edit and create your own SimpleSAMLphp in a Docker Container

Docker is a lightweight container that I use to host simpleSAMLphp running under apache as an experiment. All the work down below is already done in the Vagrant setup, the details are included if you would like to further develop it.

Prerequisites

sudo apt-get install -y docker.io
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io

Install from DockerHub

Rather than build it yourself, the full container is available on DockerHub

sudo docker pull jnyryan/simplesamlphp
sudo docker run -d -p 58080:80 -p 58443:443 jnyryan/simplesamlphp

To access simpleSAMLphp from the host server:

http://localhost:50081/simplesaml/

username: admin
password: password

To use your own configs stored on the host in /var/simplesamlphp

sudo docker run -d -p 58080:80 -p 58443:443 \
-v /var/simplesamlphp/config/:/var/simplesamlphp/config/ -v /var/simplesamlphp/metadata/:/var/simplesamlphp/metadata/ -v /var/simplesamlphp/cert/:/var/simplesamlphp/cert/ \
jnyryan/simplesamlphp
```ห›

## Build the Package and Publish it to Dockerhub

Build the package locally and push it to dockerhub

``` bash
sudo docker login
sudo docker pull jnyryan/simplesamlphp
sudo docker build -t jnyryan/simplesamlphp /vagrant/.
sudo docker push jnyryan/simplesamlphp

Cleanup

This will clean up any old images built

sudo bash
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)
exit

References

simpleSAMLphp Installation and Configuration

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Using SimpleSAMLphp to Authenticate against ADFS 2.0 IdP

Configuring HTTPS on Apache with GnuTLS

docker-simplesamlphp's People

Contributors

jnyryan avatar

Watchers

James Cloos avatar Daniel Keler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.