You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
@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)?
@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?
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.
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.
Activity
SoftCreatR commentedon Oct 27, 2020
enggal64 commentedon Oct 30, 2020
I
Sj1218305 commentedon Nov 19, 2020
I want to claim this issue.
@eldadfux , is it still open?
eldadfux commentedon Nov 19, 2020
@Sj1218305 Yes it is, please reach out on Discord to share your plan of action on this issue.
eldadfux commentedon Nov 24, 2020
@Sj1218305 please work against branch
0.7.xwhich is where the upcoming Appwrite version locatedGlide7 commentedon Dec 1, 2020
Hey @Sj1218305 :)
Are you still working on this issue? Do you perhaps need help from the team?
Sj1218305 commentedon Dec 1, 2020
@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.
Glide7 commentedon Dec 1, 2020
Awesome, thanks for the update!
Glide7 commentedon Dec 1, 2020
@Sj1218305 also, feel free to join the #mainteners channel on our discord! https://appwrite.io/discord
Glide7 commentedon Dec 29, 2020
Hey @Sj1218305 - how are things going? Do you need assistance from us?
hack3r-0m commentedon Jan 12, 2021
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:
compose_file: docker-compose.ymlline, is the path to docker-compose.yml relative considering .github/workflows working dir?eldadfux commentedon Jan 13, 2021
@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.
hack3r-0m commentedon Jan 13, 2021
@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 aslanguage: minimalcomes with the latest docker version(source)?eldadfux commentedon Feb 5, 2021
@hack3r-0m sorry for the late reply. Not sure about the Docker part, can you verify its already installed in
language: minimal?hack3r-0m commentedon Feb 7, 2021
@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?eldadfux commentedon Feb 7, 2021
@hack3r-0m yes, mind submitting a PR removing Docker so we can make sure tests are still green?
hack3r-0m commentedon Feb 7, 2021
sure, i will try to do it ASAP
hack3r-0m commentedon Feb 8, 2021
@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+slcnx commentedon May 26, 2021
Why don't you try to put construction phase to Dockerfile , so that we can use the docker cache
eldadfux commentedon May 26, 2021
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.
atharvashirdhankar commentedon Oct 8, 2021
@eldadfux I would like to work on this issue
eldadfux commentedon Oct 16, 2021
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.