-
Notifications
You must be signed in to change notification settings - Fork 8
Add Docker image #80
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
Open
antlet
wants to merge
34
commits into
master
Choose a base branch
from
docker-image-updated-38(v2)
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Docker image #80
Changes from 12 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
152d1aa
Dockerfile working
3f3a412
Comment
c6d12c1
One more comment
c947e1a
Debugging
5734687
Fixed bug, docker working again (4/4/21)
0c0723c
Formatting
f50beab
updating main.yml
e98e18a
Push all edits to new branch. Automatically builds
9a8bfeb
Add documentation for docker run commands in main README
c41fb00
docker.readme
BaileyMatrascia 8cf6ab6
Merge docker fork to docker branch (#81)
enpuyou bb723ac
Correction to readme docker windows build
ahance27 3fc1413
Delete dockerbuild file
2665794
Change test.yml to main.yml
0cc8bc5
Merge branch 'master' into docker-image-updated-38(v2)
antlet b17c006
Fixed Dockerfile from fork
4987d59
Merge branch 'master' into docker-image-updated-38(v2)
noorbuchi 5f79d58
Fix path cuased by change of scipt names
enpuyou 2bf6c8b
Fix path in README due to file name changed
enpuyou 8afb127
Comment out the local image run commad
enpuyou 75e2100
Change port to 8501
enpuyou 5c4ad24
Correction to Python Version Comment
ahance27 e627698
Removed unnecessary comment
ahance27 b1fbce8
Change maintainer names
2091931
Corrections and Deletions to dockerfile
ahance27 1dfddc0
Delete comment
20eb753
Changes made regarding "EXPOSE 8501" Command
ahance27 7a15767
Numpy deletion in pipfile
ahance27 ac3c45a
Added mac scripts to main folder
ahance27 ee5bd89
Deleted docker scripts folder, scripts now in main folder
ahance27 21bf78b
Delete readme_docker.md
antlet 01ed646
Delete docker-build.yml
BennyWestsyde 2aa4b23
Merge branch 'master' into docker-image-updated-38(v2)
antlet c0e4422
Merge branch 'master' into docker-image-updated-38(v2)
corlettim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,37 @@ | ||
| name: Docker Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| docker: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Get current date | ||
| id: date | ||
| run: echo "::set-output name=date::$(date +'%m-%d-%Y')" | ||
|
|
||
| - name: Login to DockerHub | ||
| if: github.ref == 'refs/heads/master' | ||
| uses: docker/login-action@v1 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Convert Github Organization to Lowercase | ||
| run: echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV | ||
|
|
||
| - name: Build and push | ||
| id: docker_build | ||
| uses: docker/build-push-action@v2 | ||
| with: | ||
| push: true | ||
| tags: ${{ env.IMAGE_REPOSITORY }}:${{steps.date.outputs.date}} | ||
|
|
||
| - name: Image digest | ||
| run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains hidden or 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,37 @@ | ||
| name: Docker Build | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "*/60 */24 * * 0" | ||
| push: | ||
| branches: | ||
| - 'master' | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| docker: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Get current date | ||
| id: date | ||
| run: echo "::set-output name=date::$(date +'%m-%d-%Y')" | ||
| - | ||
| name: Login to DockerHub | ||
| if: github.ref == 'refs/heads/master' | ||
| uses: docker/login-action@v1 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - | ||
| name: Build and push | ||
| id: docker_build | ||
| uses: docker/build-push-action@v2 | ||
| with: | ||
| version: ${{steps.date.outputs.date}} | ||
| push: true | ||
| tags: bennywestsyde/gatorminer:${{steps.date.outputs.date}} | ||
| - | ||
| name: Image digest | ||
| run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| rules "~MD013" | ||
| rules "~MD013, ~MD033" |
This file contains hidden or 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 hidden or 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 hidden or 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,73 @@ | ||
| # Python 3.8 | ||
| FROM python:3.8 | ||
|
|
||
| EXPOSE 8501 | ||
|
|
||
| SHELL ["/bin/bash", "--login", "-c"] | ||
|
|
||
| LABEL version="0.1.0" | ||
|
|
||
| LABEL description="An automated text-mining tool written in Python to measure \ | ||
| the technical responsibility of students in computer science courses, being \ | ||
| used to analyze students' markdown reflection documents and five questions \ | ||
| survey based on Natural Language Processing in the Department of Computer \ | ||
| Science at Allegheny College." | ||
|
|
||
| LABEL maintainer="Group 5" | ||
antlet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # ENV LANG C.UTF-8 | ||
| # ENV LANGUAGE C.UTF-8 | ||
| # # ENV LC_ALL C.UTF-8 | ||
| # RUN groupadd -r student && \ | ||
| # useradd -m -r -g student -d /home/student -s /usr/sbin/nologin -c "student User" student && \ | ||
| # mkdir -p /home/student/workdir && \ | ||
| # chown -R student:student /home/student | ||
| # COPY . /home/student/GATORMINER/ | ||
ahance27 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| COPY . /gatorminer | ||
|
|
||
| WORKDIR /gatorminer | ||
|
|
||
| RUN set -e && echo "Installing Pipenv..." \ | ||
| && pip install pipenv \ | ||
| && echo "Installing dependencies..." \ | ||
| && pipenv install --dev --skip-lock \ | ||
| && echo "Installing SpaCy models..." \ | ||
| && pipenv run python -m spacy download en_core_web_sm \ | ||
| && pipenv run python -m spacy download en_core_web_md | ||
|
|
||
| # USER root | ||
|
|
||
| # RUN apt-get -y -qq update | ||
| # RUN apt-get install -y make build-essential python3-distutils python3-dev libssl-dev zlib1g-dev \ | ||
| # libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \ | ||
| # libncursesw5-dev xz-utils libffi-dev liblzma-dev python-openssl git curl file | ||
| # ENV HOME /home/student | ||
| # WORKDIR /home/student/GATORMINER | ||
| # VOLUME ["/home/student/GATORMINER"] | ||
|
|
||
| # VOLUME = /src/ | ||
| # RUN curl https://pyenv.run | bash | ||
| # ENV PATH="$HOME/.pyenv/bin:${PATH}" | ||
| # RUN export PATH="$HOME/.pyenv/bin:${PATH}" | ||
| # RUN echo 'alias python="python3.9"' >> ~/.profile | ||
| # RUN echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc | ||
| # RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc | ||
| # RUN echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc | ||
| # RUN /bin/bash -c "source ~/.bashrc" | ||
| # RUN /bin/bash -c "source ~/.profile" | ||
| # RUN pyenv install 3.9.2 | ||
| # RUN pyenv global 3.9.2 | ||
| # RUN pyenv local 3.9.2 | ||
| # RUN /bin/bash --login | ||
| # RUN curl https://bootstrap.pypa.io/get-pip.py -o ~/get-pip.py | ||
| # RUN pyenv exec python ~/get-pip.py | ||
| # RUN pyenv exec python -m pip install pipenv | ||
| # RUN pyenv exec pipenv run python -m pip install Cython wheel setuptools watchdog | ||
| # RUN pyenv exec pipenv install --skip-lock --dev | ||
| # RUN pyenv exec pipenv run spacy download en_core_web_sm | ||
| # USER student | ||
| # ENV USER student | ||
| # CMD pyenv exec pipenv run streamlit run streamlit_web.py | ||
antlet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| CMD ["pipenv", "run", "streamlit", "run", "streamlit_web.py"] | ||
antlet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.