Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

build: use native Dockerfile for devstack #487

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

iamsobanjaved
Copy link
Contributor

@iamsobanjaved iamsobanjaved commented Aug 19, 2022

ISSUE: openedx-unsupported/devstack#946

This PR is part of effort aimed at removing Ansible based configurations and replacing them with Dockerfile. Currently Devstack Docker images are built using Ansible based configurations in the configurations repository. Through this effort we will make sure that the Repo has its own Dockerfile which has all the necessary configurations to setup small production and dev environments.

Steps to run this Image with Devstack:

  • Build the Image locally first using the target dev i.e. docker build -t image-name-of-choice --target dev .
  • After the image is built successfully go to the docker compose file of devstack and replace the existing registrar image with the one that you built without changing any other configurations there.
  • Run make dev.up.registrar in the terminal while in the devstack directory.

Related PRs:

@iamsobanjaved iamsobanjaved force-pushed the iamsobanjaved/ansible-dockerfile branch from 467f8de to 1cff475 Compare November 28, 2022 09:42
@iamsobanjaved iamsobanjaved force-pushed the iamsobanjaved/ansible-dockerfile branch from 1cff475 to 1bad472 Compare January 10, 2023 08:27
@iamsobanjaved iamsobanjaved changed the title feat: create native Dockerfile build: use native Dockerfile for devstack Jan 10, 2023
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
requirements/local.txt Outdated Show resolved Hide resolved
@iamsobanjaved iamsobanjaved force-pushed the iamsobanjaved/ansible-dockerfile branch from 1bad472 to ca8cc71 Compare February 10, 2023 11:29
As we are moving away from ansibles so we are going to use native Dockerfile for
the registrar image to use in devstack.
Copy link
Contributor

@alangsto alangsto left a comment

Choose a reason for hiding this comment

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

👍

repository: edxops/registrar-dev
tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }}

# - name: Build and push prod Docker image
Copy link
Contributor

Choose a reason for hiding this comment

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

Why comment out, and not delete? Is the point here to no longer push the image to edxops/registrar? Then why leave the commented out section here in the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The image currently created at openedx/registrar is being used in the prod deployment, so we will stop pushing to that and in the meantime, we will merge this and test on devstack. If everything goes fine then we will enable that prod-related image.

@iamsobanjaved iamsobanjaved merged commit 60dfeea into master Mar 22, 2023
@iamsobanjaved iamsobanjaved deleted the iamsobanjaved/ansible-dockerfile branch March 22, 2023 11:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to Ansible-free Docker image of registrar
5 participants