Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Create Dockerfile and trainer.sh #8

Closed
wants to merge 4 commits into from
Closed

Conversation

tsa87
Copy link
Contributor

@tsa87 tsa87 commented Oct 5, 2020

trainer.sh takes in github url, oauth token as argument and clones a private repo
Dockerfile is based on Python 3.7 base image, and calls the trainer script

trainer.sh takes in github url, oauth token as argument and clones a private repo
Dockerfile is based on Python 3.7 base image, and calls the trainer script
@tsa87 tsa87 requested a review from coder46 October 5, 2020 17:00
@tsa87
Copy link
Contributor Author

tsa87 commented Oct 5, 2020

Addresses part of #5

r) git_url=${OPTARG};;
t) oauth_token=${OPTARG};;
p) project_name=${OPTARG};
esac
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question - are these options being read as environment variables ? for eg git_url should be read from $GIT_URL

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok fixed!

@tsa87 tsa87 closed this Oct 5, 2020
@tsa87 tsa87 deleted the setup-docker-file branch October 5, 2020 20:56

cd $project_name
pip install -r requirements.txt
python train.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets now take the model file to run as a relative path via environment variable $MODEL_PATH

@@ -0,0 +1,6 @@
FROM python:3.7-buster
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use ubuntu as base image ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also any specific reason for using 3.7-buster ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey I changed the base image to Ubuntu 20.04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants