Skip to content

Commit

Permalink
convert root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
CheezItMan committed Aug 6, 2021
1 parent 2b69cc3 commit eadbb70
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 71 deletions.
40 changes: 25 additions & 15 deletions Dockerfile
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
10 changes: 0 additions & 10 deletions Gemfile

This file was deleted.

36 changes: 0 additions & 36 deletions Gemfile.lock

This file was deleted.

9 changes: 0 additions & 9 deletions Rakefile

This file was deleted.

8 changes: 8 additions & 0 deletions requirements.txt
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
3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

rake
pytest -vv

0 comments on commit eadbb70

Please sign in to comment.