Any commit on this repo causes build to be triggered in my private infra.
TODO: start using dependabot to bump CI build/update our baseimage ver whenever the LEAN foundation image is updated.
dockerhub builds an image in its pipeline: layr/lean-dev;
You may use this image instead of building yourself; note in this case the non-root
user is As Docker stopped offering free build time, I've migrated image
creation to private stack. Sorry.me
.
Example docker-compose
usage:
services:
dev:
image: layr/lean-dev:latest
working_dir: $LEAN_MOUNT
container_name: lean-dev
environment:
- HOST_USER_ID=$UID
- HOST_GROUP_ID=$GID
- LEAN_MOUNT
- IBKR_MOUNT
- IBKR_AUTO
ports:
- "2223:22"
volumes:
- ./:${LEAN_MOUNT}:cached
- ../Lean.Brokerages.InteractiveBrokers:${IBKR_MOUNT}:cached
- ../IBAutomater:${IBKR_AUTO}:cached
tty: true
Note env vars
LEAN_MOUNT
IBKR_MOUNT
IBKR_AUTO
need to be provided by.env
file, or manually defined in docker-compose.
Use it from your docker-compose
as follows in order to build the image yourself:
services:
dev:
build:
context: ./lean-dev
args:
USERNAME: $USERNAME
working_dir: $LEAN_MOUNT
container_name: lean-dev
environment:
- HOST_USER_ID=$UID
- HOST_GROUP_ID=$GID
- LEAN_MOUNT
- IBKR_MOUNT
- IBKR_AUTO
ports:
- "2223:22"
volumes:
- ./:${LEAN_MOUNT}:cached
- ../Lean.Brokerages.InteractiveBrokers:${IBKR_MOUNT}:cached
- ../IBAutomater:${IBKR_AUTO}:cached
tty: true
Note the env vars
USERNAME
LEAN_MOUNT
IBKR_MOUNT
IBKR_AUTO
need to be provided by.env
file, or manually defined in docker-compose.