Skip to content

Commit

Permalink
feat: Update Nexus test image to datadrivers multi arch docker image …
Browse files Browse the repository at this point in the history
…and nexus version 3.61.0 (#390)
  • Loading branch information
anmoel authored and chris-ruecker committed Jan 8, 2024
1 parent 507f61f commit 2d428dc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

Terraform provider to configure Sonatype Nexus using its API.

Implemented and tested with Sonatype Nexus `3.40.0-03`.
Implemented and tested with Sonatype Nexus `3.61.0-02`.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/security_realms.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Use this resource to activate and order the Nexus Security realms.
resource "nexus_security_realms" "example" {
active = [
"NexusAuthenticatingRealm",
"NexusAuthorizingRealm",
"DockerToken",
]
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/nexus_security_realms/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "nexus_security_realms" "example" {
active = [
"NexusAuthenticatingRealm",
"NexusAuthorizingRealm",
"DockerToken",
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func TestAccResourceSecurityRealms(t *testing.T) {
resName := "nexus_security_realms.acceptance"
realms := []string{"NexusAuthenticatingRealm", "NexusAuthorizingRealm"}
realms := []string{"NexusAuthenticatingRealm", "DockerToken"}

resource.Test(t, resource.TestCase{
PreCheck: func() { acceptance.AccPreCheck(t) },
Expand Down
3 changes: 2 additions & 1 deletion scripts/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export NEXUS_VERSION=3.40.0
export NEXUS_IMAGE=ghcr.io/datadrivers/docker-nexus3
export NEXUS_VERSION=3.61.0
export NEXUS_PORT=8081
16 changes: 0 additions & 16 deletions scripts/script.source
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,8 @@ else
echo "since no license file detected at ${_license_file}."
fi

case $(determine_local_architecture) in
"arm64" )
echo "Determined architecture: arm64"
NEXUS_IMAGE=klo2k/nexus3
;;
"x86_64" )
echo "Determined architecture: x86_64"
NEXUS_IMAGE=sonatype/nexus3
;;
* )
echo "Could not determine architecture" ;;
esac

# docker-compose options
COMPOSE_PROFILES=${NEXUS_TYPE}
export COMPOSE_PROFILES
COMPOSE_PROJECT_NAME=nexus-${NEXUS_TYPE}
export COMPOSE_PROJECT_NAME

# arch dependent nexus image selection
export NEXUS_IMAGE

0 comments on commit 2d428dc

Please sign in to comment.