Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ubi as base image #924

Merged
merged 3 commits into from
Feb 27, 2020
Merged

Conversation

amila-ku
Copy link
Contributor

@amila-ku amila-ku commented Feb 24, 2020

Resolves #767

  • set docker base image to registry.access.redhat.com/ubi8/ubi

Signed-off-by: amilaku <[email protected]>
@amila-ku amila-ku requested a review from pavolloffay February 24, 2020 21:53
@pavolloffay pavolloffay changed the title 767 use ubi image Use ubi as base image Feb 25, 2020
@jpkrohling
Copy link
Contributor

For the record, I was able to reproduce the problem on a fresh Fedora 31 install:

# podman run registry.access.redhat.com/ubi8/ubi cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)

# podman run registry.redhat.io/ubi8/ubi cat /etc/redhat-release
Trying to pull registry.redhat.io/ubi8/ubi...

  unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
Error: unable to pull registry.redhat.io/ubi8/ubi: unable to pull image: Error initializing source docker://registry.redhat.io/ubi8/ubi:latest: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication

Signed-off-by: amilaku <[email protected]>
@jpkrohling
Copy link
Contributor

Thank you for your contribution, @amila-ku! I'm merging this, even though the CI build for examples1 failed: this PR has worked in the past for that test, and the tests passed locally.

$ NAMESPACE=quay.io/jpkroehling make e2e-tests-examples1
Formatting code...
Building...
STEP 1: FROM registry.access.redhat.com/ubi8/ubi
Getting image source signatures
Copying blob eae5d284042d done  
Copying blob ff6f434a470a done  
Copying config fd73e6738a done  
Writing manifest to image destination
Storing signatures
STEP 2: ENV OPERATOR=/usr/local/bin/jaeger-operator     USER_UID=1001     USER_NAME=jaeger-operator
a65e412f678a937a26b7570406139b5bc55ffae28878d14805ba83e54acd1b25
STEP 3: RUN INSTALL_PKGS="       openssl       " &&     yum install -y $INSTALL_PKGS &&     rpm -V $INSTALL_PKGS &&     yum clean all &&     mkdir /tmp/_working_dir &&     chmod og+w /tmp/_working_dir
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Red Hat Universal Base Image 8 (RPMs) - BaseOS  293 kB/s | 761 kB     00:02    
Red Hat Universal Base Image 8 (RPMs) - AppStre 1.3 MB/s | 3.4 MB     00:02    
Red Hat Universal Base Image 8 (RPMs) - CodeRea 4.9 kB/s | 9.1 kB     00:01    
Dependencies resolved.
================================================================================
 Package        Architecture  Version                 Repository           Size
================================================================================
Installing:
 openssl        x86_64        1:1.1.1c-2.el8          ubi-8-baseos        686 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 686 k
Installed size: 1.2 M
Downloading Packages:
openssl-1.1.1c-2.el8.x86_64.rpm                 2.6 MB/s | 686 kB     00:00    
--------------------------------------------------------------------------------
Total                                           2.5 MB/s | 686 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : openssl-1:1.1.1c-2.el8.x86_64                          1/1 
  Running scriptlet: openssl-1:1.1.1c-2.el8.x86_64                          1/1 
  Verifying        : openssl-1:1.1.1c-2.el8.x86_64                          1/1 
Installed products updated.

Installed:
  openssl-1:1.1.1c-2.el8.x86_64                                                 

Complete!
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
24 files removed
a443adce436c156c53cf4f2e8de8a523a6aadb17ce0e4997a50f9c94327c1967
STEP 4: COPY scripts/* /scripts/
8fcd27ff05e2f2639de4b6594404e195ac212617d2595e4836947e8b31aaddd2
STEP 5: COPY build/_output/bin/jaeger-operator ${OPERATOR}
d83ad56978f1ca7f04d46ce09bda69548077b5fac100525697c665254db83a27
STEP 6: ENTRYPOINT ["/usr/local/bin/jaeger-operator"]
7d3f8e7436c774fc55f3eb203b1ef60232c5d08ecc1557909d966ec0dff1a083
STEP 7: USER ${USER_UID}
STEP 8: COMMIT quay.io/jpkroehling/jaeger-operator:latest
22948d3efcca6e267444df426a06829d53604ca9a1a0cb7b9c914aaf4f5fccbd
22948d3efcca6e267444df426a06829d53604ca9a1a0cb7b9c914aaf4f5fccbd
Pushing image quay.io/jpkroehling/jaeger-operator:latest...
Getting image source signatures
Copying blob 85f69e555a1b done  
Copying blob e4cec95a4a9f done  
Copying blob 3929ab586378 done  
Copying blob b01907021223 done  
Copying blob 1295eae54c9d done  
Copying config 22948d3efc done  
Writing manifest to image destination
Copying config 22948d3efc [--------------------------------------] 0.0b / 3.4KiB
Writing manifest to image destination
Storing signatures
Creating namespace default
statefulset.apps/elasticsearch created
statefulset.apps/cassandra created
# Elasticsearch requires labeled nodes. These labels are by default present in OCP 4.2
node/minikube not labeled
# This is not required in OCP 4.1. The node tuning operator configures the property automatically
# when label tuned.openshift.io/elasticsearch=true label is present on the ES pod. The label
# is configured by ES operator.
namespace/openshift-logging created
customresourcedefinition.apiextensions.k8s.io/prometheusrules.monitoring.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/servicemonitors.monitoring.coreos.com unchanged
serviceaccount/elasticsearch-operator created
clusterrole.rbac.authorization.k8s.io/elasticsearch-operator unchanged
clusterrolebinding.rbac.authorization.k8s.io/elasticsearch-operator-rolebinding unchanged
customresourcedefinition.apiextensions.k8s.io/elasticsearches.logging.openshift.io unchanged
deployment.apps/elasticsearch-operator created
deployment.apps/elasticsearch-operator image updated
Running Example end-to-end tests part 1...
ok  	github.com/jaegertracing/jaeger-operator/test/e2e	164.597s

@jpkrohling jpkrohling merged commit 1126d8e into jaegertracing:master Feb 27, 2020
@amila-ku amila-ku deleted the 767-use-ubi-image branch February 27, 2020 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace base image to ubi
3 participants