Skip to content

Commit

Permalink
Local dev fixes (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Nov 13, 2024
1 parent aa89ec9 commit 65f373a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
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

0 comments on commit 65f373a

Please sign in to comment.