Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.06 KB

readme.md

File metadata and controls

49 lines (34 loc) · 1.06 KB

Docker image for local development

Build development docker image

# Assuming the current folder to be code-generator source root folder
cd docker
docker build --tag pytorchignite/codegenerator:dev .
cd ../

Run the image as a container

Assumptions:

  • $PWD is code-generator source root folder
  • To replace /host/path/to/data with a path to the input data (for example CIFAR10 and/or VOCdevkit etc), e.g. /mnt/data
# Assuming the current folder to be code-generator source root folder
docker run --name=codegen-dev -it -v $PWD:/code -w /code -v /host/path/to/data:/data --network=host --ipc=host pytorchignite/codegenerator:dev /bin/bash

Inside the container we can install all other project dependencies:

git config --global --add safe.directory /code

pnpm i --frozen-lockfile --color
pnpm build

bash scripts/run_code_style.sh install
  • Local app deployment
pnpm dev
  • Run ci tests locally
pnpm dev &
pnpm test

sh ./scripts/run_tests.sh unzip
sh ./scripts/run_tests.sh simple vision-classification