Code Monkey home page Code Monkey logo

docker's Introduction

TetraWeb PHP CI Kit with Docker

Build Status

This repository contains a set of utilities for running PHP tests via Gitlab CI.

These tools provide:

  1. Gitlab runner deployment script for Ubuntu on VM or metal server. It is not recommended to install runner right on the production system.

  2. Set of Docker images for PHP 5.5 - 7.1 based on official Docker PHP images with additional modules and Node.js

The goal of these tools is to automate as much as possible of routine work related to configuring the runner so you can concentrate on writing tests for your code. Also these tools are trying to be resources savvy, since in most cases huge in-RAM caches are not needed for just running unit tests with some fixtures. So you can use very small VMs for running tests

Contents of repository

Quick start

  1. Install Gitlab
  2. Get a server (VM or metal) with minimal Ubuntu-14.04 installed. It will be used for the runner
  3. Login as root to a server and execute curl -S https://raw.githubusercontent.com/TetraWeb/docker/master/gitlab-runner-vm/bootstrap.sh | bash and answer the questions. This script will install docker, Gitlab runner, and configure runner for using these docker images.

Runner is limited to tetraweb/php:* images for main container (where your repository is cloned) and any service images */* (secondary containers spinned for services like mysql, redis, etc)

If you want to use the server for also running other images (ruby or whatever), you should add another runners to /etc/gitlab-runner/config.toml, and DO NOT overwrite allowed_images = ["tetraweb/php:*"] for this runner, since it is a potential security breach.

Requirements

  • Gitlab v9.0 and later
  • Gitlab runner v9.0 and later

Similar projects

docker's People

Contributors

abcdmitry avatar birgerk avatar fredericseiler 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.