Skip to content

Speed Up our Docker Travis CI builds #714

Closed

Description

@eldadfux

We want to use caching to speed up Appwrite's Travis CI build process, and we can use the community help here.

Currently our build process time is around ~10 minutes which is OK, but as faster it can be less time maintainers needs to wait for confirmation that there changes are running as expected.

This change should be focused on our Travis CI YAML file. Any suggestions for improving the code base should be handled on an independent issue.

Activity

  1. added
    enhancement
    good first issue
    hacktoberfest
    help wanted
    on Oct 27, 2020
  2. SoftCreatR commented on Oct 27, 2020

    @SoftCreatR
    Contributor
  3. enggal64 commented on Oct 30, 2020

    @enggal64

    I

  4. Sj1218305 commented on Nov 19, 2020

    @Sj1218305

    I want to claim this issue.
    @eldadfux , is it still open?

  5. eldadfux commented on Nov 19, 2020

    @eldadfux
    MemberAuthor

    @Sj1218305 Yes it is, please reach out on Discord to share your plan of action on this issue.

  6. eldadfux commented on Nov 24, 2020

    @eldadfux
    MemberAuthor

    @Sj1218305 please work against branch 0.7.x which is where the upcoming Appwrite version located

  7. Glide7 commented on Dec 1, 2020

    @Glide7
    Contributor

    Hey @Sj1218305 :)
    Are you still working on this issue? Do you perhaps need help from the team?

  8. Sj1218305 commented on Dec 1, 2020

    @Sj1218305

    @Glide7 , I am working on this. Actually , I am new to Docker so I need some more time. I will surely reach out if any kind of help is required.

  9. Glide7 commented on Dec 1, 2020

    @Glide7
    Contributor

    Awesome, thanks for the update!

  10. Glide7 commented on Dec 1, 2020

    @Glide7
    Contributor
  11. Glide7 commented on Dec 29, 2020

    @Glide7
    Contributor

    Hey @Sj1218305 - how are things going? Do you need assistance from us?

  12. hack3r-0m commented on Jan 12, 2021

    @hack3r-0m
    Contributor

    hi, I would like to take it.
    @SoftCreatR suggested I will use this approach https://github.com/marketplace/actions/build-docker-images-using-cache#from-a-compose-file. I am thinking of creating a new branch from 0.7.x and make PR to that so it does not disturb the current development flow. I have a few doubts:

    • if I am not wrong, there is no image of 0.7.x on the docker hub
    • in the compose_file: docker-compose.yml line, is the path to docker-compose.yml relative considering .github/workflows working dir?
    • that action has some info regarding testing, is it for that particular repo, or is it relevant in this case?
  13. removed their assignment
    on Jan 13, 2021
  14. eldadfux commented on Jan 13, 2021

    @eldadfux
    MemberAuthor

    @hack3r-0m moving to Github actions is not part of this issue scope. The team is currently using Travis CI for ~60 repos and we need to have a wider plan for this kind of migration, which unfortunately is not a priority right now.

  15. hack3r-0m commented on Jan 13, 2021

    @hack3r-0m
    Contributor

    @eldadfux once 0.7.x is ready and pushed to docker, let say new PRs get merged into 0.7.x branch then how is old image updated on docker hub, there must be something step in .travis.yml file to merge new code into existing Docker image? As far as caching Travis CI, docs recommend not to cache images, so the only thing to cache is docker-compose up -d(containers)? btw, is there a need to install docker explicitly in travis build as language: minimal comes with the latest docker version(source)?

  16. eldadfux commented on Feb 5, 2021

    @eldadfux
    MemberAuthor

    @hack3r-0m sorry for the late reply. Not sure about the Docker part, can you verify its already installed in language: minimal?

  17. hack3r-0m commented on Feb 7, 2021

    @hack3r-0m
    Contributor

    @eldadfux language has been changed to language: shell (as per docs, it is same as minimal and has docker. source) recently and also deploy.sh has been added in 0.7.x, is this issue still relevant?

  18. eldadfux commented on Feb 7, 2021

    @eldadfux
    MemberAuthor

    @hack3r-0m yes, mind submitting a PR removing Docker so we can make sure tests are still green?

  19. hack3r-0m commented on Feb 7, 2021

    @hack3r-0m
    Contributor

    sure, i will try to do it ASAP

  20. hack3r-0m commented on Feb 8, 2021

    @hack3r-0m
    Contributor

    @eldadfux buildx (19.03.8)not supported with default docker version which comes pre-installed, while their docs say it is available on 19.03+

  21. slcnx commented on May 26, 2021

    @slcnx

    Why don't you try to put construction phase to Dockerfile , so that we can use the docker cache

  22. eldadfux commented on May 26, 2021

    @eldadfux
    MemberAuthor

    Why don't you try to put construction phase to Dockerfile , so that we can use the docker cache

    We actually do use a multi-stage build, but we build the image from source on the CI to make sure it picks up all the changes made by the team and community.

  23. atharvashirdhankar commented on Oct 8, 2021

    @atharvashirdhankar
    Contributor

    @eldadfux I would like to work on this issue

  24. eldadfux commented on Oct 16, 2021

    @eldadfux
    MemberAuthor

    The build time was reduced from ~30min to ~15min on #1562. Closing this issue. If someone has other ideas for reducing the build time, please raise a dedicated issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehacktoberfesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions