Centos repos now build

Started readme
This commit is contained in:
Andy Neff 2015-07-17 21:39:18 -04:00
parent 82fc36cf70
commit bf6516bf2c
9 changed files with 58 additions and 22 deletions

@ -1,12 +1,20 @@
#!/usr/bin/env bash
mkdir -p /tmp/docker_run
cp -r /src /tmp/docker_run/git-lfs
set -eu
cd /tmp/docker_run/git-lfs
REPO_DIR=${REPO_DIR:-/repo}
GIT_LFS_BUILD_DIR=${GIT_LFS_BUILD_DIR:-/tmp/docker_run/git-lfs}
SRC_DIR=${SRC_DIR:-/src}
mkdir -p $(dirname "${GIT_LFS_BUILD_DIR}")
cp -r -T "${SRC_DIR}" "${GIT_LFS_BUILD_DIR}"
cd "${GIT_LFS_BUILD_DIR}"
git clean -xdf .
/tmp/docker_run/git-lfs/rpm/build_rpms.bsh
"${GIT_LFS_BUILD_DIR}"/rpm/build_rpms.bsh
mkdir -p /tmp/docker_run/repo
mv /tmp/docker_run/git-lfs/rpm/{SRPMS,RPMS} /tmp/docker_run/repo/
createrepo /tmp/docker_run/repo
mkdir -p "${REPO_DIR}/conf/"
rsync -ra ${GIT_LFS_BUILD_DIR}/rpm/{SRPMS,RPMS} ${REPO_DIR}
createrepo ${REPO_DIR}

@ -16,7 +16,7 @@ dpkg-buildpackage -us -uc
mkdir -p "${REPO_DIR}/conf/"
cp /tmp/distributions "${REPO_DIR}/conf/"
set -xv
#This will add the deb, xz, AND dsc! Perfect
for DSC in $(ls /tmp/docker_run/*.changes); do
SOURCE_NAME=$(grep ^Source: "${DSC}" | sed -r 's/Source: (.*)/\1/')

@ -3,9 +3,9 @@ MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-repo-dir:/src"
LABEL POST="docker cp containerid:/tmp/docker_run/repo*"
LABEL POST="docker cp containerid:/repo*"
RUN yum install -y createrepo
RUN yum install -y createrepo rsync
#Add the simple build repo script
ADD centos_script.bsh /tmp/docker_run/

@ -3,9 +3,9 @@ MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-repo-dir:/src"
LABEL POST="docker cp containerid:/tmp/docker_run/repo*"
LABEL POST="docker cp containerid:/repo*"
RUN yum install -y createrepo
RUN yum install -y createrepo rsync
#Add the simple build repo script
ADD centos_script.bsh /tmp/docker_run/

@ -3,9 +3,9 @@ MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-repo-dir:/src"
LABEL POST="docker cp containerid:/tmp/docker_run/repo*"
LABEL POST="docker cp containerid:/repo*"
RUN yum install -y createrepo
RUN yum install -y createrepo rsync
#Add the simple build repo script
ADD centos_script.bsh /tmp/docker_run/

@ -3,14 +3,14 @@ MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-repo-dir:/src"
LABEL POST="docker cp containerid:/tmp/docker_run/repo*"
LABEL POST="docker cp containerid:/repo*"
RUN yum install -y epel-release
RUN yum install -y createrepo git
RUN yum install -y createrepo rsync git
#The purpose of this is to build and install everything needed to build git-lfs
#Next time. So that the LONG build/installed in centos are only done once, and
#Store in the image
#stored in the image.
ENV DOCKER_LFS_BUILD_VERSION=master
#ENV DOCKER_LFS_BUILD_VERSION=v0.5.3

@ -3,14 +3,14 @@ MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-repo-dir:/src"
LABEL POST="docker cp containerid:/tmp/docker_run/repo*"
LABEL POST="docker cp containerid:/repo*"
RUN yum install -y epel-release
RUN yum install -y createrepo golang tar
RUN yum install -y createrepo rsync golang tar
#The purpose of this is to build and install everything needed to build git-lfs
#Next time. So that the LONG build/installed in centos are only done once, and
#Store in the image
#stored in the image.
ENV DOCKER_LFS_BUILD_VERSION=master
#ENV DOCKER_LFS_BUILD_VERSION=v0.5.3

@ -3,9 +3,10 @@ MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
#Docker RUN example, pass in the git-lfs checkout copy you are working with
LABEL RUN="docker run -v git-lfs-repo-dir:/src"
LABEL POST="docker cp containerid:/tmp/docker_run/repo*"
LABEL POST="docker cp containerid:/repo*"
RUN yum install -y createrepo git ruby ruby-devel golang
RUN yum install -y createrepo rsync git ruby ruby-devel golang
#The purpose of this is to build and install everything needed to build git-lfs
#Next time. So that the LONG build/installed in centos are only done once, and

@ -0,0 +1,27 @@
# README #
Document
DOCKER_CMD
## TL;DR version ##
1. Build the docker images
./docker/build_dockers.bsh
2. Run the dockers
./docker/run_dockers.bsh
3. Enjoy all your new package files in
./docker/repos/
##Using the Dockers##
##Development##
##Deploying/Building Repositories##
## Docker Cheat sheet ##
http://docs.docker.com/ Install -> Docker Engine -> Installation on ...