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

Refactoring - update scripts to python #23

Merged
merged 2 commits into from
May 18, 2023
Merged

Conversation

lgothelipe
Copy link
Contributor

Update ecs-deploy image to use python scripts as standard
Currently the image has a mix of bash and python scripts

Breaking changes

Script names changing from *.sh to *.py after command key.

Example:

from:

  db-migration:
    image: public.ecr.aws/dnxsolutions/ecs-deploy:2.3.1
    env_file:
      - .env
    command: /work/run-task.sh
    volumes:
      - ./task-definition-migration.tpl.json:/work/task-definition.tpl.json
      - ./app-spec.tpl.json:/work/app-spec.tpl.json

to:

  db-migration:
    image: public.ecr.aws/dnxsolutions/ecs-deploy:latest
    env_file:
      - .env
    command: /work/run-task.py
    volumes:
      - ./task-definition-migration.tpl.json:/work/task-definition.tpl.json
      - ./app-spec.tpl.json:/work/app-spec.tpl.json

Types of changes

What types of changes does your code introduce to <repo_name>?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING.md doc.
  • I have added necessary documentation (if appropriate).
  • Any dependent changes have been merged and published in downstream modules.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@lgothelipe lgothelipe self-assigned this Mar 21, 2023
@lgothelipe lgothelipe changed the title Refactoring updating scripts to python Refactoring - update scripts to python Mar 21, 2023
@lgothelipe lgothelipe added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 21, 2023
Copy link
Contributor

@brunodasilvalenga brunodasilvalenga left a comment

Choose a reason for hiding this comment

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

Hey @lgothelipe is there a need to have the templates inside of the docker as it should come from outside?

@brunodasilvalenga
Copy link
Contributor

Otherwise, it looks good to approve!
Let's create a draft release so we can test it with some customers and see how it goes!
As soon as you create the draft release, talk with someone from the MS so we could test it in a staging environment from one of our customers.

@lgothelipe
Copy link
Contributor Author

Hey @lgothelipe is there a need to have the templates inside of the docker as it should come from outside?

The app-spec.tpl.json file is being copied to the container to keep backward compatibility.

@brunodasilvalenga
Copy link
Contributor

@lgothelipe looks good to be merged! Could you create a new version and increase the number following the semantic pattern?

@lgothelipe lgothelipe merged commit d5110d4 into master May 18, 2023
@lgothelipe lgothelipe deleted the feature/update-to-python branch May 18, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants