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

[OCI Registry (Nexus)] QE for OCI Registry (Nexus) plugin #568

Closed
1 task done
schultzp2020 opened this issue Jul 25, 2023 · 2 comments
Closed
1 task done

[OCI Registry (Nexus)] QE for OCI Registry (Nexus) plugin #568

schultzp2020 opened this issue Jul 25, 2023 · 2 comments

Comments

@schultzp2020
Copy link
Member

schultzp2020 commented Jul 25, 2023

Description:

Test OCI Registry (Nexus) plugin and update test plan

Blocked by: #567

Acceptance Criteria:

  • Test Plan
@josephca
Copy link

Hi @schultzp2020,

Please review the e2e test case. Thanks,

OCI Registry (Nexus) plugin install and verification (readme/instruction) (insert link to the README.md when PR is merged)

Prereqs:

  1. setup instance of Nexus server

OCI Registry (Nexus) plugin install and verification:

  1. install @janus-idp/backstage-plugin-nexus plugin (not available yet) and enable it and its proxy
  2. start backstage and navigate to a component with a nexus repository manager annotation (insert link to the ANNOTATION.md file when PR is merged)
  3. Click on the "Build Artifacts" tab and check if you can view the versions, repository, repository type, last modified date and SHA of an image related to a catalog deployed by an image in the Nexus

@schultzp2020
Copy link
Member Author

@josephca LGTM

Here are the instructions to setup a local nexus env. I'm using docker commands since that's what's documented.

  1. docker pull sonatype/nexus3
  2. I would suggest using persistent data so you can restart the image and keep the data
    1. docker volume create --name nexus-data
  3. docker run -d -p 8081:8081 -p 8082:8082 --name nexus -v nexus-data:/nexus-data sonatype/nexus3
    1. The image may take a while to properly startup
    2. docker logs -f nexus
  4. Find the admin password
    1. docker exec -it nexus /bin/bash
    2. cat /nexus-data/admin.password
  5. Follow this guide
    1. enable anonymous sources
    2. username is admin
    3. password you get from step 4
    4. use port 8082
  6. retag and push an image with the repository url as 127.0.0.1:8082
    1. e.g. docker tag sonatype/nexus3 127.0.0.1:8082/<nexus3 docker repo name>/nexus3
    2. e.g. docker push 127.0.0.1:8082/<nexus3 docker repo name>/nexus3
  7. Follow plugin README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants