Coder Social home page Coder Social logo

narcoticfresh / docker-jenkins-slave-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from million12/docker-php-app-ssh

0.0 2.0 0.0 108 KB

million12/php-app, extended with running SSHD and easy ssh keys management (via GitHub API)

Home Page: m12.io

Shell 100.00%

docker-jenkins-slave-php's Introduction

Docker container with SSH, PHP and Selenium meant for usage as Jenkins slave

This is a Docker container sinso/jenkins-slave-php based on million12/behat-selenium and million12/php-app-ssh. It maily combines the functionality of the last preceding containers and adds the possibility to configure public ssh keys (without using github)

Because it shares the same container as other running PHP apps (if based on million12/php-app), it can be used for continuous integration purposes, to easily build and run tests for TYPO3 Neos/Flow applications.

Keys management

SSH keys are added from GitHub via GitHub API or can be set as an environment variable. The only thing you need to do is to provide your username (or usernames, coma-separated) via env variable IMPORT_GITHUB_PUB_KEYS. Of course you need to have your pubkey added on your GitHub account. To directly provide a public key just use the env variable SSH_PUB_KEY.

Usage

docker run -d -p 1122:22 --env="IMPORT_GITHUB_PUB_KEYS=user1,user2" sinso/jenkins-slave-php

or

docker run -d -p 1122:22 --env="SSH_PUB_KEY=ssh-rsa AAAAB3NzaC....0uSCQ==" sinso/jenkins-slave-php

After container is launched, you can login:
ssh -p 1122 www@docker-host

Fig example:
dev:
  image: million12/php-app-ssh
  ports:
    - '1122:22'
  volumes_from:
    - webdata-container
  environment:
    IMPORT_GITHUB_PUB_KEYS: user1,user2,user3
    SSH_PUB_KEY: 'ssh-rsa AAAAB3NzaC....0uSCQ=='

Credits

Thanks to the great work from Marcin ryzy Ryzycki [email protected]

docker-jenkins-slave-php's People

Contributors

dimaip avatar jrenggli avatar ryzy avatar

Watchers

 avatar  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.