rhsyseng / artifactory-on-openshift Goto Github PK
View Code? Open in Web Editor NEWThis is JFrog Artifactory on OpenShift 3, a containerized version of Artifactory with an OpenShift template.
This is JFrog Artifactory on OpenShift 3, a containerized version of Artifactory with an OpenShift template.
Find here multiple issue :
inside the reverse-proxy.yaml the variable SOURCE_REPOSITORY_URL are referring GITLAB and not GITHUB.
the image stream used here doesn't exist
https://github.com/RHsyseng/artifactory-on-openshift/blob/master/reverse-proxy.yaml#L146
I created it manually
oc create is s2i-nginx-acme
Now I'm facing issue when the image artifactory-rev-proxy is running :
sh-4.2$ id
uid=1001(default) gid=0(root) groups=0(root)
sh: /opt/app-root/etc/scl_enable: No such file or directory
But certainly due to the build of the image artifactory-rev-proxy from
https://github.com/goern/artifactory-on-openshift/tree/master/container-image/reverse-proxy-nginx
Inside https://github.com/goern/s2i-nginx/blob/master/Dockerfile the scl_enable part is missing
Last point to update : we are mounting a secret (TLS) on this mount point /opt/app-root/etc
https://github.com/RHsyseng/artifactory-on-openshift/blob/master/reverse-proxy.yaml#L102
But all the config files of NGINX are inside /opt/app-root/etc/nginx.conf ???
By removing the mount point with secrets I was able to start the pod.
Currently the official document doesn't have any disclaimer about if it is supported or not https://access.redhat.com/documentation/en-us/reference_architectures/2017/html-single/jfrog_artifactory_on_openshift_container_platform/ or what parts are supported by Red Hat and/or JFrog (like the disclaimer in the OCP on AWS ref. arch. https://access.redhat.com/documentation/en-us/reference_architectures/2017/html-single/deploying_openshift_container_platform_3.5_on_amazon_web_services/#components_and_configuration )
See details below:
[sbadakhc@lap01phy01 ~]$ oc get ev
LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
3m 3m 1 artifactory-postgresql-1-32b70 Pod Normal Scheduled {default-scheduler } Successfully assigned artifactory-postgresql-1-32b70 to nde01blu01
3m 3m 1 artifactory-postgresql-1-32b70 Pod spec.containers{artifactory-postgresql} Normal Pulled {kubelet nde01blu01} Container image "registry.access.redhat.com/rhscl/postgresql-95-rhel7@sha256:ca639f057676cf6961e9372fad8764b6e9b0d119beec501b1c1e30bde33c3246" already present on machine
3m 3m 1 artifactory-postgresql-1-32b70 Pod spec.containers{artifactory-postgresql} Normal Created {kubelet nde01blu01} Created container with docker id 384cdab41ad8; Security:[seccomp=unconfined]
3m 3m 1 artifactory-postgresql-1-32b70 Pod spec.containers{artifactory-postgresql} Normal Started {kubelet nde01blu01} Started container with docker id 384cdab41ad8
3m 3m 3 artifactory-postgresql-1-32b70 Pod spec.containers{artifactory-postgresql} Warning Unhealthy {kubelet nde01blu01} Readiness probe failed: sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
psql: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
2m 2m 1 artifactory-postgresql-1-32b70 Pod spec.containers{artifactory-postgresql} Warning Unhealthy {kubelet nde01blu01} Liveness probe failed: dial tcp 10.130.2.182:5432: i/o timeout
3m 3m 1 artifactory-postgresql-1-deploy Pod Normal Scheduled {default-scheduler } Successfully assigned artifactory-postgresql-1-deploy to nde02blu01
3m 3m 1 artifactory-postgresql-1-deploy Pod spec.containers{deployment} Normal Pulled {kubelet nde02blu01} Container image "openshift3/ose-deployer:v3.5.5.26" already present on machine
3m 3m 1 artifactory-postgresql-1-deploy Pod spec.containers{deployment} Normal Created {kubelet nde02blu01} Created container with docker id aed4e8ed7a46; Security:[seccomp=unconfined]
3m 3m 1 artifactory-postgresql-1-deploy Pod spec.containers{deployment} Normal Started {kubelet nde02blu01} Started container with docker id aed4e8ed7a46
3m 3m 1 artifactory-postgresql-1 ReplicationController Normal SuccessfulCreate {replication-controller } Created pod: artifactory-postgresql-1-32b70
3m 3m 1 artifactory-postgresql DeploymentConfig Normal DeploymentCreated {deploymentconfig-controller } Created new replication controller "artifactory-postgresql-1" for version 1
0s 3m 138 artifactory-rev-proxy BuildConfig Warning BuildConfigInstantiateFailed {build-config-controller } error instantiating Build from BuildConfig artifactory-test/artifactory-rev-proxy: Error resolving ImageStreamTag s2i-nginx-acme:latest in namespace artifactory-test: unable to find latest tagged image
3m 3m 1 artifactory StatefulSet Normal SuccessfulCreate {statefulset } pvc: artifactory-data-artifactory-0
3m 3m 1 artifactory StatefulSet Normal SuccessfulCreate {statefulset } pvc: artifactory-logs-artifactory-0
3m 3m 1 artifactory StatefulSet Normal SuccessfulCreate {statefulset } pvc: artifactory-backup-artifactory-0
3m 3m 1 artifactory StatefulSet Normal SuccessfulCreate {statefulset } pvc: artifactory-var-artifactory-0
2s 3m 22 artifactory StatefulSet Warning FailedCreate {statefulset } pet: artifactory-0, error: pods "artifactory-0" is forbidden: service account artifactory-test/artifactory was not found, retry after the service account is created
3m 3m 1 s2i-nginx-acme-1-build Pod Normal Scheduled {default-scheduler } Successfully assigned s2i-nginx-acme-1-build to nde02blu01
3m 3m 1 s2i-nginx-acme-1-build Pod spec.containers{docker-build} Normal Pulling {kubelet nde02blu01} pulling image "openshift3/ose-docker-builder:v3.5.5.26"
3m 3m 1 s2i-nginx-acme-1-build Pod spec.containers{docker-build} Normal Pulled {kubelet nde02blu01} Successfully pulled image "openshift3/ose-docker-builder:v3.5.5.26"
3m 3m 1 s2i-nginx-acme-1-build Pod spec.containers{docker-build} Normal Created {kubelet nde02blu01} Created container with docker id d6a48ff812b0; Security:[seccomp=unconfined]
3m 3m 1 s2i-nginx-acme-1-build Pod spec.containers{docker-build} Normal Started {kubelet nde02blu01} Started container with docker id d6a48ff812b0
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.