Skip to content

Commit

Permalink
fix(r): remove wrong spark/hadoop config (#162)
Browse files Browse the repository at this point in the history
* fix(r): remove wrong spark/hadoop config

* fix typo

* fix typo
  • Loading branch information
avouacr authored Dec 4, 2023
1 parent 03c91d3 commit 9e12a74
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main-workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
shell: bash

- name: Build and load to the Docker client
if: ${{ matrix.gpu != 'true' || inputs.branch == 'refs/heads/dev' }}
if: ${{ matrix.gpu != 'true' }}
uses: docker/build-push-action@v5
with:
load: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build and push Docker images
on:
workflow_dispatch:
schedule:
# every monday at 2am
- cron: '0 1 * * 1'

jobs:
Expand Down
9 changes: 7 additions & 2 deletions dev/build-chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"jupyter-pytorch": ["base", "python-minimal", "python-pytorch", "jupyter"],
"jupyter-tensorflow": ["base", "python-minimal", "python-tensorflow", "jupyter"],
"jupyter-pyspark": ["base", "python-minimal", "spark", "jupyter"],
"vscode": ["base", "python-minimal", "python-datascience", "vscode"],
"vscode-python": ["base", "python-minimal", "python-datascience", "vscode"],
"vscode-minimal": ["base", "python-minimal", "vscode"],
"r-python-julia": ["base", "r-minimal", "r-python-julia"],
"vscode-r-python-julia": ["base", "r-minimal", "r-python-julia", "vscode"]
Expand Down Expand Up @@ -49,7 +49,12 @@
else:
device_suffix = ""

cmd = ["docker", "build", image, "-t", image,
if i < len(chain) - 1:
tag = image
else:
tag = f"inseefrlab/onyxia-{chain}:dev"

cmd = ["docker", "build", image, "-t", tag,
"--build-arg", f"BASE_IMAGE={previous_image}",
"--build-arg", f"DEVICE_SUFFIX={device_suffix}"]
print(" ".join(cmd))
Expand Down
7 changes: 1 addition & 6 deletions r-datascience/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ LABEL maintainer="InseeFrLab <[email protected]>"
USER root

# Install additional libraries and R packages for datascience
RUN napt-get update && \
apt-get install -y --no-install-recommends \
language-pack-fr \
libsecret-1-dev && \
# Install quarto
/opt/install-quarto.sh && \
RUN /opt/install-quarto.sh && \
# Install Shiny Server
/rocker_scripts/install_shiny_server.sh && \
# Install packages bundles from rocker
Expand Down
2 changes: 0 additions & 2 deletions scripts/onyxia-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ if command -v R; then
echo -e "SPARK_HOME=$SPARK_HOME" >> ${R_HOME}/etc/Renviron.site
echo -e "HADOOP_HOME=$HADOOP_HOME" >> ${R_HOME}/etc/Renviron.site
echo -e "HADOOP_OPTIONAL_TOOLS=$HADOOP_OPTIONAL_TOOLS" >> ${R_HOME}/etc/Renviron.site
echo -e "PATH=$JAVA_HOME/bin:$SPARK_HOME/bin:$HADOOP_HOME/bin:$PATH" >> /etc/environment
echo -e "export PATH=$JAVA_HOME/bin:$SPARK_HOME/bin:$HADOOP_HOME/bin:$PATH" >> /etc/profile
if [[ -e "/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64" ]]; then
echo -e "JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64" >> ${R_HOME}/etc/Renviron.site
fi
Expand Down

0 comments on commit 9e12a74

Please sign in to comment.