add nexus

This commit is contained in:
Matt Reeves 2024-10-12 19:36:42 -04:00
parent b5c2c6364b
commit 24cd3ad1e3
2 changed files with 14 additions and 3 deletions

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
terraform: terraform:
runs-on: docker runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -24,9 +24,9 @@ jobs:
run: rm -f install-opentofu.sh run: rm -f install-opentofu.sh
- name: Initialize OpenTofu - name: Initialize OpenTofu
run: opentofu init run: tofu init
working-directory: ./terraform working-directory: ./terraform
- name: Apply OpenTofu - name: Apply OpenTofu
run: opentofu apply -auto-approve run: tofu apply -input=false
working-directory: ./terraform working-directory: ./terraform

View file

@ -0,0 +1,11 @@
---
services:
nexus:
image: sonatype/nexus3:3.70.3
container_name: nexus
restart: unless-stopped
ports:
- 8081:8081
- 8082:8082
volumes:
- /docker/appdata/nexus:/nexus-data ## To get to work run: sudo chown -R 200 /docker/appdata/nexus/ | cat /docker/appdata/nexus/admin.password