-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toml-installation): removes unnecessary codes adds toml installa…
…tion with python build
- Loading branch information
1 parent
753b25f
commit bf92aea
Showing
27 changed files
with
223 additions
and
3,511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
repos: | ||
# Versioning | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.29.0 | ||
hooks: | ||
- id: commitizen | ||
stages: [commit-msg] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.5.7" | ||
hooks: | ||
|
||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
|
||
- id: ruff-format | ||
|
||
- repo: https://github.com/pycontribs/mirrors-prettier | ||
rev: v3.3.3 | ||
hooks: | ||
- id: prettier | ||
args: [--ignore-unknown, --no-error-on-unmatched-pattern] | ||
|
||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.41.0 | ||
hooks: | ||
- id: markdownlint | ||
args: [--fix, --ignore, CHANGELOG.md] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,38 @@ | ||
ARG PYTHON_VERSION=3.10 | ||
## For dev: | ||
## docker build -t osmsg . | ||
## docker run --rm -v $(pwd)/osmsg:/app/osmsg --name osmsg-container osmsg | ||
|
||
ARG PYTHON_VERSION=3.11 | ||
|
||
# Build stage | ||
FROM docker.io/python:${PYTHON_VERSION}-slim-bookworm AS build-stage | ||
|
||
RUN apt-get update -y && apt-get install -y --no-install-recommends \ | ||
build-essential cmake libboost-dev \ | ||
libexpat1-dev zlib1g-dev libbz2-dev \ | ||
&& apt-get autoremove -y && apt-get clean | ||
|
||
# Copy project files | ||
WORKDIR /app | ||
|
||
COPY osmsg /app/osmsg | ||
COPY pyproject.toml /app/pyproject.toml | ||
COPY README.md /app/README.md | ||
COPY data /app/data | ||
|
||
# Install the package | ||
RUN pip install -e . | ||
|
||
# Final stage | ||
FROM docker.io/python:${PYTHON_VERSION}-slim-bookworm | ||
|
||
RUN apt-get update -y && apt-get autoremove -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
cmake \ | ||
gdal-bin \ | ||
libgdal-dev \ | ||
libboost-dev \ | ||
python3-gdal \ | ||
osmium-tool | ||
COPY --from=build-stage /usr/local /usr/local | ||
# COPY --from=build-stage /usr/local/osmium /usr/l/osmium | ||
|
||
# ENV PATH="/usr/bin/osmium:${PATH}" | ||
|
||
ENV PATH="/osmium/bin:${PATH}" | ||
WORKDIR /app | ||
|
||
RUN pip install osmsg | ||
COPY --from=build-stage /app /app | ||
|
||
CMD ["/bin/bash"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.