Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Molecule to devcontainer #2349

Closed
12 tasks
atsikham opened this issue May 31, 2021 · 1 comment
Closed
12 tasks

Add Molecule to devcontainer #2349

atsikham opened this issue May 31, 2021 · 1 comment

Comments

@atsikham
Copy link
Contributor

atsikham commented May 31, 2021

At the moment we have Ansible Molecule tests for PostgreSQL, but no any configuration was done to execute it in devcontainer. As docker backend is used here, it should be investigated how to run those tests.

Also would be cool if we can run these tests from the container and not only externally.

Originally posted by @seriva in #2330 (comment)

Things to do:

  1. Add Docker to devcontainer
    Steps from https://github.com/microsoft/vscode-dev-containers/tree/main/containers/docker-from-docker#enabling-root-user-access-to-docker-in-the-container (tested only on Windows)
  2. Add molecule and ansible-lint
    https://molecule.readthedocs.io/en/latest/installation.html
    https://github.com/epiphany-platform/epiphany/blob/develop/core/src/epicli/data/common/ansible/playbooks/roles/postgresql/molecule/README.md
  3. Check if we can avoid sudo su - before running molecule tests.

DoD checklist

  • Changelog updated
  • COMPONENTS.md updated / doesn't need to be updated
  • Feature has automated tests
  • Automated tests passed (QA pipelines)
    • apply
    • upgrade
  • Idempotency tested
  • Documentation added / updated / doesn't need to be updated
  • All conversations in PR resolved
  • Solution meets requirements and is done according to design doc
  • Usage compliant with license
  • Backport tasks created / doesn't need to be backported
@to-bar to-bar changed the title [SPIKE][Postgresql] Molecule tests execution in devcontainer Add Molecule to devcontainer Aug 26, 2021
@seriva
Copy link
Collaborator

seriva commented Apr 15, 2022

Not adding this anymore

@seriva seriva closed this as completed Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants