docker-cubicweb merge requestshttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests2020-06-02T07:08:23Zhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/1Download dev from default branch in forge.extranet.logilab.fr instead of hg.l...2020-06-02T07:08:23ZNoé GaumontDownload dev from default branch in forge.extranet.logilab.fr instead of hg.logilab.orgHeptapod does not support downloading archives of repo from an hg id (it exposes git id).
In order to invalidate docker cache, an url anchor with the hg id is used.Heptapod does not support downloading archives of repo from an hg id (it exposes git id).
In order to invalidate docker cache, an url anchor with the hg id is used.https://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/2Topic/default/update 3.282020-06-24T09:12:00ZSimon ChabotTopic/default/update 3.28Carine DenglerCarine Denglerhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/3feat: Update 'latest' tag to 3.29, release 3.29 image and update documentatio...2021-01-19T14:33:40ZCarine Denglerfeat: Update 'latest' tag to 3.29, release 3.29 image and update documentation...feat: Update 'latest' tag to 3.29, release 3.29 image and update documentation with latest images for cubicweb 3.29feat: Update 'latest' tag to 3.29, release 3.29 image and update documentation with latest images for cubicweb 3.29Arthur LutzArthur Lutzhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/4Topic/default/hackathon2021-03-24T08:09:52ZNoé GaumontTopic/default/hackathonAjout des versions mineurs et fix des version de cubicweb
ping @emartinet @phAjout des versions mineurs et fix des version de cubicweb
ping @emartinet @phSimon ChabotSimon Chabothttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/5Topic/default/allow some failure2021-03-30T13:15:51ZNoé GaumontTopic/default/allow some failureLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/6fix: do not try to upgrade images that have not been built2021-03-31T15:56:45ZNoé Gaumontfix: do not try to upgrade images that have not been builtThis fixes an error on jenkins:
```shell
2021-03-31 02:49:58,709 Unable to find image 'logilab/cubicweb:py35-stretch-3.27.0' locally
docker: Error response from daemon: manifest for logilab/cubicweb:py35-stretch-3.27.0 not found: manifes...This fixes an error on jenkins:
```shell
2021-03-31 02:49:58,709 Unable to find image 'logilab/cubicweb:py35-stretch-3.27.0' locally
docker: Error response from daemon: manifest for logilab/cubicweb:py35-stretch-3.27.0 not found: manifest unknown: manifest unknown.
See 'docker run --help'.
Traceback (most recent call last):
File "build.py", line 357, in <module>
debian_dists=["stretch", "buster"], images=images, rebuild=args.checkrebuild
File "build.py", line 289, in build
assert (out.returncode, out.stdout) == (0, b""), out
```
This occurs if the image build failed but the script still try to update the packages in the (missing) image.
This MR adds a test to upgrade only if the image was built correctly in the previous step.Arthur LutzArthur Lutzhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/7Topic/default/fix push phase2021-04-02T15:34:49ZNoé GaumontTopic/default/fix push phaseFabien Amargerfabien.amarger@logilab.frFabien Amargerfabien.amarger@logilab.frhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/8fix(DockerFile): update pip during installation2021-06-17T12:54:41ZNoé Gaumontfix(DockerFile): update pip during installationFix #10
Before this MR, the following failed:
```sh
docker run --rm -it --entrypoint='/bin/bash' logilab/cubicweb:dev
pip install psycopg2-binary
pip --version # return 18.1
```
After this MR, the same works:
```
docker run --rm -...Fix #10
Before this MR, the following failed:
```sh
docker run --rm -it --entrypoint='/bin/bash' logilab/cubicweb:dev
pip install psycopg2-binary
pip --version # return 18.1
```
After this MR, the same works:
```
docker run --rm -it --entrypoint='/bin/bash' logilab/cubicweb:dev
pip install psycopg2-binary
pip --version # returns 21.1.2
```
To test it, build an image locally:
In build.py :
```diff
- images = get_cubicweb_images(["stretch", "buster"], ["py27"])
- images += get_cubicweb_images(["stretch"], ["py35"])
- images += get_cubicweb_images(["buster"], ["py37"])
+ images = []
```
This will build only the dev version.
then build it with `python3 build.py`https://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/9chore: check-docker-update2021-06-22T09:28:31ZNoé Gaumontchore: check-docker-updateBefore this patch, each patch version is build twice as the script output a package to be updgraded : cubicweb.
As the cubicweb package is mark as hold (see DockerFile), it will not be upgraded even with cache invalidation.
This patch i...Before this patch, each patch version is build twice as the script output a package to be updgraded : cubicweb.
As the cubicweb package is mark as hold (see DockerFile), it will not be upgraded even with cache invalidation.
This patch intents to speed the build process.
See the job on [jenkins](https://jenkins.intra.logilab.fr/job/docker-cubicweb/)
To test this patch:
```sh
# 3.26.16 is not the last patch version in the 3.26 series
docker run --rm -it -u root --entrypoint='/bin/bash' logilab/cubicweb:py37-buster-3.26.16
apt update
# old command to check if a package has to be upgraded
# apt list --upgradable will list pyhton3-cubiweb
apt list --upgradable 2>/dev/null | grep "upgradable from" && echo "oui" || echo "non"
# new command to test (will ignore cubiweb
apt list --upgradable 2>/dev/null | grep "upgradable from" | grep --invert-match "cubicweb" && echo "oui" || echo "non"
```
To confirm cubicweb is on hold in container:
```
root@5c5e0c50526d:/home/cubicweb# dpkg -l | grep cubicweb
hi python3-cubicweb 3.26.16-1+deb10u1 all CubicWeb framework (Python 3)
```
`hi` means holds and installedhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/10feat: use python package instead of debian package for cubicweb2021-07-13T13:59:47ZNoé Gaumontfeat: use python package instead of debian package for cubicwebrelated to https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/337related to https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/337https://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/11Draft: [.gitlab-ci] initial kaniko test2021-07-23T15:45:32ZArthur LutzDraft: [.gitlab-ci] initial kaniko testhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/12chore: buildpackage has been moved (related to https://forge.extranet.logilab...2021-07-20T13:17:59ZCarine Denglerchore: buildpackage has been moved (related to https://forge.extranet.logilab.fr/logilab/infra/sysadmin/-/issues/1246)related to https://forge.extranet.logilab.fr/logilab/infra/dockerfiles/-/merge_requests/24related to https://forge.extranet.logilab.fr/logilab/infra/dockerfiles/-/merge_requests/24Noé GaumontNoé Gaumonthttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/13fix: install psycopg2 and jinja22021-07-20T13:19:37ZSimon Chabotfix: install psycopg2 and jinja2- psycopg2 is needed to run an instance with postgresql
- jinja2 is needed to format the pyramid.ini
They were previously manually installed with apt.- psycopg2 is needed to run an instance with postgresql
- jinja2 is needed to format the pyramid.ini
They were previously manually installed with apt.Simon ChabotSimon Chabothttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/15feat: create image cubicweb-base2021-08-03T14:39:43ZNoé Gaumontfeat: create image cubicweb-base--
BREAKING CHANGE--
BREAKING CHANGEhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/16feat: adapt template to include trusted origins2021-07-29T09:53:28ZCarine Denglerfeat: adapt template to include trusted originsSee https://docs.pylonsproject.org/projects/pyramid/en/latest/_modules/pyramid/csrf.html#check_csrf_origin for details.See https://docs.pylonsproject.org/projects/pyramid/en/latest/_modules/pyramid/csrf.html#check_csrf_origin for details.https://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/18ci: use job templates to build/push images for buster and bullseye2021-09-03T08:13:18ZSimon Chabotci: use job templates to build/push images for buster and bullseyeSimon ChabotSimon Chabothttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/19fix: add /home/cubicweb/.local/bin to PATH2021-11-29T10:44:06ZNoé Gaumontfix: add /home/cubicweb/.local/bin to PATHhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/20fix: fix Kaniko version2022-07-25T15:56:04ZCarine Denglerfix: fix Kaniko versionhttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/21fix: fix base distro2022-09-07T12:18:46ZCarine Denglerfix: fix base distrohttps://forge.extranet.logilab.fr/cubicweb/docker-cubicweb/-/merge_requests/22chore use latest version of setuptools2023-02-24T11:33:30ZFrank Bessouchore use latest version of setuptoolsSome of the packages used by our cubes are not compatible with old versions of setuptools.
See https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/662.Some of the packages used by our cubes are not compatible with old versions of setuptools.
See https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/662.Frank BessouFrank Bessou