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

Maintainance/docker dev env #32

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

FROM --platform=linux/amd64 ghcr.io/talusbio/nf-encyclopedia:latest
RUN apt update && apt install default-jdk-headless git docker -y
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Have you tried used the version of the JRE that is installed in the production image?

We build on top of the official EncyclopeDIA image, which uses the openjdk:8-jre as their base image. I don't know if the JRE version will work with NextFlow, but it might be worth checking.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ENV JAVA_HOME=/usr/lib/jvm/java-1*-openjdk-amd64
ENV PATH="/usr/bin:$PATH"
RUN export -n _JAVA_OPTIONS
RUN unset _JAVA_OPTIONS ; cd /bin && curl -s https://get.nextflow.io | bash

8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"build": { "dockerfile": "Dockerfile" },

"customizations": {
"vscode": {}
}
Comment on lines +4 to +6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: What does this customization do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a placeholder for vscode plugins .... can be removed
Nontheless, the whole impact of this PR is reduced by #35

}