From 3fa6904088d3c291ba30450f7ea57b0a77c8f9b0 Mon Sep 17 00:00:00 2001 From: Ali Zaidi <41302741+azaidi06@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:47:52 -0500 Subject: [PATCH] removed jenkinsfile and entire docker folder (#1535) Co-authored-by: Ludovico Bianchi --- Jenkinsfile | 148 ---------------------------- docker/README.md | 1 - docker/idaes-jupyterhub/Dockerfile | 50 ---------- docker/idaes-jupyterhub/README.md | 10 -- docker/ubuntu-conda/Dockerfile | 35 ------- docker/ubuntu-conda/README-build.md | 10 -- docker/ubuntu-conda/README.md | 12 --- 7 files changed, 266 deletions(-) delete mode 100644 Jenkinsfile delete mode 100644 docker/README.md delete mode 100644 docker/idaes-jupyterhub/Dockerfile delete mode 100644 docker/idaes-jupyterhub/README.md delete mode 100644 docker/ubuntu-conda/Dockerfile delete mode 100644 docker/ubuntu-conda/README-build.md delete mode 100644 docker/ubuntu-conda/README.md diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index a4dac7f486..0000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,148 +0,0 @@ -/* -############################################################################### -# The Institute for the Design of Advanced Energy Systems Integrated Platform -# Framework (IDAES IP) was produced under the DOE Institute for the -# Design of Advanced Energy Systems (IDAES). -# -# Copyright (c) 2018-2023 by the software owners: The Regents of the -# University of California, through Lawrence Berkeley National Laboratory, -# National Technology & Engineering Solutions of Sandia, LLC, Carnegie Mellon -# University, West Virginia University Research Corporation, et al. -# All rights reserved. Please see the files COPYRIGHT.md and LICENSE.md -# for full copyright and license information. -############################################################################### - -This file defines the build/test/post steps for Jenkins. - -Dependencies: failed-test-email.template // This parses the output of Jenkins and formats the email that Jenkins sends -*/ - -def email_to = "idaes.jenkins@lbl.gov" // The email address that the build email will go to -def email_reply_to = "mrshepherd@lbl.gov" // The email address that will be in the reply-to - -pipeline { - agent { - docker { - image 'conda/miniconda3-centos7:latest' - } - } - stages { - // Commented out for an example until we start using these parameters - // stage('cron-nightly-test') { - // when { - // expression { params.BUILD_SCHEDULE == 'Nightly'} - // } - // steps { - // sh 'echo "nightly works"' - // } - // } - // stage('cron-weekly-test') { - // when { - // expression { params.BUILD_SCHEDULE == 'Weekly'} - // } - // steps { - // sh 'echo "weekly works"' - // } - // } - stage('root-setup') { - steps { - // slackSend (message: "Build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") - sh 'mkdir -p $JENKINS_HOME/email-templates' - sh 'cp failed-test-email.template $JENKINS_HOME/email-templates' - sh 'yum install -y gcc g++ git gcc-gfortran libboost-dev make' - sh 'pwd' - - } - } - stage('3.6-setup') { - when { - expression { params.PYTHON_VERSION == '3.6'} - } - steps { - sh ''' - conda create -n idaes3.6 python=3.6 pytest - source activate idaes3.6 - pip install -r requirements-dev.txt --user jenkins - export TEMP_LC_ALL=$LC_ALL - export TEMP_LANG=$LANG - export LC_ALL=en_US.utf-8 - export LANG=en_US.utf-8 - python setup.py install - idaes get-extensions - export LC_ALL=$TEMP_LC_ALL - export LANG=$TEMP_LANG - source deactivate - ''' - } - } - stage('3.7-setup') { - when { - expression { params.PYTHON_VERSION == '3.7'} - } - steps { - sh ''' - conda create -n idaes3.7 python=3.7 pytest - source activate idaes3.7 - pip install -r requirements-dev.txt --user jenkins - export TEMP_LC_ALL=$LC_ALL - export TEMP_LANG=$LANG - export LC_ALL=en_US.utf-8 - export LANG=en_US.utf-8 - python setup.py install - idaes get-extensions - export LC_ALL=$TEMP_LC_ALL - export LANG=$TEMP_LANG - source deactivate - ''' - } - } - stage('3.6-test') { - when { - expression { params.PYTHON_VERSION == '3.6'} - } - steps { - catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { - sh ''' - source activate idaes3.6 - pylint -E --ignore-patterns="test_.*" idaes || true - pytest --junitxml=results.xml -c pytest.ini idaes - source deactivate - ''' - } - } - } - stage('3.7-test') { - when { - expression { params.PYTHON_VERSION == '3.7'} - } - steps { - catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { - sh ''' - source activate idaes3.7 - pylint -E --ignore-patterns="test_.*" idaes || true - pytest --junitxml=results.xml -c pytest.ini idaes - source deactivate - ''' - } - } - } - } - post { - always { - junit allowEmptyResults: true, testResults: 'results.xml' - emailext attachLog: true, body: '''${SCRIPT, template="failed-test-email.template"}''', replyTo: '${email_reply_to}', - subject: "${JOB_NAME} ${params.PYTHON_VERSION} - Build ${BUILD_NUMBER} ${currentBuild.result}", to: '${email_to}' - } - // success { - // slackSend (color: '#00FF00', message: "SUCCESSFUL - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") - // emailext attachLog: true, body: "${currentBuild.result}: ${BUILD_URL}", compressLog: true, replyTo: 'mrshepherd@lbl.gov', - // subject: "Build Log: ${JOB_NAME} - Build ${BUILD_NUMBER} ${currentBuild.result}", to: 'mrshepherd@lbl.gov' - // } - - // failure { - // slackSend (color: '#FF0000', message: "FAILED - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") - // emailext attachLog: true, body: "${currentBuild.result}: ${env.BUILD_URL}", compressLog: true, replyTo: 'mrshepherd@lbl.gov', - // subject: "Build Log: ${env.JOB_NAME} - Build ${env.BUILD_NUMBER} ${currentBuild.result}", to: 'mrshepherd@lbl.gov' - // } - } -} diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index ed27323fdf..0000000000 --- a/docker/README.md +++ /dev/null @@ -1 +0,0 @@ -Various IDAES related docker containers live here, each in their own subdir. diff --git a/docker/idaes-jupyterhub/Dockerfile b/docker/idaes-jupyterhub/Dockerfile deleted file mode 100644 index 3ecf922a0e..0000000000 --- a/docker/idaes-jupyterhub/Dockerfile +++ /dev/null @@ -1,50 +0,0 @@ -# This Dockerfile is adapted (with modifications) from this Dockerfile: -# https://github.com/jupyter/docker-stacks/blob/master/scipy-notebook/Dockerfile - -ARG BASE_CONTAINER=jupyter/minimal-notebook -FROM $BASE_CONTAINER - -MAINTAINER Project IDAES - -USER $NB_UID - -# Install Python 3 packages -RUN conda install --quiet --yes 'ipywidgets' 'xlrd' && \ - # Activate ipywidgets extension in the environment that runs the notebook server - jupyter nbextension enable --py widgetsnbextension --sys-prefix && \ - # Also activate ipywidgets extension for JupyterLab - # Check this URL for most recent compatibilities - # https://github.com/jupyter-widgets/ipywidgets/tree/master/packages/jupyterlab-manager - jupyter labextension install @jupyter-widgets/jupyterlab-manager && \ - npm cache clean --force && \ - rm -rf $CONDA_DIR/share/jupyter/lab/staging && \ - rm -rf /home/$NB_USER/.cache/yarn && \ - rm -rf /home/$NB_USER/.node-gyp && \ - fix-permissions $CONDA_DIR && \ - fix-permissions /home/$NB_USER - -# Maintainer Note: We're using bokeh for plotting (not matplotlib). Uncomment if matplotlib needed. -# Import matplotlib the first time to build the font cache. -# ENV XDG_CACHE_HOME /home/$NB_USER/.cache/ -# RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \ -# fix-permissions /home/$NB_USER - -# Add top-level idaes source directory and change permissions to the notebook user: -ADD . /home/idaes -USER root -RUN sudo apt-get update -RUN sudo apt-get -y install libgfortran3 -RUN echo "America/Los_Angeles" > /etc/timezone -RUN chown -R $NB_UID /home/idaes - -# Install idaes requirements.txt -USER $NB_UID -WORKDIR /home/idaes -RUN pip install -r requirements-dev.txt -RUN python setup.py install -RUN idaes get-extensions - -WORKDIR /home -ENV PATH=$PATH:/home/jovyan/.idaes/bin -ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jovyan/.idaes/lib:/opt/conda/lib/ -USER $NB_UID \ No newline at end of file diff --git a/docker/idaes-jupyterhub/README.md b/docker/idaes-jupyterhub/README.md deleted file mode 100644 index 2217fe80ed..0000000000 --- a/docker/idaes-jupyterhub/README.md +++ /dev/null @@ -1,10 +0,0 @@ -[![docker pulls](https://img.shields.io/docker/pulls/idaes/jupyterhub.svg)](https://hub.docker.com/r/idaes/jupyterhub/) [![docker stars](https://img.shields.io/docker/stars/idaes/jupyterhub.svg)](https://hub.docker.com/r/idaes/jupyterhub/) [![image metadata](https://images.microbadger.com/badges/image/idaes/jupyterhub.svg)](https://microbadger.com/images/idaes/jupyterhub "idaes/jupyterhub image metadata") - -## IDAES PSE image for jupyterhub - -This container is used for automated test of the IDAES PSE Framework. - -Please visit the documentation site for help using and contributing to this image and others. - -* [IDAES PSE on ReadTheDocs](https://idaes-pse.readthedocs.io/en/stable/) -* [Docker container build instruction](https://github.com/IDAES/idaes-dev/wiki/Building-Docker-image) (private link) diff --git a/docker/ubuntu-conda/Dockerfile b/docker/ubuntu-conda/Dockerfile deleted file mode 100644 index c21bd9c2f0..0000000000 --- a/docker/ubuntu-conda/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM ubuntu:18.04 -MAINTAINER IDAES Tech Team - -ARG IUSER=idaes - -RUN echo "\n____ INSTALL PACKAGES ___\n" \ - && apt-get -qq update \ - && apt-get -qq -y upgrade \ - && apt-get -qq -y install curl bzip2 locales \ - && apt-get -qq -y install build-essential libgfortran4 liblapack-dev \ - && apt-get -qq -y install openssh-client git \ - && apt-get -qq -y autoremove \ - && apt-get autoclean \ - && rm -rf /var/lib/apt/lists/* /var/log/dpkg.log - -RUN echo "\n___ SET LOCALE AND TIMEZONE ___\n" \ - && echo "Etc/UTC" > /etc/timezone \ - && update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8 - -RUN useradd --no-log-init --create-home --shell /bin/bash $IUSER - -USER $IUSER -WORKDIR /home/$IUSER -ENV PATH=/home/$IUSER/.idaes/bin:/home/$IUSER/miniconda3/bin:$PATH:/home/$IUSER/.local/bin - -RUN echo "\n___ INSTALL CONDA ___\n" \ - && curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \ - -o /tmp/miniconda.sh \ - && bash /tmp/miniconda.sh -bf \ - && rm -rf /tmp/miniconda.sh - -RUN echo "\n___ CREATE BASE CONDA ENV ___\n" \ - && conda install -y python=3 \ - && conda update conda \ - && conda clean --all --yes diff --git a/docker/ubuntu-conda/README-build.md b/docker/ubuntu-conda/README-build.md deleted file mode 100644 index 8ec7ce7271..0000000000 --- a/docker/ubuntu-conda/README-build.md +++ /dev/null @@ -1,10 +0,0 @@ -# Instructions for building the Dockerfile - -Last updated: 5/15/2020 - -Current tag (version) is 2.1 - -Commands: - - docker build . -t idaes/ubuntu18-conda:2.1 - docker push idaes/ubuntu18-conda:2.1 diff --git a/docker/ubuntu-conda/README.md b/docker/ubuntu-conda/README.md deleted file mode 100644 index e8b49626ec..0000000000 --- a/docker/ubuntu-conda/README.md +++ /dev/null @@ -1,12 +0,0 @@ -[![docker pulls](https://img.shields.io/docker/pulls/idaes/ubuntu18-conda.svg)](https://hub.docker.com/r/idaes/ubuntu18-conda/) [![docker stars](https://img.shields.io/docker/stars/idaes/ubuntu18-conda.svg)](https://hub.docker.com/r/idaes/ubuntu18-conda/) [![image metadata](https://images.microbadger.com/badges/image/idaes/ubuntu18-conda.svg)](https://microbadger.com/images/idaes/ubuntu18-conda "idaes/ubuntu18-conda image metadata") - -## About - -This directory is for an Ubuntu 18.04 container, used for -building and testing the code on CircleCI. - -## More help - -Please visit the documentation site for help using and contributing to this image and others. - -* [IDAES PSE on ReadTheDocs](https://idaes-pse.readthedocs.io/en/stable/)