phrase / phrase-cli

CLI for the Phrase API
https://developers.phrase.com
MIT License
42 stars 6 forks source link

Provice Docker image within ECR or Github registry #143

Open tetienne-zenchef opened 4 months ago

tetienne-zenchef commented 4 months ago

In order to avoid this kind of error message when pulling your Docker image too many times within the CI

Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading

Can you please also push your docker image within https://gallery.ecr.aws or https://github.com/orgs/phrase/packages?ecosystem=docker ?

theSoenke commented 4 months ago

Hi @tetienne-zenchef, we're looking into it to also push the image to GitHub packages. Depending on your usage maybe using the CLI directly is also an option? https://github.com/phrase/phrase-cli It's a statically linked binary and should quite easily run in most environments

tetienne-zenchef commented 4 months ago

@theSoenke thx for your answer. Indeed, we can also download directly the phrase-cli binary within our Docker image. But one advantage of using the Docker image instead is that RenovateBot can open PRs to update its version.

FROM phrase/phrase-cli:2.22.0.0@sha256:00634548309c0b69a9351c34ccf67a3a6529a5bdac5d68415197ff64667e8db9 AS phrase
ARG VERSION ''
WORKDIR /var/www
COPY --link .phrase.yml ./
RUN phrase pull