Skip to content

Commit

Permalink
Merge pull request #140 from uc-cdis/feat/nextflow-welcome
Browse files Browse the repository at this point in the history
MIDRC-465 Nextflow workspace: add welcome page
  • Loading branch information
smvgarcia authored Dec 11, 2023
2 parents a6e6dc3 + f751e68 commit 9fa8e8c
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_jupyter_nextflow_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Push Jupyter-Nextflow image
on:
push:
paths:
- jupyter-nextflow/Dockerfile
- jupyter-nextflow
- .github/workflows/build_jupyter_nextflow_image.yml

jobs:
Expand Down
4 changes: 4 additions & 0 deletions jupyter-nextflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ COPY --chown=jovyan:users resources/jupyter_notebook_config.py /home/$NB_USER/.j
RUN cat /home/$NB_USER/.jupyter/tmp.py >> /home/$NB_USER/.jupyter/jupyter_notebook_config.py && rm /home/$NB_USER/.jupyter/tmp.py

RUN mamba install -yc bioconda nextflow==22.10.6

# welcome page
ADD --chown=jovyan:users nextflow-welcome.html /home/$NB_USER/
RUN touch /home/$NB_USER/nextflow-welcome.html
59 changes: 59 additions & 0 deletions jupyter-nextflow/nextflow-welcome.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!doctype html>
<html lang=en>
<title>Nextflow Workspace</title>
<link href="https://fonts.googleapis.com/icon?family=Source+Sans+Pro"
rel=stylesheet>
<style>
body {
font-family: "Source Sans Pro", sans-serif;
background: #f5f5f5;
margin: 0;
padding: 0 20px 20px 20px;
font-size: 14px;
line-height: 1.6em;
letter-spacing: .02rem
}

h1.header {
margin: 20px 10px 16px;
border-bottom: solid #421c52 2px;
font-size: 32px;
font-weight: 600;
line-height: 2em;
letter-spacing: 0;
color: #000
}

.content {
padding: 10px
}
</style>
<h1 class=header>Welcome to the Nextflow Workspace</h1>
<div class=content>
<p><strong>This is your personal workspace. The "pd" folder represents your
persistent drive:</strong></p>
<ul>
<li>The files you save here will still be available when you come back
after terminating your workspace session.
<li>Any personal files outside of this folder will be lost.
</ul>
<h2 class=header>Get started with Nextflow</h2>
<p>If you are new to Nextflow, visit <a
href=https://www.nextflow.io>nextflow.io</a> for detailed information.
</p>
<p>This workspace is set up to run Nextflow workflows in AWS Batch. Your
Nextflow configuration must include the Batch queue, IAM role ARN and work
directory that were created for you automatically. The sample configuration
file will allow you to run simple workflows and can be adapted to your
needs. To get started:
</p>
<ul>
<li>Open a new "Launcher" tab and open a terminal.
<li>You can find your sample configuration file in the "data" directory.
Copy it to a new "nextflow.config" file by running this command in the
terminal: <code>cp
./data/sample-nextflow-config.txt ./nextflow.config</code>
<li>Launch a Hello World workflow by running this command in the terminal:
<code>nextflow run hello</code>
</ul>
</div>

0 comments on commit 9fa8e8c

Please sign in to comment.