Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7395e56
Add yoc-attribute
Ylannl Dec 8, 2024
fd44473
use ahn5 tiles in as_downloaded
Ylannl Dec 9, 2024
fd95e2e
Merge pull request #124 from 3DBAG/roofer-config/yoc-attribute
balazsdukai Dec 9, 2024
e3a3fab
Merge pull request #125 from 3DBAG/ahn5-as-downloaded
balazsdukai Dec 9, 2024
7c72903
fastssd
balazsdukai Dec 9, 2024
bbbe314
env name
balazsdukai Dec 9, 2024
50bab2a
env name
balazsdukai Dec 9, 2024
7fce933
env name
balazsdukai Dec 9, 2024
bc73508
env name
balazsdukai Dec 9, 2024
adb5f82
Revert "env name"
balazsdukai Dec 9, 2024
7ccf40a
env name
balazsdukai Dec 9, 2024
dd7528a
env name
balazsdukai Dec 9, 2024
412c50c
fix syntax error
Ylannl Dec 9, 2024
cd62acf
log roofer toml file
Ylannl Dec 10, 2024
c692029
convert posixpath to str
Ylannl Dec 10, 2024
f43bcc2
remove log of toml contents
Ylannl Dec 10, 2024
563d8b3
ruff fix
balazsdukai Dec 10, 2024
31c8935
Merge pull request #126 from 3DBAG/ahn5-as-downloaded
balazsdukai Dec 10, 2024
aac8e5a
set cj-scale to 0.001
Ylannl Dec 11, 2024
226e6c5
Update images
balazsdukai Dec 12, 2024
acb0ca0
Merge remote-tracking branch 'origin/pc-2024.12.06' into pc-2024.12.06
balazsdukai Dec 12, 2024
e8927ab
Parameterize container name
balazsdukai Dec 12, 2024
7438cca
Remove amd platform from data-postgresql
balazsdukai Dec 12, 2024
7d96fdb
Fix healthchecks
balazsdukai Dec 12, 2024
07f9946
Fix env vars in docker
balazsdukai Dec 12, 2024
99f9fec
capitalise AHN in attribute names, add AHN5 attributes
Ylannl Dec 13, 2024
5cc3a52
Capitalized AHN in webservice_lod
GinaStavropoulou Dec 13, 2024
2de9a7d
missing attributes in floor_estimation
GinaStavropoulou Dec 13, 2024
11b3bf5
Update tools image
balazsdukai Dec 13, 2024
8c4110c
GH action tools builder
balazsdukai Dec 13, 2024
d904127
update images
Ylannl Dec 14, 2024
b1f8f07
increase tyler n threads
Ylannl Dec 14, 2024
0aa928b
update images
Ylannl Dec 14, 2024
a85359b
change back tools image date
Ylannl Dec 14, 2024
d5291a1
bump geoflow-bundle version
Ylannl Dec 14, 2024
176b150
fixed attributes
GinaStavropoulou Dec 16, 2024
ac9a079
missing /
GinaStavropoulou Dec 17, 2024
6bfeed4
logging
GinaStavropoulou Dec 17, 2024
b8e55f5
logging
GinaStavropoulou Dec 17, 2024
6afd5e4
validate update
GinaStavropoulou Dec 17, 2024
7d507e7
AppImage
GinaStavropoulou Dec 17, 2024
99913de
gdal in input
GinaStavropoulou Dec 17, 2024
6ae0a83
removed context log
GinaStavropoulou Dec 17, 2024
3158650
mmissing comma
GinaStavropoulou Dec 19, 2024
287aa2d
merge
GinaStavropoulou Dec 19, 2024
db5cbb0
Merge pull request #136 from 3DBAG/pc-2024.12.06
balazsdukai Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/build-docker-tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Publish The Tools Docker Image

on:
push:
tags:
- '*'
branches:
- "develop"
- "pc-*"
paths:
- docker/tools/Dockerfile
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set docker image tag
run: echo "DOCKER_TAG=$(date +'%Y.%m.%d')" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push tools image
uses: docker/build-push-action@v6
with:
context: ./
file: ./docker/tools/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
build-args: |
JOBS=2
VERSION=${{ env.DOCKER_TAG }}
push: true
tags: 3dgi/3dbag-pipeline-tools:${{ env.DOCKER_TAG }}

