GithubHelp home page GithubHelp logo

isabella232 / ubuntu-16 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from astrolox/ubuntu-16

0.0 0.0 0.0 55 KB

Home Page: https://hub.docker.com/r/1and1internet/ubuntu-16/

Python 73.25% Shell 17.73% Makefile 3.67% Dockerfile 5.35%

ubuntu-16's Introduction

Ubuntu 16.04 LTS (Xenial Xerus) Docker Image

This image provides a standard ubuntu docker base image for other docker images to build on top of.

This is created specifically to be run under OpenShift Origin and Kubernetes. However it is expected to function in any standard Docker environment.

Ensure you specify a user id (UID) other than zero. Running as root is not tested / support a supported configuration.

Extending this image

You can easily extend the behavour of this image in the following ways

  • /hooks/entrypoint-pre.d/ Executables placed in this directory are executed very early on, before anything else is done.

  • /hooks/entrypoint-run If it exists, this is executed if the default command is not overridden. After it's execution completes the default command is executed.

  • /hooks/entrypoint-exec If it exists, this is executed if default command is overridden. After it's execution completes the default command is executed.

  • /hooks/supervisord-pre.d/ Executables placed in this directory are executed just before supervisord is executed.

  • /hooks/supervisord-ready If it exists, this is executed once supervisord is read. This is triggered from supervisord itself, when it fires the SUPERVISOR_STATE_CHANGE_RUNNING event.

Usage

  1. Make a Dockerfile and specify 1and1internet/ubuntu-16 on the FROM line.
  2. Anything you want run in the container should be started by supervisord.
  3. Use a directory called files if you need to copy files in to your new image (see Dockerfile for this image as an example).

Building and testing

A simple Makefile is included for your convience. It assumes a linux environment with a docker socket avialable at /var/run/docker.sock

To build and test just run make. You can also just make pull, make build and make test separately.

Please see the top of the Makefile for various variables which you may choose to customise. Variables may be passed as arguments, e.g. make IMAGE_NAME=bob or make build BUILD_ARGS="--rm --no-cache"

Modifying the tests

The tests depend on shared testing code found in its own git repository called drone-tests.

To use a different tests repository set the TESTS_REPO variable to the git URL for the alternative repository. e.g. make TESTS_REPO=https://github.com/1and1internet/drone-tests.git

To use a locally modified copy of the tests repository set the TESTS_LOCAL variable to the absolute path of where it is located. This variable will override the TESTS_REPO variable. e.g. make TESTS_LOCAL=/tmp/github/1and1internet/drone-tests/

ubuntu-16's People

Contributors

astrolox avatar brianwilkinson avatar chris114782 avatar fhmarkh avatar hrobertson avatar jameseck avatar jameseckersall avatar jameswilkins avatar leroyshirto avatar nickcampion 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.