8000 GitHub - laur89/lean-dev
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

laur89/lean-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lean-dev

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.

Usage

use-prebuilt image (recommended)

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 me. As Docker stopped offering free build time, I've migrated image creation to private stack. Sorry.

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.

build yourself

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0