Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my edits ily #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions 04-containers/solutions/ilayda/exercise1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3.9-slim

## Install click 7.1.2 uisng pip from PyPI
RUN pip install click==7.1.2

## set working directory to /opt
WORKDIR /opt

## Copy the app.py file to /opt
COPY app.py /opt

## Make app.py executeable
RUN chmod +x /opt/app.py

## Add app.py to the path
RUN export PATH=/opt:$PATH

## Run the application
CMD ["python", "/opt/app.py", "--name", "ilayda"]
1 change: 1 addition & 0 deletions 04-containers/solutions/ilayda/exercise1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ilayda typing nicely
17 changes: 17 additions & 0 deletions 04-containers/solutions/ilayda/exercise1/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import click

@click.command()
@click.option('--name', default='ilayda', help='Name of the participant.')
@click.version_option(version='1.1.0')
def main(name):
"""
A demo App for BIOS259: The Art of Reproducible Science
https://github.com/asntech/bios259-a24

Author: Aziz Khan <[email protected]>
"""

print(f"Hello, {name}!\nWelcome to BIOS259 – The Art of Reproducible Science")

if __name__ == "__main__":
main()
Loading