Git Product home page Git Product logo

docker-web-builder's Introduction

docker-web-builder

We at Bitmovin use this Docker image to run our builds with the codeship.com Docker setup.

build tools installed

  • basic tools like curl, wget and git
  • PHP5 and composer to build our PHP projects
  • envtpl - command line tool to render jinja2 templates
  • nodejs - JavaScript server runtime
  • npm - npm is the package manager for Node.js
  • grunt - JavaScript task runner
  • bower - a package manager for the web
  • openjdk8 and maven to build Java projects
  • ruby and sass gem

build tools versions

  • php - 5.5.33
  • composer - 1.3.2
  • envtpl - 0.5.0
  • nodejs - v4.7.3
  • npm - 3.10.10
  • grunt - v1.2.0
  • bower - 1.7.9
  • java - 1.8.0_111
  • maven - 3.0.5
  • ruby - 2.0.0p384
  • sass - 3.4.23
  • sonar-scanner - 2.6.1
  • gulp - 3.9.1
  • ant - 1.9.3

docker in docker

The image is also based on dind so you can build docker images and add them to the local codeship docker repository.

Now you can push your built image to a remote repository (step added in codeship-steps.yml for Docker-Hub):

- name:    push_step
  service: build
  type:    push
  image_name: myuser/myapp
  registry: https://index.docker.io/v1/
  encrypted_dockercfg_path: dockercfg.enc

usage to build PHP project on codeship

Example codeship-services.yml:

build:
  image: bitmovin/web-builder
  volumes:
  - ./:/my-php-app
  - /tmp/composer-cache:/root/.composer/cache

Example codeship-steps.yml:

- name:    build_step
  service: build
  command: composer install --no-interaction --no-dev -d /my-php-app

- name:    config_step
  service: build
  command: envtpl < /my-php-app/conf/app.conf.j2 > /my-php-app/conf/app.conf

caching build tool repositories

  • reuse composer cache
volumes:
  - /tmp/composer-cache:/root/.composer/cache
  • reuse maven and activator cache
volumes:
  - /tmp/ivy2-cache:/root/.ivy2/cache

docker-web-builder's People

Contributors

dweinber avatar msmole avatar since avatar unki2aut avatar

Watchers

 avatar  avatar

Forkers

streamlifetv

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.