-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* batch compute env for automated model training revised batch setup for model training terraform black and flake8 code checks using AWS base image using aws tensorflow base image, cleaner script org for model training modified for batch deploy more flexible for parallel batch compute jobs modified job defs for batch model training fixed minor bugs fixed certs error, using ubuntu base image apt install awscli instead of pip, removed user fix for installing awscli noninteractively install awscli using curl update argparsing to allow single model training, fix kfold val bug black and flake8 formatting fixed typo set default options for main script save and upload models iteratively bugfix- iteratively save models using single jobdef for model training * bugfixes, updated to model-training image to python 3.9.5 and tensorflow 2.5.0 * black and flake8 * removed keras dependency, using tensorflow keras only
- Loading branch information
1 parent
90c7856
commit 63e7a47
Showing
11 changed files
with
5,213 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM library/ubuntu:20.04 | ||
#SSL/TLS cert setup for STScI AWS firewalling | ||
USER root | ||
ENV REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | ||
ENV CURL_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | ||
RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/pki/ca-trust/extracted/pem/ | ||
COPY certs/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | ||
RUN ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-bundle.crt && ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt && mkdir -p /etc/pki/ca-trust/extracted/openssl | ||
RUN DEBIAN_FRONTEND=noninteractive && NCORES=`nproc` && apt update && apt upgrade -y && apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev liblzma-dev curl unzip && wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz && tar -xf Python-3.9.5.tgz && cd Python-3.9.5 && ./configure --enable-optimizations && make -j $NCORES && make altinstall && update-alternatives --install /usr/local/bin/python python /usr/local/bin/python3.9 10 && cd ../ && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install | ||
|
||
WORKDIR /home/developer | ||
COPY requirements.txt ./ | ||
RUN python -m pip install --upgrade pip && python -m pip install -r requirements.txt && mkdir -p /home/developer/modeling | ||
ADD main.py io.py ingest.py train.py ./modeling/ | ||
CMD ["python", "-m", "modeling.main"] |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.