7 changes: 4 additions & 3 deletions docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ TEMP_CONTAINER="${COMPOSE_PROJECT_NAME}-temp-container"
# Dagster instance configuration
DAGSTER_HOME="/opt/dagster/dagster_home"
DAGSTER_SERVER_PORT=3003
DAGSTER_POSTGRES_USER="postgres_user"
DAGSTER_POSTGRES_PASSWORD="postgres_password"
DAGSTER_POSTGRES_DB="postgres_db"
DAGSTER_POSTGRES_USER="dagster"
DAGSTER_POSTGRES_PASSWORD="dagster_pwd"
DAGSTER_POSTGRES_DB="dagster"

# 3dbag-pipeline resource configuration
DAGSTER_ENVIRONMENT="test"
BAG3D_FILESTORE="/data/volume"
BAG3D_FILESTORE_FASTSSD="/data/volume"
BAG3D_RELEASE_VERSION="develop"
BAG3D_FLOORS_ESTIMATION_MODEL="/data/volume/model/pipeline_model1_gbr_untuned.joblib"
BAG3D_TEST_DATA="/data/volume"
Expand Down
73 changes: 53 additions & 20 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ services:
# and event log storage.
dagster-postgresql:
image: postgres:16
container_name: bag3d-dagster-postgresql
container_name: bag3d-dagster-postgresql-${BAG3D_DOCKER_IMAGE_TAG}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d ${DAGSTER_POSTGRES_DB} -U ${DAGSTER_POSTGRES_USER}" ]
interval: 3s
retries: 10
environment:
POSTGRES_USER: $DAGSTER_POSTGRES_USER
POSTGRES_PASSWORD: $DAGSTER_POSTGRES_PASSWORD
Expand All @@ -23,14 +27,11 @@ services:
- pg_pswd=$BAG3D_PG_PASSWORD
- pg_db=$BAG3D_PG_DATABASE
command: ["-c", "shared_buffers=8GB", "-c", "max_connections=200", "-c", "work_mem=30MB", "-c", "logging_collector=on", "-c", "log_statement=all", "-c", "log_directory=/var/log/postgresql/"]
platform: linux/amd64
container_name: bag3d-data-postgresql
container_name: bag3d-data-postgresql-${BAG3D_DOCKER_IMAGE_TAG}
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${BAG3D_PG_DATABASE}"]
test: ["CMD-SHELL", "pg_isready -d ${BAG3D_PG_DATABASE} -U {BAG3D_PG_USER}"]
interval: 3s
retries: 10
start_period: 30s
timeout: 10s
retries: 20
shm_size: '1gb'
ports:
- "${BAG3D_PG_PORT_ON_HOST}:5432"
Expand Down Expand Up @@ -62,9 +63,14 @@ services:
dockerfile: docker/pipeline/bag3d-core.dockerfile
args:
- VERSION=develop
container_name: 3dbag-pipeline-core
image: 3dbag-pipeline-core:${BAG3D_DOCKER_IMAGE_TAG}
pull_policy: build
container_name: 3dbag-pipeline-core-${BAG3D_DOCKER_IMAGE_TAG}
# the port is built into the image
healthcheck:
test: ["CMD-SHELL", "dagster api grpc-health-check -p 4000"]
interval: 2s
retries: 10
restart: always
environment:
DAGSTER_CURRENT_IMAGE: "3dbag-pipeline-core:${BAG3D_DOCKER_IMAGE_TAG}"
Expand Down Expand Up @@ -106,9 +112,14 @@ services:
dockerfile: docker/pipeline/bag3d-floors-estimation.dockerfile
args:
- VERSION=develop
container_name: 3dbag-pipeline-floors-estimation
image: 3dbag-pipeline-floors-estimation:${BAG3D_DOCKER_IMAGE_TAG}
pull_policy: build
container_name: 3dbag-pipeline-floors-estimation-${BAG3D_DOCKER_IMAGE_TAG}
# the port is built into the image
healthcheck:
test: [ "CMD-SHELL", "dagster api grpc-health-check -p 4001" ]
interval: 2s
retries: 10
restart: always
environment:
DAGSTER_CURRENT_IMAGE: "3dbag-pipeline-floors-estimation:${BAG3D_DOCKER_IMAGE_TAG}"
Expand Down Expand Up @@ -137,15 +148,21 @@ services:
- action: rebuild
path: ../packages/floors_estimation/pyproject.toml
target: /opt/3dbag-pipeline/packages/floors_estimation/pyproject.toml

