Last active
May 27, 2021 02:20
-
-
Save micahmelling/d02ae214e9b9d1f9ac783494e703540a to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# create directories | |
mkdir data | |
mkdir helpers | |
mkdir modeling | |
mkdir scratch | |
mkdir tests | |
mkdir utilities | |
# create files | |
touch data/data.py | |
touch data/__init__.py | |
touch helpers/constants.py | |
touch helpers/helpers.py | |
touch helpers/__init__.py | |
touch modeling/config.py | |
touch modeling/pipeline.py | |
touch modeling/model.py | |
touch modeling/evaluate.py | |
touch modeling/explain.py | |
touch modeling/train.py | |
touch modeling/__init__.py | |
touch utilities/explore.py | |
touch requirements.txt | |
touch readme.md | |
touch buildspec.yml | |
touch main.py | |
# create Dockerfile | |
echo "FROM python:3.6 | |
MAINTAINER Micah Melling, micahmelling@gmail.com | |
RUN groupadd docker | |
RUN useradd --create-home appuser | |
RUN usermod -aG docker appuser | |
RUN newgrp docker | |
RUN mkdir /app | |
WORKDIR /app | |
COPY . /app | |
RUN chown -R appuser:docker /app | |
USER appuser | |
RUN pip install --no-cache-dir -r requirements.txt | |
ENTRYPOINT ["python3"] | |
" > Dockerfile | |
# create stock .gitignore | |
echo "*.txt | |
!requirements.txt | |
*.pyc | |
*.csv | |
*.xlsx | |
*.png | |
*.jpeg | |
*.db | |
*.pkl | |
*.dot | |
*.DS_Store | |
.idea/ | |
__pycache__/ | |
venv/ | |
scratch.py | |
scratch/ | |
create_ml_project_structure.sh | |
" > .gitignore | |
# create a virtual environment | |
python3 -m venv venv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment