Public Repository

Last pushed: 8 months ago
Short Description
Nexus OSS powered by ansible procedures behalf git/github/bitbuclet/others repos
Full Description

You can define your playbook in a repo and pass to docker information to play the Ansible code.

Environment:
MAIN_REPO_URL='git@.......git'
MAIN_REPO_BRANCH=branch|master
MAIN_REPO_FOLDER=folder
ROLES_REPO_URL='git@.........git' \
ROLES_REPO_BRANCH=branch|master
ROLES_REPO_FOLDER=folder
PLAYBOOKS=relative yml files from master folder comma separated
USER_NAME=git-username
USER_EMAIL=git email
ANSIBLE_HOSTNAME=ansible name
HOSTNAME=machine name
RIGLETDOMAIN=macine domain
POSTSTART_NEXUS=Flag defines if Nexus OSS has to start after the ansible procedure (default: "false")
PRESTART_NEXUS_IF_UP_POST_ANSIBLE= Flag allows to restartNexus OSS after the ansible f it is running (default)
PRESTART_NEXUS=Flag defines if Nexus OSS has to start before the ansible procedure (default: "true")
RESTART_NEXUS_AFTER_ANSIBLE=Flag defines if Nexus OSS has to restart after the ansible procedure (default: "false")
PRIVATE_PUBLIC_KEY_TAR_URL=url to your tar, no ssl credentials are provided to wget

VOLUMES : '/sonatype-work'

We suppose you have three environment files in the master folder : vars, inputs and private. They are mandatory and they must be at least filled of one variable each.

Reference Repository:

https://github.com/fabriziotorelli-wipro/rig-docker-machines/tree/master/2/ansible-machines

Example:
docker run -d -p 8080:8081 --privileged -e "PRIVATE_PUBLIC_KEY_TAR_URL=https://github.com/f..../keys.tar" -e .... -e ....... -e "container=docker" --cap-add SYS_ADMIN --security-opt seccomp:unconfined -v /sys/fs/cgroup:/sys/fs/cgroup -it --name my-nexus-ansible builditftorelli/nexus-ansible:x.xxx.xx

Docker Pull Command
Owner
builditftorelli