digrouz / docker-nexus Goto Github PK
View Code? Open in Web Editor NEWInstalls Sonatype Nexus into a Linux container
License: GNU General Public License v3.0
Installs Sonatype Nexus into a Linux container
License: GNU General Public License v3.0
Hi,
Im trying to build your nexus build but it fails when i try and build.
Please see issue below.
failure: repodata/repomd.xml from custom: [Errno 256] No more mirrors to try. https://www.digrouz.com/repo/centos/7/x86_64/custom/repodata/repomd.xml: [Errno 14] curl#60 - "Issuer certificate is invalid." �[0mThe command '/bin/sh -c set -x && chmod 1777 /tmp && . /usr/local/bin/docker-entrypoint-functions.sh && MYUSER="${APPUSER}" && MYUID="${APPUID}" && MYGID="${APPGID}" && ConfigureUser && usermod -m -d ${SONATYPE_DIR} ${MYUSER} && yum-config-manager --add-repo /tmp/custom.repo && yum update -y && yum install -y curl tar createrepo java-1.8.0-openjdk-headless.x86_64 su-exec && curl --fail --silent --location --retry 3 http://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz -o /tmp/nexus-${NEXUS_VERSION}-unix.tar.gz && mkdir -p ${SONATYPE_DIR} ${NEXUS_WORK} ${NEXUS_DATA} && tar xzf /tmp/nexus-${NEXUS_VERSION}-unix.tar.gz -C /tmp && mv /tmp/nexus-${NEXUS_VERSION} ${NEXUS_HOME} && ln -snf ${NEXUS_WORK} ${SONATYPE_WORK} && sed -e '/^-Xms/d' -e '/^-Xmx/d' -e '/^-XX:MaxDirectMemorySize/d' ${NEXUS_HOME}/bin/nexus.vmoptions && chown -R ${MYUSER}:${MYUSER} ${SONATYPE_DIR} ${NEXUS_HOME} ${SONATYPE_WORK} ${NEXUS_WORK} ${NEXUS_DATA} && yum clean all && mkdir /docker-entrypoint.d && chmod +x /usr/local/bin/docker-entrypoint.sh && ln -snf /usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh && rm -rf /tmp/* /var/cache/yum/* /var/tmp/*' returned a non-zero code: 1 Build step 'Docker Build and Publish' marked build as failure
Hi @digrouz,
Im just trying to do a build of this image and im not able to as it look like it tried to download a custom XML. and i get a 404 on download.
Is it possible to have this local?
i have also tried to remove this download but when i do im not able to get the exec su-exec to work in file docker-entrypoint.sh as it looks like it needs the download for it to work.
hoping you can help :)
https://repo.digrouz.com/repo/centos/7/x86_64/custom/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
One of the configured repositories failed (custom),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=custom ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable custom
or
subscription-manager repos --disable=custom
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=custom.skip_if_unavailable=true
failure: repodata/repomd.xml from custom: [Errno 256] No more mirrors to try.
https://repo.digrouz.com/repo/centos/7/x86_64/custom/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.