File tree 2 files changed +11
-9
lines changed 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
ARG version=3.8
2
2
FROM python:${version}
3
3
4
+ WORKDIR /workspace
5
+ RUN pip install --upgrade pip \
6
+ && apt-get update \
7
+ && apt-get install -y \
8
+ freetds-dev \
9
+ && rm -rf /var/lib/apt/lists/*
4
10
WORKDIR /workspace
5
11
ARG version=3.8
6
12
COPY requirements/${version}.txt requirements.txt
Original file line number Diff line number Diff line change 1
- PYTHON_VERSIONS = 3.6 3.7 3.8
1
+ PYTHON_VERSIONS = 3.6 3.7 3.8 3.9
2
2
REQUIREMENTS = $(addprefix requirements/,${PYTHON_VERSIONS:=.txt})
3
3
TESTS = $(addprefix tests/,${PYTHON_VERSIONS})
4
4
IMAGES = $(addprefix image/,${PYTHON_VERSIONS})
5
- ARCH = $(shell arch)
6
- ifeq (${ARCH}, arm64)
7
- RUN = docker run --rm -it --platform linux/amd64
8
- else
9
- RUN = docker run --rm -it
10
- endif
5
+ RUN = docker run --rm -it
6
+
11
7
.PHONY : docs
12
8
13
9
# Default target
@@ -38,8 +34,8 @@ ${IMAGES} : image/% : requirements/%.txt
38
34
tests : ${TESTS}
39
35
40
36
${TESTS} : tests/% : image/%
41
- ${RUN} -v /var/run/docker.sock:/var/run/docker.sock testcontainers-python:$* bash -c \
42
- " flake8 && pytest -v ${ARGS} "
37
+ ${RUN} -v /var/run/docker.sock:/var/run/docker.sock testcontainers-python:$* \
38
+ bash -c " flake8 && pytest -v ${ARGS} "
43
39
44
40
# Target to build the documentation
45
41
You can’t perform that action at this time.
0 commit comments