Skip to content

Commit

Permalink
add node images
Browse files Browse the repository at this point in the history
  • Loading branch information
hughplay committed Sep 25, 2023
1 parent 0db806b commit e78cfa4
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/images-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- workspace_cuda_11_3
- workspace_cuda_11_7
- runtime_node_lts
- workspace_node_16
- workspace_node_18
- workspace_node_20
- workspace_pytorch_1_13
- workspace_pytorch_2_0
- workspace_protein
Expand Down
18 changes: 18 additions & 0 deletions dockerlab/templates/settting.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
"cuda": "",
"prebuilt": "deepbase/dockerlab:runtime_node_lts",
},
"workspace_node_16": {
"post_templates": ["default"],
"assets": ["misc/"],
"cuda": "",
"prebuilt": "deepbase/dockerlab:workspace_node_16",
},
"workspace_node_18": {
"post_templates": ["default"],
"assets": ["misc/"],
"cuda": "",
"prebuilt": "deepbase/dockerlab:workspace_node_18",
},
"workspace_node_20": {
"post_templates": ["default"],
"assets": ["misc/"],
"cuda": "",
"prebuilt": "deepbase/dockerlab:workspace_node_20",
},
"workspace_pytorch_1_13": {
"post_templates": ["python", "default"],
"assets": ["misc/", "requirements.txt"],
Expand Down
28 changes: 28 additions & 0 deletions dockerlab/templates/workspace_node_16/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# syntax=docker/dockerfile:1.4
FROM deepbase/dockerlab:workspace_base


# ==================================================
# Node install
# ==================================================

RUN apt-get update && \
apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

ENV NODE_MAJOR=16
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | \
sudo tee /etc/apt/sources.list.d/nodesource.list

RUN apt-get update && \
apt-get install nodejs -y && \
rm -rf /var/lib/apt/lists/*

# ==================================================
# Node setup
# ==================================================


RUN npm install -g yarn yrm
28 changes: 28 additions & 0 deletions dockerlab/templates/workspace_node_18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# syntax=docker/dockerfile:1.4
FROM deepbase/dockerlab:workspace_base


# ==================================================
# Node install
# ==================================================

RUN apt-get update && \
apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

ENV NODE_MAJOR=18
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | \
sudo tee /etc/apt/sources.list.d/nodesource.list

RUN apt-get update && \
apt-get install nodejs -y && \
rm -rf /var/lib/apt/lists/*

# ==================================================
# Node setup
# ==================================================


RUN npm install -g yarn yrm
28 changes: 28 additions & 0 deletions dockerlab/templates/workspace_node_20/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# syntax=docker/dockerfile:1.4
FROM deepbase/dockerlab:workspace_base


# ==================================================
# Node install
# ==================================================

RUN apt-get update && \
apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

ENV NODE_MAJOR=20
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | \
sudo tee /etc/apt/sources.list.d/nodesource.list

RUN apt-get update && \
apt-get install nodejs -y && \
rm -rf /var/lib/apt/lists/*

# ==================================================
# Node setup
# ==================================================


RUN npm install -g yarn yrm

0 comments on commit e78cfa4

Please sign in to comment.