Giter Club home page Giter Club logo

centos-mock-dev's Introduction

Centos dev with mock

Purpose

Scratch repo for playing around with centos, mock and nexus

To run

To Run mock

bring up nexus:

docker-compose up -d  
docker-compose logs -f nexus

start docker container:

docker run --cap-add=SYS_ADMIN ...  # note this is handled by docker-compose

docker-compose build  centos-dev
docker-compose run --rm centos-dev

build in mock:

mock --configdir /mock/config --resultdir /mock/out --rebuild curl-7.29.0-54.el7.src.rpm
mock --configdir /mock/config --resultdir /mock/out --rebuild less-458-9.el7.src.rpm

if [[ ! -z "$JENKINS_URL" ]]; then
mock --configdir /mock/config --orphanskill
mock --configdir /mock/config --scrub=all
fi

Interesting directories

/etc/mock /var/lib/mock/ /var/cache/mock/

References

Mock: https://github.com/rpm-software-management/mock/wiki https://github.com/rpm-software-management/mock/wiki/FAQ https://linux.die.net/man/1/mock https://github.com/rpm-software-management/mock/wiki#mock-inside-docker https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds http://miroslav.suchy.cz/blog/archives/2015/05/28/increase_mock_performance_-_build_packages_in_memory/index.html

Mirrors: https://wiki.centos.org/AdditionalResources/Repositories http://mirror.centos.org/centos/ http://mirror.centos.org/altarch/ http://vault.centos.org/ # source rpms https://dl.fedoraproject.org/pub/epel/ https://wiki.centos.org/AdditionalResources/Repositories/GoogleYumRepos https://packages.microsoft.com/yumrepos/vscode/

Nexus: https://hub.docker.com/r/sonatype/nexus3/ https://help.sonatype.com/repomanager3/configuration/repository-management https://help.sonatype.com/repomanager3/formats/yum-repositories https://blog.sonatype.com/staging-in-nexus-repository-3.11

centos-mock-dev's People

Contributors

sonneveld avatar

Watchers

 avatar  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.