Skip to content

Commit

Permalink
update directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Dec 8, 2024
1 parent cb5aca0 commit 6ea7e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions environments/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL url="https://osmnx.readthedocs.io"
LABEL description="OSMnx is a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap."

# copy the package files needed for installation
COPY --chmod=0755 ./environments/docker-test/requirements.txt ./osmnx/
COPY --chmod=0755 ./environments/docker/requirements.txt ./osmnx/
COPY --chmod=0755 ./osmnx/ ./osmnx/osmnx/
COPY --chmod=0755 ./pyproject.toml ./osmnx/
COPY --chmod=0755 ./README.md ./osmnx/
Expand All @@ -23,7 +23,7 @@ RUN conda update --yes -c conda-forge --strict-channel-priority -n base mamba &&
ipython -c "import osmnx; print('OSMnx version', osmnx.__version__)"

# copy default jupyterlab settings, then set jupyter working directory to map to mounted volume
COPY --chmod=0755 ./environments/docker-test/overrides.json /opt/conda/share/jupyter/lab/settings/
COPY --chmod=0755 ./environments/docker/overrides.json /opt/conda/share/jupyter/lab/settings/
WORKDIR /home/jovyan/work

# set default command to launch when container is run
Expand Down
2 changes: 1 addition & 1 deletion environments/docker/docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
docker login
docker buildx build --no-cache --pull --load --platform=linux/arm64 -f environments/docker-test/Dockerfile -t gboeing/osmnx:test .
docker buildx build --no-cache --pull --load --platform=linux/arm64 -f environments/docker/Dockerfile -t gboeing/osmnx:test .
IMPORTED_VERSION=$(docker run --rm gboeing/osmnx:test /bin/bash -c "ipython -c \"import osmnx; print(osmnx.__version__)\"")
echo "Imported $IMPORTED_VERSION"

0 comments on commit 6ea7e39

Please sign in to comment.