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

Local dev fixes #171

Merged
merged 5 commits into from
Nov 13, 2024
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
24 changes: 13 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ FROM python:3.11.8-slim-bullseye
# Allow statements and log messages to immediately appear in the logs
ENV PYTHONUNBUFFERED True

# Don't create .pyc files
ENV PYTHONDONTWRITEBYTECODE True

# Put our application on the PYTHONPATH
ENV PYTHONPATH /app

Expand All @@ -13,9 +16,6 @@ ENV PYTHONPATH /app
# test dependencies.
ARG DEVEL=no

# Copy local code to the container image.
WORKDIR /app

# Install System level requirements, this is done before everything else
# because these are rarely ever going to change.
RUN set -x \
Expand All @@ -27,15 +27,17 @@ RUN set -x \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install pycdc and pycdas...
RUN git clone "https://github.com/zrax/pycdc.git"

WORKDIR ./pycdc
RUN cmake .
RUN cmake --build . --config release
RUN mv ./pycdc /usr/local/bin
RUN mv ./pycdas /usr/local/bin
RUN rm -rf ./pycdc
WORKDIR /tmp
RUN git clone "https://github.com/zrax/pycdc.git" && \
cd pycdc && \
cmake . && \
cmake --build . --config release && \
mv ./pycdc /usr/local/bin && \
mv ./pycdas /usr/local/bin && \
cd .. && rm -rf ./pycdc

# Copy local code to the container image.
WORKDIR /app
# Copy in requirements files
COPY ./requirements ./requirements

Expand Down
4 changes: 2 additions & 2 deletions bin/reformat
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export LANG="${ENCODING:-en_US.UTF-8}"
# Print all the following commands
set -x

python -m isort inspector/
python -m black inspector/
python -m isort inspector/ tests/
python -m black inspector/ tests/
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
#db:
# image: postgres:10.1
Expand Down
Loading