-
Notifications
You must be signed in to change notification settings - Fork 69
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
d2c1e69
commit 8ef2b41
Showing
13 changed files
with
172 additions
and
114 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
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
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,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get clean | ||
apt-get update | ||
apt-get install -y wget pandoc texlive-xetex texlive-fonts-recommended texlive-plain-generic \ | ||
build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev libgit2-dev texlive-lang-chinese | ||
|
||
# install conda | ||
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \ | ||
then wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh \ | ||
-O /autograder/source/miniconda_install.sh ; \ | ||
else wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
-O /autograder/source/miniconda_install.sh ; \ | ||
fi | ||
chmod +x /autograder/source/miniconda_install.sh | ||
/autograder/source/miniconda_install.sh -b | ||
echo "export PATH=/root/miniconda3/bin:\$PATH" >> /root/.bashrc | ||
|
||
export PATH=/root/miniconda3/bin:$PATH | ||
export TAR="/bin/tar" | ||
|
||
# install dependencies with conda | ||
conda env create -f /autograder/source/environment.yml | ||
|
||
# set conda shell | ||
conda init --all |
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,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get clean | ||
apt-get update | ||
apt-get install -y wget pandoc texlive-xetex texlive-fonts-recommended texlive-plain-generic \ | ||
build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev libgit2-dev texlive-lang-chinese | ||
apt-get install -y libnlopt-dev cmake libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev \ | ||
apt-utils libpoppler-cpp-dev libavfilter-dev libharfbuzz-dev libfribidi-dev imagemagick \ | ||
libmagick++-dev pandoc texlive-xetex texlive-fonts-recommended texlive-plain-generic \ | ||
build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev libgit2-dev texlive-lang-chinese \ | ||
libxft-dev | ||
|
||
# install conda | ||
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \ | ||
then wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh \ | ||
-O /autograder/source/miniconda_install.sh ; \ | ||
else wget -nv https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
-O /autograder/source/miniconda_install.sh ; \ | ||
fi | ||
chmod +x /autograder/source/miniconda_install.sh | ||
/autograder/source/miniconda_install.sh -b | ||
echo "export PATH=/root/miniconda3/bin:\$PATH" >> /root/.bashrc | ||
|
||
export PATH=/root/miniconda3/bin:$PATH | ||
export TAR="/bin/tar" | ||
|
||
# install dependencies with conda | ||
conda env create -f /autograder/source/environment.yml | ||
conda run -n otter-env Rscript /autograder/source/requirements.r | ||
|
||
# set conda shell | ||
conda init --all | ||
|
||
# install ottr; not sure why it needs to happen twice but whatever | ||
conda run -n otter-env Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/ottr/ottr_1.1.5.tar.gz", dependencies=TRUE, repos=NULL)' |
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
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
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,4 +1,5 @@ | ||
sphinx_markdown_tables | ||
sphinx-book-theme==0.1.7 | ||
sphinx-book-theme==0.3.3 | ||
sphinxcontrib-apidoc | ||
sphinx-click | ||
jinja2 |
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
Oops, something went wrong.