Commit 0353c9ea by Torkel Ödegaard Committed by GitHub

Merge pull request #13988 from xlson/removes_old_ci

build: removes unused.
parents 454d74a1 d88693fd
FROM centos:6.6
RUN yum install -y yum-plugin-ovl initscripts curl tar gcc libc6-dev git gcc-c++ openssl-devel && \
yum install -y g++ make automake autoconf curl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel && \
yum install -y wget yum-utils bzip2 bzip2-devel && \
yum install -y fontconfig freetype freetype-devel fontconfig-devel libstdc++ && \
yum install -y rpm-build patch readline readline-devel libtool bison lzma && \
yum install -y which tar
# Install RUBY 1.9.3
# install necessary utilities
# RUN yum install -y which tar
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 && \
curl -sSl https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable && \
source /etc/profile.d/rvm.sh && \
/bin/bash -l -c "rvm requirements" && \
/bin/bash -l -c "rvm install 2.1.9" && \
/bin/bash -l -c "rvm use 2.1.9 --default"
# install nodejs
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - && \
yum install -y nodejs --nogpgcheck
ENV GOLANG_VERSION 1.11
RUN wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && \
yum install -y yarn --nogpgcheck && \
wget https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz
ENV PATH /usr/local/go/bin:$PATH
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
ADD ./build.sh /tmp/
WORKDIR /tmp/
CMD ["./build.sh"]
#!/bin/bash
docker info && docker version
mkdir -p ~/docker
echo "Circle branch: ${CIRCLE_BRANCH}"
echo "Circle tag: ${CIRCLE_TAG}"
# try to load docker container from cache
if [[ -e ~/docker/centos.tar ]]; then
docker load -i ~/docker/centos.tar;
else
docker build --rm=false --tag "grafana/buildcontainer" ./scripts/build/
# save docker container so we don't have to recreate it next run
docker save grafana/buildcontainer > ~/docker/centos.tar;
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment