Skip to content

Commit

Permalink
New Nexus OSS version, add basic deploy script for DockerHub
Browse files Browse the repository at this point in the history
  • Loading branch information
fredg02 committed Nov 14, 2024
1 parent e36dee6 commit 7c8cef5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
FROM eclipsecbi/eclipse-temurin-coreutils:8-alpine

# See https://help.sonatype.com/repomanager2/download/download-archives---repository-manager-oss
ARG NEXUS_VERSION=2.15.1-02
ARG NEXUS_VERSION=2.15.2-03
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-${NEXUS_VERSION}-bundle.tar.gz

ENV NEXUS_WORK=/var/nexus/work
Expand Down
24 changes: 24 additions & 0 deletions deploy_docker_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

#*******************************************************************************
# Copyright (c) 2024 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html
# SPDX-License-Identifier: EPL-2.0
#*******************************************************************************

# Bash strict-mode
set -o errexit
set -o nounset
set -o pipefail

NEXUS_VERSION="2.15.2-03"
IMAGE_NAME="eclipsecbi/nexus"

docker build -t "${IMAGE_NAME}:${NEXUS_VERSION}" -t "${IMAGE_NAME}:latest" --build-arg "NEXUS_VERSION=${NEXUS_VERSION}" .

echo "Push to DockerHub?"
read -p "Press enter to continue or CTRL-C to stop the script"
docker push "${IMAGE_NAME}:${NEXUS_VERSION}"
docker push "${IMAGE_NAME}:latest"

0 comments on commit 7c8cef5

Please sign in to comment.