cutwater / pulp-galaxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Galaxy NG

Build Status

A Pulp plugin to support hosting your own galaxy.

For more information, please see the documentation or the Pulp project page.

Automation Hub

Setting up development environment

1. Build docker image

$ ./compose build

2. Start database and redis services

$ ./compose up -d postgres redis

3. Run migrations

$ ./compose run --rm api manage migrate

4. Import initial data (via fixture)

$ ./compose run --rm -e PULP_FIXTURE_DIRS='["/app/dev/automation-hub"]' api \
>     manage loaddata initial_data.json

4. Import initial data (manually)

4.1. Create superuser.

Default username and password used for development environment is admin \ admin.

$ ./compose run --rm api manage createsuperuser

Example output:

Username: admin
Email address: admin@example.com
Password: 
Password (again): 
The password is too similar to the username.
This password is too short. It must contain at least 8 characters.
This password is too common.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.

4.2. Create pulp_ansible repository and distribution

Open django shell.

$ docker-compose run --rm pulp-api manage shell

Execute the following code:

>>> from pulp_ansible.app.models import AnsibleRepository, AnsibleDistribution
>>> repo = AnsibleRepository.objects.create(name='automation-hub')
>>> AnsibleDistribution.objects.create(name='automation-hub', base_path='automation-hub', repository=repo)
<AnsibleDistribution: automation-hub>
>>> # Press <CTRL+D> to exit.

5. Start services

In background:

$ ./compose up -d

In foreground:

$ ./compose up

About

License:GNU General Public License v2.0


Languages

Language:Python 81.3%Language:Shell 17.3%Language:Dockerfile 1.4%