Skip to content

Commit

Permalink
Fix binary generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Jun 14, 2023
1 parent 0b09368 commit 4357ef9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
@@ -1,6 +1,6 @@
FROM python:3.10

RUN mkdir -p /opt/src
RUN mkdir -p /opt/src/dist

WORKDIR /opt/src

Expand All @@ -9,11 +9,10 @@ RUN python -m pip install --upgrade pip && \
apt-get update && \
apt-get install -y scons patchelf

ENV PATH="/opt/src/.venv/bin:${PATH}"\
PYTHONPATH="/opt/src:${PYTHONPATH}"

COPY poetry.lock /opt/src
COPY pyproject.toml /opt/src
COPY README.md /opt/src
COPY sagemaker_shim /opt/src/sagemaker_shim
COPY tests /opt/src/tests

RUN poetry config virtualenvs.in-project true && \
poetry install --no-interaction --no-ansi --no-root
RUN poetry install --no-interaction --no-ansi
2 changes: 0 additions & 2 deletions Makefile
Expand Up @@ -3,9 +3,7 @@
build:
docker build -t sagemaker_shim .
docker run \
-v $(shell readlink -f ./sagemaker_shim/):/opt/src/sagemaker_shim/ \
-v $(shell readlink -f ./dist/):/opt/src/dist/ \
-v $(shell readlink -f ./tests/):/opt/src/tests/ \
--rm \
sagemaker_shim \
bash -c "poetry run make -C dist clean && poetry run make -C dist release"
2 changes: 1 addition & 1 deletion dist/Makefile
@@ -1,4 +1,4 @@
TEST_VERSION=$(shell python -c "from tests import __version__;print(__version__)")
TEST_VERSION=$(shell python3 -c "from tests import __version__;print(__version__)")
RELEASE_VERSION="$(shell poetry version -s)-$(shell uname -s)-$(shell uname -m)"
DIST_DIR=./dist

Expand Down

0 comments on commit 4357ef9

Please sign in to comment.