- Launch 1 Ec2-Instance with below requirement RAM - 8GB Space - 30 GB Operating System - Amazon Linux Open Ports on EC2 8081 and 8082
- Create your Artifactory home directory and an empty system.yaml file. The user creating the folder should be the user running the docker run
“ mkdir -p $JFROG_HOME/artifactory/var/etc/
cd $JFROG_HOME/artifactory/var/etc/
touch ./system.yaml
chown -R 1030:1030 $JFROG_HOME/artifactory/var “
- Configure a connection to external database.
“cd /$JFROG_HOME/artifactory/var/etc/ “
“ vi system.yaml “
- Configure the system.yaml file with the database configuration details,
shared:
database:
driver: org.postgresql.Driver
type: postgresql
url: jdbc:postgresql://:5432/artifactorydb
username: artifactory
password: password
Once Jfrog console logined and we changed the password after that it will encrypted in system.yaml file
- Install postgres sql using docker engine.
“ docker run --name postgres -itd -e POSTGRES_USER=artifactory -e POSTGRES_PASSWORD=password -e POSTGRES_DB=artifactorydb -p 5432:5432 library/postgres “
- Start the Artifactory container using the process that is relevant for your system.
“ docker run --name artifactory -v $JFROG_HOME/artifactory/var/:/var/opt/jfrog/artifactory -d -p 8081:8081 -p 8082:8082 releases-docker.jfrog.io/jfrog/artifactory-oss “
- Access Artifactory from your browser at: http://SERVER_HOSTNAME:8082/ui/
Top comments (0)