Skip to content

Commit 65f373a

Browse files
authored
Local dev fixes (#171)
1 parent aa89ec9 commit 65f373a

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

Dockerfile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ FROM python:3.11.8-slim-bullseye
55
# Allow statements and log messages to immediately appear in the logs
66
ENV PYTHONUNBUFFERED True
77

8+
# Don't create .pyc files
9+
ENV PYTHONDONTWRITEBYTECODE True
10+
811
# Put our application on the PYTHONPATH
912
ENV PYTHONPATH /app
1013

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

16-
# Copy local code to the container image.
17-
WORKDIR /app
18-
1919
# Install System level requirements, this is done before everything else
2020
# because these are rarely ever going to change.
2121
RUN set -x \
@@ -27,15 +27,17 @@ RUN set -x \
2727
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2828

2929
# Install pycdc and pycdas...
30-
RUN git clone "https://github.com/zrax/pycdc.git"
31-
32-
WORKDIR ./pycdc
33-
RUN cmake .
34-
RUN cmake --build . --config release
35-
RUN mv ./pycdc /usr/local/bin
36-
RUN mv ./pycdas /usr/local/bin
37-
RUN rm -rf ./pycdc
30+
WORKDIR /tmp
31+
RUN git clone "https://github.com/zrax/pycdc.git" && \
32+
cd pycdc && \
33+
cmake . && \
34+
cmake --build . --config release && \
35+
mv ./pycdc /usr/local/bin && \
36+
mv ./pycdas /usr/local/bin && \
37+
cd .. && rm -rf ./pycdc
3838

39+
# Copy local code to the container image.
40+
WORKDIR /app
3941
# Copy in requirements files
4042
COPY ./requirements ./requirements
4143

bin/reformat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export LANG="${ENCODING:-en_US.UTF-8}"
1010
# Print all the following commands
1111
set -x
1212

13-
python -m isort inspector/
14-
python -m black inspector/
13+
python -m isort inspector/ tests/
14+
python -m black inspector/ tests/

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.9"
21
services:
32
#db:
43
# image: postgres:10.1

0 commit comments

Comments
 (0)