-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from apiad/feature/pyenv
Update dev environment
- Loading branch information
Showing
7 changed files
with
79 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
version: "3" | ||
|
||
services: | ||
auditorium: | ||
image: docker.pkg.github.com/apiad/auditorium/auditorium:latest | ||
build: "." | ||
volumes: | ||
- "./:/code" | ||
command: make test | ||
auditorium-tester: | ||
container_name: auditorium-tester-${PYTHON_VERSION} | ||
image: docker.pkg.github.com/apiad/auditorium/auditorium:${PYTHON_VERSION} | ||
build: | ||
context: "." | ||
args: | ||
PYTHON_VERSION: ${PYTHON_VERSION} | ||
volumes: | ||
- "./:/code" | ||
command: make dev-test-full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
FROM python:3.6 | ||
# ===================== | ||
# Generic build system | ||
# --------------------- | ||
|
||
ARG PYTHON_VERSION | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
RUN echo Building image for Python:${PYTHON_VERSION} | ||
|
||
# ========================================== | ||
# Project-specific installation instruction | ||
# ------------------------------------------ | ||
|
||
WORKDIR /code | ||
COPY pyproject.toml poetry.lock makefile /code/ | ||
|
||
ENV BUILD_ENVIRONMENT="development" | ||
ENV XDG_CACHE_HOME="/opt/venv/cache" | ||
ENV XDG_CACHE_HOME="/opt/dev/cache" | ||
|
||
# Use system's Python for installing dev tools | ||
RUN make dev-install | ||
|
||
COPY . /code | ||
|
||
VOLUME [ "/opt/venv" ] | ||
CMD bash | ||
VOLUME [ "/opt/dev" ] | ||
CMD [ "bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters