By the way all of our OpenShift certification training (DO180, DO288, etc) uses a containerized nexus to provide build deps for Java and Node.js. They how to configure your builds using the 'oc new-app' command to point to the nexus server. This nexus server requires a PV.
On Thu, Sep 26, 2019 at 4:11 PM Justin Pittman <[email protected]> wrote: > >example access a maven repo cache as this is needed for java build > > There are tons of examples of using Nexus repo as part of a build in > OpenShift. Siamak has several thorough ones, like: > https://github.com/siamaksade/openshift-cd-demo > > Nexus in a container acting as a repo in a pipeline is no different than > Nexus in a VM from the perspective of maven builds -- the s2i builder image > pulls down the dependencies without needing a mountpoint, like Fernando > said -- so perhaps your customer is a bit confused or needs to clarify why > multiple Pods need to mount a repo directly to do a build. > > Jp > > Justin Pittman > Sr. Solution Architect > Red Hat - North America - ISVs > 1.920.365.2103 | [email protected] | @jp_lilpenguin > "Free speech, not free beer" ~ Richard Stallman > > > On Mon, Sep 16, 2019 at 12:10 PM Fernando Lozano <[email protected]> > wrote: > >> Hi Charles, >> >> You would need any storage back-end that supports ReadWriteMany acces >> mode, which usually means file-based storage. AFAIK most cloud-based >> storage, such as EC2 volumes, would not fit the bill. >> >> Unfortunately, AFAIK you specify a PV for S2I build pods, so you cannot >> reuse the maven cache. You'd need to setup something like a Nexus repo and >> use build env to point to that, and this is not as fast as a real maven >> cache would be. :-( >> >> >> []s, Fernando Lozano >> >> On Mon, Sep 16, 2019 at 1:53 PM Charles Moulliard <[email protected]> >> wrote: >> >>> Hi, >>> >>> Is a NFS share the only way to share the same PV volume (=> to be >>> mounted within different pods) from the filesystem in order to by example >>> access a maven repo cache as this is needed for java build [1] ? >>> >>> [1] >>> https://docs.okd.io/latest/install_config/storage_examples/shared_storage.html >>> >>> Regards >>> >>> Charles >>> Have a question? >>> First, check the FAQ: >>> https://pnt.redhat.com/pnt/p-734673/openshift-con...-Jun-2017.pdf >>> Then, check the rest of PnT: >>> https://engineering.redhat.com/pnt/b-73685/OpenShift >>> Did you read the docs? >>> https://docs.openshift.com/container-platform/latest/welcome/index.html >>> Finally, check the archives: >>> http://post-office.corp.redhat.com/archives/openshift-sme/ >> >> Have a question? >> First, check the FAQ: >> https://pnt.redhat.com/pnt/p-734673/openshift-con...-Jun-2017.pdf >> Then, check the rest of PnT: >> https://engineering.redhat.com/pnt/b-73685/OpenShift >> Did you read the docs? >> https://docs.openshift.com/container-platform/latest/welcome/index.html >> Finally, check the archives: >> http://post-office.corp.redhat.com/archives/openshift-sme/ > >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
