Skip to content

Commit

Permalink
initial root dir setup
Browse files Browse the repository at this point in the history
  • Loading branch information
CheezItMan committed Aug 4, 2021
1 parent d04b804 commit b208e7f
Show file tree
Hide file tree
Showing 6 changed files with 27 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.

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

9 changes: 0 additions & 9 deletions test/test_helper.rb

This file was deleted.

File renamed without changes.

0 comments on commit b208e7f

Please sign in to comment.