From 24cd3ad1e38fc5bd1dcc9364604253f15d5f3cd6 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 12 Oct 2024 19:36:42 -0400 Subject: [PATCH] add nexus --- .forgejo/workflows/tofu.yml | 6 +++--- docker/nexus/docker-compose.yml | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 docker/nexus/docker-compose.yml diff --git a/.forgejo/workflows/tofu.yml b/.forgejo/workflows/tofu.yml index 2a146c1..f9c974e 100644 --- a/.forgejo/workflows/tofu.yml +++ b/.forgejo/workflows/tofu.yml @@ -7,7 +7,7 @@ on: jobs: terraform: - runs-on: docker + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 @@ -24,9 +24,9 @@ jobs: run: rm -f install-opentofu.sh - name: Initialize OpenTofu - run: opentofu init + run: tofu init working-directory: ./terraform - name: Apply OpenTofu - run: opentofu apply -auto-approve + run: tofu apply -input=false working-directory: ./terraform diff --git a/docker/nexus/docker-compose.yml b/docker/nexus/docker-compose.yml new file mode 100644 index 0000000..ee41217 --- /dev/null +++ b/docker/nexus/docker-compose.yml @@ -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 \ No newline at end of file