-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (31 loc) · 1.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: "3.9"
services:
dev:
build:
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
PYTHON_VERSION: ${PYTHON_VERSION:-3.11}
tags:
- &commit-tag ${CI_REGISTRY_IMAGE}/dev:${PYSPRY_TAG}
- ${CI_REGISTRY_IMAGE}/dev:${PYSPRY_BRANCH_TAG}
target: dev
x-bake:
cache-from:
- type=registry,ref=${CI_REGISTRY_IMAGE}/dev/cache:${PYSPRY_BRANCH_TAG}
- type=registry,ref=${CI_REGISTRY_IMAGE}/dev:${PYSPRY_BRANCH_TAG}
- type=registry,ref=python:${PYTHON_IMAGE_VERSION:-3.11}-slim
cache-to: type=registry,ref=${CI_REGISTRY_IMAGE}/dev/cache:${PYSPRY_BRANCH_TAG}
entrypoint: []
# by default, launch a container that does nothing
command: ["sh", "-c", "sleep infinity"]
environment:
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
image: *commit-tag
stdin_open: true
tty: true
volumes:
- .:/usr/local/src/pyspry
- ~/.gitconfig:/etc/gitconfig
- ~/.ssh/known_hosts:/home/app/.ssh/known_hosts
- ${SSH_AGENT_AUTH_SOCK:-/run/host-services/ssh-auth.sock}:/run/host-services/ssh-auth.sock