bag3d-party-walls:
build:
context: ../
dockerfile: docker/pipeline/bag3d-party-walls.dockerfile
args:
- VERSION=develop
container_name: 3dbag-pipeline-party-walls
image: 3dbag-pipeline-party-walls:${BAG3D_DOCKER_IMAGE_TAG}
pull_policy: build
container_name: 3dbag-pipeline-party-walls-${BAG3D_DOCKER_IMAGE_TAG}
# the port is built into the image
healthcheck:
test: [ "CMD-SHELL", "dagster api grpc-health-check -p 4002" ]
interval: 2s
retries: 10
restart: always
environment:
DAGSTER_CURRENT_IMAGE: "3dbag-pipeline-party-walls:${BAG3D_DOCKER_IMAGE_TAG}"
Expand Down Expand Up @@ -183,6 +200,7 @@ services:
context: ./dagster
image: 3dgi/3dbag-pipeline-dagster:${BAG3D_DOCKER_IMAGE_TAG}
pull_policy: build
container_name: bag3d-dagster-webserver-${BAG3D_DOCKER_IMAGE_TAG}
entrypoint:
- dagster-webserver
- -h
Expand All @@ -191,7 +209,6 @@ services:
- "3000"
- -w
- workspace.yaml
container_name: bag3d-dagster-webserver
expose:
- "3000"
ports:
Expand All @@ -204,10 +221,18 @@ services:
networks:
- bag3d-network
depends_on:
- dagster-postgresql
- bag3d-core
- bag3d-floors-estimation
- bag3d-party-walls
dagster-postgresql:
condition: service_healthy
restart: true
bag3d-core:
condition: service_healthy
restart: true
bag3d-floors-estimation:
condition: service_healthy
restart: true
bag3d-party-walls:
condition: service_healthy
restart: true

# This service runs the dagster-daemon process, which is responsible for taking runs
# off of the queue and launching them, as well as creating runs from schedules or sensors.
Expand All @@ -216,10 +241,10 @@ services:
context: ./dagster
image: 3dgi/3dbag-pipeline-dagster:${BAG3D_DOCKER_IMAGE_TAG}
pull_policy: build
container_name: bag3d-dagster-daemon-${BAG3D_DOCKER_IMAGE_TAG}
entrypoint:
- dagster-daemon
- run
container_name: bag3d-dagster-daemon
restart: on-failure
env_file:
- ./.env
Expand All @@ -229,10 +254,18 @@ services:
networks:
- bag3d-network
depends_on:
- dagster-postgresql
- bag3d-core
- bag3d-floors-estimation
- bag3d-party-walls
dagster-postgresql:
condition: service_healthy
restart: true
bag3d-core:
condition: service_healthy
restart: true
bag3d-floors-estimation:
condition: service_healthy
restart: true
bag3d-party-walls:
condition: service_healthy
restart: true

volumes:
bag3d-data-postgresql:
Expand Down
5 changes: 2 additions & 3 deletions docker/pipeline/bag3d-core.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 3dgi/3dbag-pipeline-tools:2024.12.06 AS develop
FROM 3dgi/3dbag-pipeline-tools:2024.12.14 AS develop
ARG BAG3D_PIPELINE_LOCATION=/opt/3dbag-pipeline

LABEL org.opencontainers.image.authors="Balázs Dukai <[email protected]>"
Expand All @@ -20,7 +20,6 @@ RUN --mount=type=cache,target=/root/.cache/uv \
--python $VIRTUAL_ENV/bin/python

COPY . $BAG3D_PIPELINE_LOCATION
COPY ./docker/.env $BAG3D_PIPELINE_LOCATION/.env

# Install the workflow package
RUN --mount=type=cache,target=/root/.cache/uv \
Expand All @@ -32,4 +31,4 @@ EXPOSE 4000

