Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Add Pulp 3 container image built from PyPi #3740

Closed
wants to merge 1 commit into from

Conversation

ehelms
Copy link
Contributor

@ehelms ehelms commented Nov 6, 2018

In our discussions, the idea was for this to live in the Pulp main repository and to at least start off as an all-in-one image. There is related work to add running via the containers to the Ansible installer (pulp/pulp_installer#45). There are still some gaps to address here in terms of process:

  1. How to CI the image build itself
  2. How to auto-build the image with PyPi released assets
  3. Creation of the registry project the image will live on
  4. Testing the resulting image in a deployment / Pulp smash scenario

I'm sure there are some other elements to address but this gets us started.

This was inspired by my POC project carafe.

@pep8speaks
Copy link

pep8speaks commented Nov 6, 2018

Hello @ehelms! Thanks for updating the PR.

Line 13:10: E211 whitespace before '('
Line 25:14: E211 whitespace before '('
Line 28:14: E211 whitespace before '('

Comment last updated on February 06, 2019 at 01:11 Hours UTC

container/Dockerfile Outdated Show resolved Hide resolved
container/container-assets/migrate_pulp.sh Outdated Show resolved Hide resolved
container/Dockerfile Outdated Show resolved Hide resolved
container/container-assets/wait_on_postgres.py Outdated Show resolved Hide resolved
container/Dockerfile Outdated Show resolved Hide resolved
@ehelms ehelms force-pushed the add-dockerfile branch 2 times, most recently from 60e0fb7 to 256a9bd Compare January 9, 2019 13:51
@ehelms
Copy link
Contributor Author

ehelms commented Jan 30, 2019

@bmbouter Sounded like from mailing list your request would be to split this into an image per service? I'm good with that direction, wanting clarity before I do work towards it.

@bmbouter
Copy link
Member

@ehelms If you are able to split it into one image per service, I think that would be great!

@ehelms
Copy link
Contributor Author

ehelms commented Feb 6, 2019

@bmbouter This is ready for another round of review with split, individual images based on a pulp-core image.


RUN mkdir -p /etc/pulp

RUN scl enable rh-python36 'pip install gunicorn'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these three be compacted to one RUN to save a few layers?

COPY container-assets/settings.py /etc/pulp/settings.py
RUN echo "SECRET_KEY = '`cat /dev/urandom | tr -dc 'a-z0-9!@#$%^&*(\-_=+)' | head -c 50`'" >> /etc/pulp/settings.py

RUN scl enable rh-python36 "pulp-manager makemigrations pulp_app"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these three be compacted to one RUN to save a few layers?

vars_files:
- vars/defaults.yaml
tasks:
- name: 'Check for podman'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given both playbooks have "check for podman" and "set_fact" steps, should this be moved to a "select_container_cli" role?

@dralley
Copy link
Contributor

dralley commented Feb 28, 2019

@ehelms status?

@bmbouter
Copy link
Member

This repository has moved to https://github.com/pulp/pulpcore. As such this PR needs to close and be reopened over there. Could you please:

  1. Fork https://github.com/pulp/pulpcore on github
  2. Open a new PR against https://github.com/pulp/pulpcore/compare?expand=1

If you're need any help doing this please visit in #pulp-dev on IRC for help. Thank you and sorry for the disruption.

@bmbouter bmbouter closed this Feb 28, 2019
@cognifloyd
Copy link

pulp/pulpcore#13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
8 participants