Skip to content

Commit b78d054

Browse files
committed
Add DGL versions.
1 parent 86e5152 commit b78d054

5 files changed

Lines changed: 87 additions & 2 deletions

File tree

.github/workflows/dockerhub-matgl-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
context: .
3535
file: docker/Dockerfile.matgl
3636
push: true
37-
tags: materialsvirtuallab/matgl:latest
37+
tags: materialyzeai/matgl:latest
3838
- name: Image digest
3939
run: echo ${{ steps.docker_build.outputs.digest }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Docker - matgl - latest
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- docker/Dockerfile.matgl.dgl
8+
workflow_dispatch:
9+
inputs:
10+
task:
11+
type: choice
12+
options: [build]
13+
default: dockerhub
14+
description: Run build and push.
15+
16+
jobs:
17+
dockerhub:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Login to DockerHub
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ secrets.DOCKER_HUB_USER }}
25+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
- name: Build and push
31+
uses: docker/build-push-action@v6
32+
with:
33+
platforms: linux/amd64,linux/arm64
34+
context: .
35+
file: docker/Dockerfile.matgl.dgl
36+
push: true
37+
tags: materialyzeai/matgl:latest-dgl
38+
- name: Image digest
39+
run: echo ${{ steps.docker_build.outputs.digest }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Docker - matml - latest
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- docker/Dockerfile.matml.dgl
8+
workflow_dispatch:
9+
inputs:
10+
task:
11+
type: choice
12+
options: [build]
13+
default: dockerhub
14+
description: Run build and push.
15+
16+
jobs:
17+
dockerhub:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Login to DockerHub
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ secrets.DOCKER_HUB_USER }}
25+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
- name: Build and push
31+
uses: docker/build-push-action@v6
32+
with:
33+
platforms: linux/amd64,linux/arm64
34+
context: .
35+
file: docker/Dockerfile.matml.dgl
36+
push: true
37+
tags: materialyzeai/matml:latest-dgl
38+
- name: Image digest
39+
run: echo ${{ steps.docker_build.outputs.digest }}

docker/Dockerfile.matgl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM ghcr.io/astral-sh/uv:python3.12-bookworm
22

3-
RUN uv pip install --system matgl>=2.2.0
3+
RUN uv pip install --system matgl>=2.2.1

docker/Dockerfile.matml.dgl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# We start from a uv image to make life easier.
2+
FROM materialyzeai/lammps_gnnp:latest
3+
4+
ENV MATGL_BACKEND=DGL
5+
6+
RUN uv pip install --system matgl>=2.2.1 matcalc matpes
7+
RUN uv pip install --system dgl==2.1.0 torch==2.2.0 torchdata==0.7.1

0 commit comments

Comments
 (0)