Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile does not work with docker version 24 #3782

Open
stefanhaerter opened this issue Sep 16, 2024 · 4 comments
Open

Dockerfile does not work with docker version 24 #3782

stefanhaerter opened this issue Sep 16, 2024 · 4 comments
Assignees
Labels
bug Something isn't working as intended
Milestone

Comments

@stefanhaerter
Copy link
Contributor

Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1

Apparently, this docker version does not like the HEREDOC syntax like here:

otobo/otobo.web.dockerfile

Lines 106 to 118 in 1663607

RUN <<END_BASH bash
set -eux
PERL_CPANM_OPT="--local-lib /opt/otobo_install/local"
cpanm --local-lib local Carton
if [[ $DOCKER_TAG == local-* ]]
then
carton install
else
carton install --deployment
fi
rm -rf "/root/.cpanm"
END_BASH

@stefanhaerter stefanhaerter added the bug Something isn't working as intended label Sep 16, 2024
@stefanhaerter stefanhaerter added this to the OTOBO 11.1 milestone Sep 16, 2024
@bschmalhofer
Copy link
Contributor

Changing the Dockerfiles to not using here documents is no problem. But I think that we should first discuss the required versions of Docker. We could also require different versions for running and for building Docker images.

@stefanhaerter
Copy link
Contributor Author

According to some blog posts, heredoc support was added during 2021, which surprised me a bit because the docker version which I run seems to have been released in 2023. But I couldn't figure out which versions exactly have heredoc support.

@bschmalhofer
Copy link
Contributor

Yes, this is a bit confusing. Another thing is that the builds on Docker Hub and GitHub are apparently building with buildkit. I think that the same should be done when building locally.
See https://docs.docker.com/build/buildkit/#getting-started . But still more confusion ensues. From reading the documentation I would have assumed that buildkit is used per default when running Docker 23 or later.

@stefanhaerter : Do you have special setup in your /etc/docker/daemon.json file ?

@stefanhaerter
Copy link
Contributor Author

I have the folder /etc/docker on my system, but it is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

3 participants