Steps to upgrade

ARTIFACTORY: Installation Quick Start Guide - Docker-compose

AuthorFullName__c
Ino Choi
articleNumber
000005198
ft:sourceType
Salesforce
FirstPublishedDate
2022-01-13T19:31:41Z
lastModifiedDate
2024-03-13T09:49:24Z
VersionNumber
15

1. Stop the current server.

docker-compose -p rt stop

2. Extract the contents of the compressed archive and go to the extracted folder.

tar -xvf jfrog-artifactory-pro-<version>-compose.tar.gz
cd artifactory-pro-<version>

3. Copy the contents of the .env file in the previous installation (e.g. artifactory-pro-7.23.3 folder) to the newly created .env file in this archive (e.g. artifactory-pro-7.24.3 folder) without copying the versions, as this will affect the upgrade.

a) Previous installation .env file

## Docker registry to fetch images from
DOCKER_REGISTRY=releases-docker.jfrog.io

## Version of artifactory to install
ARTIFACTORY_VERSION=7.23.3

## The Installation directory for Artifactory. IF not entered, the script will prompt you for this input. Default [$HOME/.jfrog/artifactory]
ROOT_DATA_DIR=/opt/jfrog/artifactory

## Router external port mapping. This property may be overridden from the system.yaml (router.entrypoints.externalPort)
JF_ROUTER_ENTRYPOINTS_EXTERNALPORT=8082

## Nginx logrotation configuration
NGINX_LOG_ROTATE_COUNT=
NGINX_LOG_ROTATE_SIZE=

b) New installation .env file

## Docker registry to fetch images from
DOCKER_REGISTRY=releases-docker.jfrog.io

## Version of artifactory to install
ARTIFACTORY_VERSION=7.24.3

## The Installation directory for Artifactory. IF not entered, the script will prompt you for this input. Default [$HOME/.jfrog/artifactory]
ROOT_DATA_DIR=/opt/jfrog/artifactory

## Router external port mapping. This property may be overridden from the system.yaml (router.entrypoints.externalPort)
JF_ROUTER_ENTRYPOINTS_EXTERNALPORT=8082

## Nginx logrotation configuration
NGINX_LOG_ROTATE_COUNT=
NGINX_LOG_ROTATE_SIZE=

4. Run the config.sh script to set up folders with required ownership.

$ ./config.sh

5. Start up Artifactory using Docker-Compose command.

start:               docker-compose -p rt up -d
stop:                docker-compose -p rt down