initial commit

This commit is contained in:
Kamil Trzcinski 2016-04-15 15:12:27 +02:00
commit aefaed4d90
13 changed files with 120 additions and 0 deletions

22
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,22 @@
image: docker:latest
variables:
REPOSITORY: gitlab/gitlab-build-images
services:
- docker:dind
.build_and_deploy: &build_and_deploy
stage: build
script:
- docker login -u "$DOCKER_LOGIN" -p "$DOCKER_PASSWORD"
- docker build -t "$REPOSITORY/$CI_BUILD_NAME" -f "Dockerfile.$CI_BUILD_NAME" .
- docker push "$REPOSITORY/$CI_BUILD_NAME"
omnibus-debian-jessie: *build_and_deploy
omnibus-debian-wheezy: *build_and_deploy
omnibus-raspbian-jessie: *build_and_deploy
omnibus-raspbian-wheezy: *build_and_deploy
ruby-2.1: *build_and_deploy
ruby-2.2: *build_and_deploy
ruby-2.3: *build_and_deploy

View file

@ -0,0 +1,6 @@
FROM debian:jessie
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-git
RUN /scripts/install-ruby

View file

@ -0,0 +1,6 @@
FROM debian:wheezy
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-git
RUN /scripts/install-ruby

View file

@ -0,0 +1,6 @@
FROM resin/rpi-raspbian:jessie
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-git
RUN /scripts/install-ruby

View file

@ -0,0 +1,6 @@
FROM resin/rpi-raspbian:wheezy
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-git
RUN /scripts/install-ruby

7
Dockerfile.ruby-2.1 Normal file
View file

@ -0,0 +1,7 @@
FROM ruby:2.1
ENV PACKAGES "git-core"
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-phantomjs

7
Dockerfile.ruby-2.2 Normal file
View file

@ -0,0 +1,7 @@
FROM ruby:2.3
ENV PACKAGES "git-core"
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-phantomjs

7
Dockerfile.ruby-2.3 Normal file
View file

@ -0,0 +1,7 @@
FROM ruby:2.2
ENV PACKAGES "git-core"
ADD / /
RUN /scripts/install-essentials
RUN /scripts/install-phantomjs

3
README.md Normal file
View file

@ -0,0 +1,3 @@
This repository is used to build docker images that are used to build and test various parts of GitLab:
1. Build Omnibus packages
2. Test GitLab-CE/EE repository

15
scripts/install-essentials Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -xeo pipefail
apt-get update
apt-get install curl wget build-essential \
libssl-dev libyaml-dev libreadline6-dev zlib1g-dev \
libncurses5-dev libffi-dev libgdbm3 libgdbm-dev \
ca-certificates libyaml-dev checkinstall libxml2-dev \
libxslt-dev libcurl4-openssl-dev libicu-dev \
logrotate python-docutils pkg-config cmake nodejs \
libkrb5-dev postgresql-client mysql-client unzip \
$PACKAGES
rm -rf /var/lib/apt/lists/*

15
scripts/install-git Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -xeo pipefail
cd /tmp
wget https://www.kernel.org/pub/software/scm/git/git-2.7.4.tar.gz
echo '7104c4f5d948a75b499a954524cb281fe30c6649d8abe20982936f75ec1f275b git-2.7.4.tar.gz' | shasum -a256 -c -
tar -xzf git-2.7.4.tar.gz
cd git-2.7.4/
./configure
make prefix=/usr/local all
cd /
rm -rf /tmp/*

6
scripts/install-phantomjs Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set -xeo pipefail
wget -q https://gitlab.com/axil/phantomjs-debian/raw/master/phantomjs_1.9.8-0jessie_amd64.deb
dpkg -i phantomjs_1.9.8-0jessie_amd64.deb

14
scripts/install-ruby Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
set -xeo pipefail
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz
tar -xvzf ruby-2.2.2.tar.gz
cd ruby-2.2.2
./configure --enable-shared --disable-install-doc --disable-install-rdoc --disable-install-capi
make install -j 3
cd /
rm -rf /tmp/*