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

Issue with gdal in docker install #27

Open
Mikec78660 opened this issue May 18, 2024 · 5 comments
Open

Issue with gdal in docker install #27

Mikec78660 opened this issue May 18, 2024 · 5 comments

Comments

@Mikec78660
Copy link

Describe the bug
unable to finish the install on both ubuntu 24.04 or Debian 12. ends with this error.

containers.go:53: failed to build gdal container: exit status 1

To Reproduce
Steps to reproduce the behavior:

  1. Fresh install of Ubuntu 24.04 server or Debian 12
  2. install docker:

Add Docker's official GPG key:

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

Add the repository to Apt sources:

echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

  1. Run sudo ./sequentially-generate-planet-mbtiles--unix-amd64-v3.1.0 -s

Expected behavior
should have set up the environment to produce mbtiles.

Screenshots
ERROR: failed to solve: process "/bin/sh -c if test "${GDAL_VERSION}" = "master"; then export GDAL_VERSION=$(curl -Ls https://api.github.com/repos/${GDAL_REPOSITORY}/commits/HEAD -H "Accept: application/vnd.github.VERSION.sha"); export GDAL_RELEASE_DATE=$(date "+%Y%m%d"); fi && apk add --no-cache cmake && if test "x${GDAL_BUILD_IS_RELEASE}" = "x"; then export GDAL_SHA1SUM=${GDAL_VERSION}; fi && if test "${RSYNC_REMOTE}" != ""; then echo "Downloading cache..."; rsync -ra ${RSYNC_REMOTE}/gdal/$(uname -m)/ $HOME/; echo "Finished"; export CC="ccache gcc"; export CXX="ccache g++"; mkdir -p "$HOME/.ccache"; ccache -M 1G; fi && mkdir gdal && wget -q https://github.com/${GDAL_REPOSITORY}/archive/${GDAL_VERSION}.tar.gz -O - | tar xz -C gdal --strip-components=1 && cd gdal && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DGDAL_USE_TIFF_INTERNAL=ON -DGDAL_USE_GEOTIFF_INTERNAL=ON && make -j$(nproc) && make install DESTDIR="/build" && cd .. && if test "${RSYNC_REMOTE}" != ""; then ccache -s; echo "Uploading cache..."; rsync -ra --delete $HOME/.ccache ${RSYNC_REMOTE}/gdal/$(uname -m)/; echo "Finished"; rm -rf $HOME/.ccache; unset CC; unset CXX; fi && cd .. && rm -rf gdal && mkdir -p /build_gdal_version_changing/usr/include && mv /build/usr/lib /build_gdal_version_changing/usr && mv /build/usr/include/gdal_version.h /build_gdal_version_changing/usr/include && mv /build/usr/bin /build_gdal_version_changing/usr && for i in /build_gdal_version_changing/usr/lib/; do strip -s $i 2>/dev/null || /bin/true; done && for i in /build_gdal_version_changing/usr/bin/; do strip -s $i 2>/dev/null || /bin/true; done && (for i in /build/usr/share/gdal/bag*.xml /build/usr/share/gdal/.svg /build/usr/share/gdal/.png /build/usr/share/gdal/gmlas* /build/usr/share/gdal/netcdf_config.xsd ;do rm $i; done) && apk del cmake" did not complete successfully: exit code: 1
2024/05/18 08:41:02 containers.go:53: failed to build gdal container: exit status 1

@dirkschut
Copy link

I also have this issue when running it in windows:

executor failed running [/bin/sh -c if test "${GDAL_VERSION}" = "master"; then         export GDAL_VERSION=$(curl -Ls https://api.github.com/repos/${GDAL_REPOSITORY}/commits/HEAD -H "Accept: application/vnd.github.VERSION.sha");         export GDAL_RELEASE_DATE=$(date "+%Y%m%d");     fi     && apk add --no-cache cmake     && if test "x${GDAL_BUILD_IS_RELEASE}" = "x"; then         export GDAL_SHA1SUM=${GDAL_VERSION};     fi     && if test "${RSYNC_REMOTE}" != ""; then         echo "Downloading cache...";         rsync -ra ${RSYNC_REMOTE}/gdal/$(uname -m)/ $HOME/;         echo "Finished";         export CC="ccache gcc";         export CXX="ccache g++";         mkdir -p "$HOME/.ccache";         ccache -M 1G;     fi     && mkdir gdal     && wget -q https://github.com/${GDAL_REPOSITORY}/archive/${GDAL_VERSION}.tar.gz -O -         | tar xz -C gdal --strip-components=1     && cd gdal     && mkdir build     && cd build     && cmake ..         -DCMAKE_INSTALL_PREFIX=/usr         -DCMAKE_BUILD_TYPE=Release         -DGDAL_USE_TIFF_INTERNAL=ON         -DGDAL_USE_GEOTIFF_INTERNAL=ON     && make -j$(nproc)     && make install DESTDIR="/build"     && cd ..     && if test "${RSYNC_REMOTE}" != ""; then         ccache -s;         echo "Uploading cache...";         rsync -ra --delete $HOME/.ccache ${RSYNC_REMOTE}/gdal/$(uname -m)/;         echo "Finished";         rm -rf $HOME/.ccache;         unset CC;         unset CXX;     fi     && cd ..     && rm -rf gdal     && mkdir -p /build_gdal_version_changing/usr/include     && mv /build/usr/lib
       /build_gdal_version_changing/usr     && mv /build/usr/include/gdal_version.h /build_gdal_version_changing/usr/include     && mv /build/usr/bin                    /build_gdal_version_changing/usr     && for i in /build_gdal_version_changing/usr/lib/*; do strip -s $i 2>/dev/null || /bin/true; done     && for i in /build_gdal_version_changing/usr/bin/*; do strip -s $i 2>/dev/null || /bin/true; done     && (for i in             /build/usr/share/gdal/bag*.xml             /build/usr/share/gdal/*.svg             /build/usr/share/gdal/*.png             /build/usr/share/gdal/gmlas*             /build/usr/share/gdal/netcdf_config.xsd        ;do rm $i; done)    && apk del cmake]: exit code: 1
2024/06/08 14:31:24 containers.go:53: failed to build gdal container: exit status 1

@dirkschut
Copy link

Did you ever find a workaround/fix for this @Mikec78660 ?

@Mikec78660
Copy link
Author

Nope.

@sarranetor
Copy link

I have same Issue .. didn't manage to fix it yet..

@dirkschut
Copy link

That's unfortunate. Makes this project completely useless...

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

3 participants