Skip to content

Commit

Permalink
Small fixes, include missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
j9ac9k committed Dec 14, 2023
1 parent f019c63 commit 8b6d598
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
18 changes: 10 additions & 8 deletions workshop/create_iamge.sh → workshop/create_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export ROOT_DIR="$PWD/PDAL Workshop Materials"
mkdir -p "$ROOT_DIR"

# grab PDAL repo
git clone -n --depth=1 https://github.com/PDAL/PDAL
git clone --depth=1 https://github.com/PDAL/PDAL

# build pdal docs
conda create -n "pdal-docs" python=3.11 --yes --quiet
Expand Down Expand Up @@ -42,6 +42,8 @@ cp data/workshop/TM_551_101.laz \
mkdir -p "$ROOT_DIR/exercises/analysis/clipping"
cp data/workshop/autzen.laz \
PDAL/doc/workshop/manipulation/clipping/clipping.json \
PDAL/doc/workshop/manipulation/clipping/attributes.json \
PDAL/doc/workshop/manipulation/clipping/attributes.vrt \
"$ROOT_DIR/exercises/analysis/clipping/"


Expand Down Expand Up @@ -92,15 +94,15 @@ cp data/workshop/interesting.las "$ROOT_DIR/exercises/translation"
mkdir -p "$ROOT_DIR/exercises/info"
cp data/workshop/interesting.las "$ROOT_DIR/exercises/info/"

curl --output-dir "$ROOT_DIR/software/windows" -C - -OL --create-dirs https://download.qgis.org/downloads/QGIS-OSGeo4W-3.32.2-1.msi
curl --output-dir "$ROOT_DIR/software/windows" -C - -OL --create-dirs https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
curl --output-dir "$ROOT_DIR/software/windows" -C - -OL --create-dirs https://qgis.org/downloads/QGIS-OSGeo4W-3.34.1-2.msi
curl --output-dir "$ROOT_DIR/software/windows" -C - -OL --create-dirs https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe
curl --output-dir "$ROOT_DIR/software/windows" -C - -OL --create-dirs https://github.com/jqlang/jq/releases/download/jq-1.7/jq-windows-amd64.exe
curl --output-dir "$ROOT_DIR/software/windows" -C - -OL --create-dirs https://www.danielgm.net/cc/release/CloudCompare_v2.13.beta_setup_x64.exe

# grab macOS Installers
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://download.qgis.org/downloads/macos/qgis-macos-pr.dmg
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-arm64.sh
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-x86_64.sh
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://github.com/jqlang/jq/releases/download/jq-1.7/jq-macos-amd64
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://github.com/jqlang/jq/releases/download/jq-1.7/jq-macos-arm64
curl --output-dir "$ROOT_DIR/software/macOS" -C - -OL --create-dirs https://www.danielgm.net/cc/release/CloudCompare-2.13.0-x86_64.dmg
Expand All @@ -121,7 +123,7 @@ mkdir -p "$ROOT_DIR/software/conda_environments"
# NOTE: need to do this for x86_64
mkdir docker
cd docker
docker image build -t pdal-workshop data/workshop/docker
docker image build -t pdal-workshop ../data/workshop/docker
docker save -o pdal-workshop_docker-arm64.tar.gz pdal-workshop
cd ..
cp "docker/pdal-workshop_docker*.tar.gz" "$ROOT_DIR/software/conda_environments/"
Expand All @@ -132,5 +134,5 @@ mkdir -p staging/conda_environments
mamba env create --file "$PWD/PDAL/doc/workshop/environment.yml" -p "$PWD/staging/conda_environments" --yes --quiet
conda-pack -p staging/conda_environments -o "$ROOT_DIR/software/conda_environments/pdal-workshop_osx-arm64.tar.gz" -f



CONDA_SUBDIR=osx-64 mamba env create --file "$PWD/PDAL/doc/workshop/environment.yml" -p "$PWD/staging/conda_environments" --yes --quiet
conda-pack -p staging/conda_environments -o "$ROOT_DIR/software/conda_environments/pdal-workshop_osx-x86_64.tar.gz" -f
4 changes: 2 additions & 2 deletions workshop/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge:latest as build
FROM condaforge/miniforge3:latest as build
MAINTAINER Howard Butler <[email protected]>

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
Expand All @@ -19,4 +19,4 @@ FROM debian:bookworm-slim AS runtime
COPY --from=build /venv /venv

SHELL ["/bin/bash", "-c"]
ENTRYPOINT source /venv/bin/activate
ENTRYPOINT source /venv/bin/activate
2 changes: 1 addition & 1 deletion workshop/docker/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- python=3.11
- pdal=2.5.6
- pdal=2.6.2
- python-pdal
- gdal
- untwine
Expand Down

0 comments on commit 8b6d598

Please sign in to comment.