Giter Club home page Giter Club logo

ansible-devspace-demo's People

Contributors

devstudio-release avatar huntergerlach avatar jeffcpullen avatar kyetter avatar l0rd avatar mkuznyetsov avatar svor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-devspace-demo's Issues

Github Action - Publish new base image

Updates to the Dockerfile or files added into the container as part of the build should be handled as part of a Github action and published to quay.io.

Molecule fails first run due to OC not being in path until after prepare

The base image doesn't contain the 'oc' binary. It is added as part of the demo.oc_connection molecule prepare stage, but that is the wrong place to fix it. Prepare is run and sets things up, but it doesn't reload the PATH env in a way that it works in that same run.

It would be preferred that the oc binary is grabbed from the local cluster rather than packaging it in the image for several reasons.

  1. Avoids bloating the image
  2. Ensures the client and server versions of OpenShift match
  3. Leverages a service of OCP that is consistent across every deployment

Rather than having the the prepare stage of molecule setup the system, it would be better if it could be handled as part of an initialization script. If there is a way to add scripts to the dev space configuration file to run-once, the jobs in the prepare stage could be moved to a simple playbook / script.

Update README for TDD demo with molecule on backup_file role

The backup_file role is setup nicely to demonstrate a simple test driven development example by adding verification to the role.

This would involve adding code to the molecule/default/verify.yml file like this.

---
- name: Verify
  hosts: all
  connection: community.okd.oc
  gather_facts: false
  tasks:
  
  - name: Check if backup file was created
    ansible.builtin.stat:
      path: "{{ backup_file_destination_path }}"
    register: __backup_file_verify_file

  - name: Debug backup file variable
    ansible.builtin.debug:
      var: __backup_file_verify_file

  - name: Example assertion
    ansible.builtin.assert:
      that:
        - __backup_file_verify_file.stat.exists

This assumes that the backup_file_destination_path is defined. The playbook will fail if this isn't defined (which is another verification that could be added). Or it can be defined in the molecule.yml file under the group_vars.

Running molecule test or molecule verify if the molecule create && molecule converge has already been run.

To have this test pass the role could be updated to include tasks like this.

---
- name: Backup file
  ansible.builtin.copy:
    src: "{{ backup_file_source_path }}"
    dest: "{{ backup_file_destination_path }}"
    mode: '0600'
    remote_src: yes

backup_file/tasks/verify.yml

We will also need to make sure that backup_file_source_path is provided same as the backup_file_destination_path mentioned above.

Bug: oc should be included

Description

For the oc_connection molecule demo, once molecule prepare is run, the user needs to run "source ~/.bashrc" to have oc recognized on the path. Jeff proposed 3 options for getting rid of this:

  • include oc in the container image
  • include oc in the dev file so that its downloaded and stored somewhere already in the path
  • put together some shell script in the image that is executed (hopefully automatically on launch)

Feature: Dummy Button

Description

As a user of ansible in devspaces I want it to be so! easy! i want a big old button like they have for the other dev spaces:

image

Feature: Pre-commit hooks

Description

As a responsible ansible developer, I want to have a pre-commit hook in place that prevents me from committing secrets while developing in the dev spaces

Documentation

Documentation: Update README to describe repository use

Description

As a prospective user of ansible in dev spaces, I want it to be painfully clear to me how I could leverage this new technology. Include pointers towards lint docs, the molecule ocp situation, and perhaps a demo?

Make it more clear what the demo button does. Draw more attention to it

Status badge are typically used to show status and then provide more information when clicked on. I found it a bit confusing that the button at the top of the readme is how you actually launch the demo. Consider switching to another mechanism for launching the demo such as a different button, or at least call more attention to the one that exists currently

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.