-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b69cc3
commit eadbb70
Showing
6 changed files
with
35 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
# Starting from a minimalist image | ||
FROM ruby:2.7 | ||
# Reference for help contact me | ||
LABEL maintainer="[email protected]" | ||
# Install latest version of node | ||
FROM continuumio/anaconda3:latest | ||
|
||
# Create a directory for the app | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
sudo \ | ||
openssl \ | ||
libssl-dev libffi-dev \ | ||
--no-install-recommends | ||
|
||
# Create directory for app | ||
RUN mkdir /app | ||
|
||
# Set the working directory for RUN, ADD and COPY | ||
# Set as current directory for RUN, ADD, COPY commands | ||
WORKDIR /app | ||
|
||
# Add entire student fork (overwrites previously added files) | ||
ARG SUBMISSION_SUBFOLDER | ||
ADD $SUBMISSION_SUBFOLDER /app | ||
# Add to PATH | ||
ENV PATH /app:$PATH | ||
|
||
# Add requirements.txt from upstream | ||
ADD requirements.txt /app | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY ./Gemfile . | ||
RUN gem install bundler | ||
RUN bundle install | ||
# Add entire student fork (overwrites previously added package.json) | ||
ARG SUBMISSION_SUBFOLDER | ||
ADD $SUBMISSION_SUBFOLDER /app | ||
|
||
# Overwrite the script and test files | ||
# Overwrite files in student fork with upstream files | ||
ADD test.sh /app | ||
ADD test /app | ||
ADD tests /app/tests | ||
|
||
RUN chmod +x test.sh | ||
# User defined requirements | ||
# RUN make init |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
attrs==20.3.0 | ||
iniconfig==1.1.1 | ||
packaging==20.8 | ||
pluggy==0.13.1 | ||
py==1.10.0 | ||
pyparsing==2.4.7 | ||
pytest==6.2.1 | ||
toml==0.10.2 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
|
||
rake | ||
pytest -vv | ||
|