OBS build with docker command
H, I'm currently working on the packaging of orthanc-ohif [1], a plugin that brings the OHIF viewer to Orthanc. During the preparation a build script processes the OHIF viewer tarball, and, as far as I understand the script, the attempt is made to build a container. The log states: [ 9s] + mkdir -p /home/abuild/rpmbuild/BUILD/OrthancOHIF-1.0/Resources/../OHIF/dist/ [ 9s] + cd /home/abuild/rpmbuild/BUILD/OrthancOHIF-1.0/Resources/../Resources/CreateOHIFDist [ 9s] + docker build --no-cache -t orthanc-ohif-node . [ 9s] DEPRECATED: The legacy builder is deprecated and will be removed in a future release. [ 9s] Install the buildx component to build images with BuildKit: [ 9s] https://docs.docker.com/go/buildx/ [ 9s] [ 9s] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [ 9s] error: Bad exit status from /var/tmp/rpm-tmp.mbzWeX (%prep) As I have no experience with docker, is there some process that need to be started beforehand in order to run docker? Thanks Axel [1] https://build.opensuse.org/package/show/home:DocB:Orthanc/orthanc-ohif[1] -------- [1] https://build.opensuse.org/package/show/home:DocB:Orthanc/orthanc-ohif
On 21/06/2023 10.01, Axel Braun wrote:
H,
I'm currently working on the packaging of orthanc-ohif [1], a plugin that brings the OHIF viewer to Orthanc.
During the preparation a build script processes the OHIF viewer tarball, and, as far as I understand the script, the attempt is made to build a container.
The log states:
[ 9s] + mkdir -p /home/abuild/rpmbuild/BUILD/OrthancOHIF-1.0/Resources/../OHIF/dist/ [ 9s] + cd /home/abuild/rpmbuild/BUILD/OrthancOHIF-1.0/Resources/../Resources/CreateOHIFDist [ 9s] + docker build --no-cache -t orthanc-ohif-node . [ 9s] DEPRECATED: The legacy builder is deprecated and will be removed in a future release. [ 9s] Install the buildx component to build images with BuildKit: [ 9s] https://docs.docker.com/go/buildx/ [ 9s] [ 9s] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [ 9s] error: Bad exit status from /var/tmp/rpm-tmp.mbzWeX (%prep)
As I have no experience with docker, is there some process that need to be started beforehand in order to run docker?
OBS builds run offline without docker, but you could extract the Dockerfile and try to build it as a container e.g. like https://build.opensuse.org/package/show/OBS:Server:Unstable:Containers/front... docs: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_conta... If you want a proper rpm, you need to extract the details from the Dockerfile and referenced containers to convert that into a proper build script.
participants (2)
-
Axel Braun
-
Bernhard M. Wiedemann