# CMD allows this to be overridden from run launchers or executors that want
# to run other commands against your repository
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4000", "-m", "bag3d.core.code_location", "--inject-env-vars-from-instance"]
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4000", "-m", "bag3d.core.code_location"]
5 changes: 2 additions & 3 deletions docker/pipeline/bag3d-floors-estimation.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 3dgi/3dbag-pipeline-tools:2024.12.06 AS develop
FROM 3dgi/3dbag-pipeline-tools:2024.12.14 AS develop
ARG BAG3D_PIPELINE_LOCATION=/opt/3dbag-pipeline

LABEL org.opencontainers.image.authors="Balázs Dukai <[email protected]>"
Expand All @@ -20,7 +20,6 @@ RUN --mount=type=cache,target=/root/.cache/uv \
--python $VIRTUAL_ENV/bin/python

COPY . $BAG3D_PIPELINE_LOCATION
COPY ./docker/.env $BAG3D_PIPELINE_LOCATION/.env

# Install the workflow package
RUN --mount=type=cache,target=/root/.cache/uv \
Expand All @@ -32,4 +31,4 @@ EXPOSE 4001

# CMD allows this to be overridden from run launchers or executors that want
# to run other commands against your repository
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4001", "-m", "bag3d.floors_estimation.code_location", "--inject-env-vars-from-instance"]
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4001", "-m", "bag3d.floors_estimation.code_location"]
5 changes: 2 additions & 3 deletions docker/pipeline/bag3d-party-walls.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 3dgi/3dbag-pipeline-tools:2024.12.06 AS develop
FROM 3dgi/3dbag-pipeline-tools:2024.12.14 AS develop
ARG BAG3D_PIPELINE_LOCATION=/opt/3dbag-pipeline

LABEL org.opencontainers.image.authors="Balázs Dukai <[email protected]>"
Expand Down Expand Up @@ -33,7 +33,6 @@ RUN --mount=type=cache,target=/root/.cache/uv \
--python $VIRTUAL_ENV/bin/python

COPY . $BAG3D_PIPELINE_LOCATION
COPY ./docker/.env $BAG3D_PIPELINE_LOCATION/.env

# Install the workflow package
RUN --mount=type=cache,target=/root/.cache/uv \
Expand All @@ -45,4 +44,4 @@ EXPOSE 4002

# CMD allows this to be overridden from run launchers or executors that want
# to run other commands against your repository
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4002", "-m", "bag3d.party_walls.code_location", "--inject-env-vars-from-instance"]
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4002", "-m", "bag3d.party_walls.code_location"]
14 changes: 7 additions & 7 deletions docker/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ FROM roofer AS geoflow-old
ARG JOBS=2
ARG BAG3D_PIPELINE_LOCATION=/opt/3dbag-pipeline

COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /usr/local/bin/geof $BAG3D_PIPELINE_LOCATION/tools/bin/geof
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /export /export
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /usr/local/src/FileGDB/lib/. /usr/local/src/FileGDB/lib
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /usr/local/lib/libfgdbunixrtl.so /usr/local/lib/libfgdbunixrtl.so
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /usr/local/lib/LASlib /export/usr/local/lib/
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /usr/local/lib/gdalplugins /export/usr/local/lib/
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.04 /usr/local/lib/geoflow-plugins/. $BAG3D_PIPELINE_LOCATION/tools/share/geoflow-bundle/plugins
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /usr/local/bin/geof $BAG3D_PIPELINE_LOCATION/tools/bin/geof
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /export /export
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /usr/local/src/FileGDB/lib/. /usr/local/src/FileGDB/lib
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /usr/local/lib/libfgdbunixrtl.so /usr/local/lib/libfgdbunixrtl.so
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /usr/local/lib/LASlib /export/usr/local/lib/
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /usr/local/lib/gdalplugins /export/usr/local/lib/
COPY --link --from=3dgi/geoflow-bundle-builder:2024.12.16 /usr/local/lib/geoflow-plugins/. $BAG3D_PIPELINE_LOCATION/tools/share/geoflow-bundle/plugins
ENV GF_PLUGIN_FOLDER=$BAG3D_PIPELINE_LOCATION/tools/share/geoflow-bundle/plugins

RUN echo /export/usr/local/lib >> /etc/ld.so.conf.d/geoflow.conf; \
Expand Down
Loading
Loading