Skip to content

Commit

Permalink
cuda dockerfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
musdotdigital committed Nov 29, 2023
1 parent 47a2fc3 commit f4723d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions __tests__/data/cudaDockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04

RUN apt-get install
2 changes: 1 addition & 1 deletion __tests__/data/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"name": "protobuf-dev",
"version": "3.18.1-r1"
}
]
]
7 changes: 7 additions & 0 deletions __tests__/dockerfile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ test('load debian dockerfile', () => {
expect(dockerfile).toBeInstanceOf(DebImage)
expect(dockerfile.name).toBe('debian:bullseye-slim')
})

test ('load cuda dockerfile', () => {
const dockerfilePath = path.join(__dirname, 'data', 'cudaDockerfile')
const dockerfile = load(dockerfilePath)
expect(dockerfile).toBeInstanceOf(DebImage)
expect(dockerfile.name).toBe('nvidia/cuda:11.8.0-runtime-ubuntu22.04')
})

0 comments on commit f4723d1

Please sign in to comment.