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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nexus_repository_cargo_hosted #324

Open
1 of 2 tasks
cmanzur opened this issue Sep 23, 2022 · 3 comments
Open
1 of 2 tasks

Support for nexus_repository_cargo_hosted #324

cmanzur opened this issue Sep 23, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@cmanzur
Copy link

cmanzur commented Sep 23, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

I'm using a nexus plugin for CARGO repositories.
This is a repository for RUST projects.
It would be great to have a resource called nexus_repository_cargo_hosted

To make it simpler to test, follow this steps:

1- git clone https://github.com/sonatype-nexus-community/nexus-repository-cargo.git
2- cd nexus-repository-cargo

3- Create this file named Dockerfile.nexus-cargo inside the root directory of the project.

ARG NEXUS_VERSION=3.30.1

FROM maven:3-jdk-8-alpine AS build

COPY . /nexus-repository-cargo/
RUN cd /nexus-repository-cargo/; \
    mvn clean package;

FROM sonatype/nexus3:$NEXUS_VERSION

ARG DEPLOY_DIR=/opt/sonatype/nexus/deploy/
USER root
COPY --from=build /nexus-repository-cargo/target/nexus-repository-cargo-*.jar ${DEPLOY_DIR}
USER nexus

4- docker build -t nexus:cargo-plugin -f Dockerfile.nexus-cargo .

5- docker run --name nexus-cargo-local -p 8081:8081 -d nexus:cargo-plugin

6- Wait a few seconds and then run: docker exec -it nexus-cargo-local cat /nexus-data/admin.password && echo to get the admin password

7- Login as admin on localhost:8081 and you'll be able to create a Cargo Repository.

New or Affected Resource(s)/Data Source(s)

nexus_repository_cargo_hosted

Pro feature

  • Yes. Pro license Required

Community Plugin

No response

Potential Terraform Configuration

resource "nexus_repository_cargo_hosted" "cargo" {
  name = "cargo"
  online = true

  cleanup {
    policy_names = ["policy"]
  }

  storage {
    blob_store_name                = "default"
    strict_content_type_validation = true
    write_policy                   = "ALLOW"
  }
}

References

No response

@cmanzur cmanzur added the enhancement New feature or request label Sep 23, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 7 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Dec 23, 2022
@anmoel
Copy link
Member

anmoel commented Dec 23, 2022

/refresh

@stevie-
Copy link
Collaborator

stevie- commented Dec 23, 2022

/fresh

@github-actions github-actions bot removed the stale label Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants