Skip to content
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

Develop #73

Merged
merged 5 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions jupyter-eiaspatial-notebook/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ RUN echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee
sudo apt-get install libssl1.1 -y

RUN cd /tmp && \
wget https://download2.rstudio.org/server/focal/amd64/rstudio-server-2023.09.0-463-amd64.deb && \
sudo gdebi -n rstudio-server-2023.09.0-463-amd64.deb
wget https://download2.rstudio.org/server/focal/amd64/rstudio-server-2024.09.0-375-amd64.deb && \
sudo gdebi -n rstudio-server-2024.09.0-375-amd64.deb

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

Expand Down Expand Up @@ -91,13 +91,10 @@ RUN cp -r /opt/DSSAT/v4.8.1.40/dssat-csm-data/* /opt/DSSAT/v4.8.1.40
RUN sed -i 's,/usr/local,opt/DSSAT/v4.8.1.40,g' /opt/DSSAT/v4.8.1.40/DSSATPRO.L48
RUN chown -R jovyan:users /opt/DSSAT/v4.8.1.40/*

## ApsimX
RUN sudo apt-get update && sudo apt-get install libsqlite3-dev dotnet-sdk-6.0 -y

RUN cd /opt/ && \
sudo git clone https://github.com/APSIMInitiative/ApsimX && \
sudo chown -R jovyan:users /opt/ApsimX/. && \
sudo dotnet build -c Release ./ApsimX/ApsimX.sln
# ApsimX
RUN sudo apt-get update && sudo apt-get install libsqlite3-dev dotnet-sdk-6.0 gtk-sharp3 libgtksourceview-4-0 zenity -y
COPY ./apsim-7592.deb ./apsim-7592.deb
RUN sudo dpkg -i apsim-7592.deb

### Jupyter extensions & plugins installation
RUN pip install aquirdturtle_collapsible_headings
Expand All @@ -124,7 +121,7 @@ RUN sudo Rscript packages.R
### Python packages installation
RUN conda install -c conda-forge --file requirements.txt -y

RUN rm packages.R requirements.txt
RUN rm packages.R requirements.txt packages_test.R apsim-7592.deb

### Copying .bashrc of default $HOME directory to /opt
RUN sudo cp .bashrc /opt/
Expand Down
Binary file added jupyter-eiaspatial-notebook/jammy/apsim-7592.deb
Binary file not shown.
2 changes: 1 addition & 1 deletion jupyter-eiaspatial-notebook/jammy/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ devtools::install_github(c("CIAT-DAPA/analogues",
"SantanderMetGroup/convertR",
"SantanderMetGroup/climate4R.indices",
"bakaburg1/BaySREn",
"femiguez/apsimx"), configure.args="Ncpus = 4")
"femiguez/apsimx"))
68 changes: 68 additions & 0 deletions jupyter-eiaspatial-notebook/jammy/packages_test.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This is just for testing if the R packages have been installed
# How to run: source(packages_test.R)

library('devtools')
library('raster')
library('shapefiles')
library('ncdf4')
library('terra')
library('geodata')
library('spatstat.geom')
library('ggmap')
library('rgee')
library('leaflet')
library('dismo')
library('gdalUtilities')
library('circlize')
library('diagis')
library('ggnewscale')
library('lmerTest')
library('lme4')
library('metafor')
library('metan')
library('pbapply')
library('FactoMineR')
library('doParallel')
library('ggpubr')
library('broom')
library('mlr3')
library('RInside')
library('doSNOW')
library('Microsoft365R')
library('googleCloudStorageR')
library('circular')
library('miceadds')
library('multimode')
library('sfsmisc')
library('rJava')
library('R.utils',)
library('reshape2')
library('rworldxtra')
library('RCurl')
library('tidyverse')
library('ranger')
library('sodium')
library('pals')
library('ggcorrplot')
library('aws.s3')
library('agricolae')
library('xlsx')
library('ecmwfr')
library('Hmisc')
library('envirem')
library('maps')
library('dplyr')
library('DSSAT')
library('rworldmap')

library("analogues")
library("loadeR.java")
library("climate4R.UDG")
library("loadeR")
library("transformeR")
library("visualizeR")
library("downscaleR")
library("convertR")
library("climate4R.indices")
library("BaySREn")
library("apsimx")
Loading