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

Docker build of 2.6 branch is broken #889

Closed
1 of 8 tasks
etj opened this issue Sep 4, 2023 · 0 comments
Closed
1 of 8 tasks

Docker build of 2.6 branch is broken #889

etj opened this issue Sep 4, 2023 · 0 comments

Comments

@etj
Copy link
Contributor

etj commented Sep 4, 2023

Description

This commit is breaking the Dockerfile, and the build fails.

docker log
$ docker build . --tag pycsw-dynamic:2.6.x
[+] Building 7.1s (6/17)                                                                                                         
 => [internal] load build definition from Dockerfile                                                                        0.0s
 => => transferring dockerfile: 2.88kB                                                                                      0.0s
 => WARN: Empty continuation line found in: RUN apt-get update && apt-get install --yes         ca-certificates libexpat1   0.0s
 => [internal] load .dockerignore                                                                                           0.0s
 => => transferring context: 260B                                                                                           0.0s
 => [internal] load metadata for docker.io/library/python:3.8-slim-buster                                                   1.6s
 => [internal] load build context                                                                                           0.2s
 => => transferring context: 8.37MB                                                                                         0.2s
 => CACHED [ 1/13] FROM docker.io/library/python:3.8-slim-buster@sha256:8799b0564103a9f36cfb8a8e1c562e11a9a6f2e3bb214e2adc  0.0s
 => ERROR [ 2/13] RUN apt-get update && apt-get install --yes         ca-certificates libexpat1 ARG BUILD_DEV_IMAGE="false  5.4s
------                                                                                                                           
 > [ 2/13] RUN apt-get update && apt-get install --yes         ca-certificates libexpat1 ARG BUILD_DEV_IMAGE="false":            
#0 0.661 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]                                                            
#0 0.824 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]                                          
#0 0.905 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                                                   
#0 1.069 Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]                                                 
#0 3.225 Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [549 kB]
#0 3.353 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
#0 4.105 Fetched 8680 kB in 4s (2365 kB/s)
#0 4.105 Reading package lists...
#0 4.648 Reading package lists...
#0 5.167 Building dependency tree...
#0 5.264 Reading state information...
#0 5.357 E: Unable to locate package ARG
#0 5.357 E: Unable to locate package BUILD_DEV_IMAGE
------
Dockerfile:42
--------------------
  41 |     
  42 | >>> RUN apt-get update && apt-get install --yes \
  43 | >>>         ca-certificates libexpat1 \
  44 | >>> 
  45 | >>> # Build arguments
  46 | >>> # add "--build-arg BUILD_DEV_IMAGE=true" to Docker build command when building with test/doc tools
  47 | >>> 
  48 | >>> ARG BUILD_DEV_IMAGE="false"
  49 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install --yes         ca-certificates libexpat1 ARG BUILD_DEV_IMAGE=\"false\"" did not complete successfully: exit code: 100

Environment

  • operating system: Ubuntu 20.04.6 LTS
  • Python version:
  • pycsw version: branch 2.6
  • source/distribution
    • git clone
    • DebianGIS/UbuntuGIS
    • PyPI
    • zip/tar.gz
    • other (please specify):
  • web server
    • Apache/mod_wsgi
    • CGI
    • other (please specify):

Steps to Reproduce

  • Clone the repo and switch to branch 2.6
    git clone https://github.com/geopython/pycsw.git -b 2.6
    
  • Build the docker image:
     cd pycsw
     docker build . --tag pycsw-dynamic:2.6.x 
    

Additional Information

# docker --version
Docker version 24.0.2, build cb74dfc
etj added a commit to etj/pycsw that referenced this issue Sep 5, 2023
kalxas pushed a commit that referenced this issue Sep 13, 2023
@kalxas kalxas closed this as completed Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants