deployer
deployer copied to clipboard
Docker-image for Deployer
An official maintained Docker-image for Deployer would be helpful.
I found the following third party-images: pipelinecomponents/deployer: version 7.3 (but seems only for Gitlab) minkbear/php-deployer: version 7.1
Outdated: ttskch/deployer: version 7.0 mwienk/php-deployer: version 6.8.0 kblais/deployer: version 6.3.0 herloct/deployer: version 5.0
Here is my own build and used in gitlab CI. And just added 7.0.0-rc.8 https://hub.docker.com/r/minkbear/php-deployer/tags
Here is my own build and used in gitlab CI. And just added 7.0.0-rc.8 https://hub.docker.com/r/minkbear/php-deployer/tags
Great, I will add it to the list above.
Your tag 7.0.0-rc.8 uses PHP 7.4, it should use PHP 8.1, same for your tag latest. Also a tag "7" for the latest Deployer-version 7 would be nice.
Here is my own build and used in gitlab CI. And just added 7.0.0-rc.8 https://hub.docker.com/r/minkbear/php-deployer/tags
Great, I will add it to the list above.
Your tag 7.0.0-rc.8 uses PHP 7.4, it should use PHP 8.1, same for your tag latest. Also a tag "7" for the latest Deployer-version 7 would be nice.
Thanks for your recommendation so I reviewed and build the new one as described below
| Tag | Deployer Version | PHP Version |
|---|---|---|
latest |
6.8.0 | 8.1 |
6 |
6.8.0 | 8.1 |
7 |
7.0.0-rc.8 | 8.1 |
One problem is PHAR file is different url to download for example
URL of 7.0.0-beta.34 and below version is https://deployer.org/releases/v7.0.0-beta.34/deployer.phar but others are https://github.com/deployphp/deployer/releases/download/v7.0.0-beta.35/deployer.phar
@antonmedv is that possible to be the same URL.
Use first url, but follow redirects. curl -L
Use first url, but follow redirects. curl -L
Tested, Works fine. Thanks
The doc uses the deployphp/deployer:7 image: https://deployer.org/docs/7.x/ci-cd#gitlab-cicd It looks official.
@alexislefebvre There is no image on docker hub (https://hub.docker.com/search?q=deployphp%2Fdeployer).
What am I missing?
@minkbear You're right, it doesn't work, it can't pull this image:
docker pull deployphp/deployer:7
Error response from daemon: pull access denied for deployphp/deployer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Anyway, I suggest to use the Docker registry of GitHub which is easier to use than Docker Hub.
Here is an example: https://github.com/alexislefebvre/docker-images/blob/main/.github/workflows/push.yaml
GitHub build and publish the images through Actions, they are available through ghcr.io/alexislefebvre/php-7.4-alpine-composer-gd. It should be possible to add something like this to this repository in order to create Docker images on every release automatically.
The docs are wrong, there is no deployer-image. See https://hub.docker.com/r/deployphp Otherwise the maintainer would not have added the feature-flag here.
@alexislefebvre That's a nice solution for the deployer-maintainer or the maintainer of the other deployer-images.
Hi @minkbear,
since deployer 7.0.0 now has been released, would it be possible that you updated your image to use 7.0.0 instead of 7.0.0-rc.8 on your docker image?
@pknap updated as your requested tag 7 is now 7.0.0 already.
| Tag | Deployer Version | PHP Version |
|---|---|---|
latest |
6.8.0 | 8.1 |
6 |
6.8.0 | 8.1 |
7 |
7.0.2 | 8.1 |
7.1 |
7.1.3 | 8.2 |
Thanks.
@antonmedv got the problem that https://deployer.org/releases/v7.0.0/deployer.phar is not exists.
@antonmedv got the problem that https://deployer.org/releases/v7.0.0/deployer.phar is not exists.
https://github.com/deployphp/deployer/releases/download/v7.0.0/deployer.phar
https://deployer.org/releases/v7.0.0-beta.34/deployer.phar
Actually @antonmedv mention above (https://github.com/deployphp/deployer/issues/3118#issuecomment-1126878980) that use "https://deployer.org/releases/v7.0.0-beta.34/deployer.phar" URL then it will redirect to correct phar.
@minkbear I would like to use the image with gitlab, unfortunately I don't quite understand. Could you create a short tutorial here - that would be great.
I would like to use the image with gitlab, unfortunately I don't quite understand. Could you create a short tutorial here - that would be great.
@dennismetz There is already a documentation for Gitlab: https://deployer.org/docs/7.x/ci-cd#gitlab-cicd
Haven't tried it, but it should work by just replacing name: deployphp/deployer:7 with name: minkbear/php-deployer:7
Updated
| Tag | Deployer Version | PHP Version |
|---|---|---|
latest |
6.8.0 | 8.1 |
6 |
6.8.0 | 8.1 |
7 |
7.1.3 | 8.2 |
@minkbear Thanks, I updated the initial posting with the latest version.
As Deployer version 7 is out of beta, tag latest should point to 7.1.3. Tag 7 should point to the latest 7-version 7.1.3. So if you want to keep 7.0.2 it should be tag 7.0.
Hi @minkbear,
sorry to bother you again, but would it be possible to keep 7.0 version under separate tag, or have another one with 7.1 but keep the PHP on 8.1? Currently there is no combination with dep 7.x and php 8.1, so when the app does not yet support php 8.2, the image kind of gets backward incompatible.
Thank you
@alexgit2k @pknap Updated. I will change latest later.
| Tag | Deployer Version | PHP Version |
|---|---|---|
latest |
6.8.0 | 8.1 |
6 |
6.8.0 | 8.1 |
7 |
7.1.3 | 8.2 |
7.0 |
7.0.2 | 8.1 |
Should we create automation to publish docker releases as well?
Should we create automation to publish docker releases as well?
That would save a lot of work, if docker images get created for new deployer-releases automatically. But first at least one official deployer-docker-image would be great.
It's possible to push images to the GitHub registry when a tag is released: https://github.com/binxio/push-to-registry-gh-action-workflow/blob/main/.github/workflows/push-to-registry.yaml (I didn't test it but it looks good)
Please see #3487
I can't seem to find the repo related to Dockerfile and builds for the images. @minkbear would you be willing to share these with us?
I can't seem to find the repo related to Dockerfile and builds for the images. @minkbear would you be willing to share these with us?
https://github.com/minkbear/php-deployer
just ran into this, why is the deployphp/deployer image given as an example in the docs, when there is no such published package?
@marvinhinz I have plans to add it, but still didn’t found time for it.
@antonmedv would there be anything we can help with? Already considered a base image?
I guess php8 as base image.