Skip to content

Commit

Permalink
chore: finish devcontainer config
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiFilipeCampos committed Sep 6, 2024
1 parent 3c12e65 commit 5a75a95
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
{
"image": "ubuntu:22.04",
"image": "ghcr.io/digital-defiance/nlp-metaformer-devcontainer:latest",
// "build": {
// "dockerfile": "Dockerfile"
// },
// "runArgs": [
// "--gpus",
// "all"
// ],
"features": {
"ghcr.io/devcontainers/features/nvidia-cuda:1": {},
"ghcr.io/duduribeiro/devcontainer-features/neovim:1": { "version": "nightly" },
"ghcr.io/itsmechlark/features/1password:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/node:1": { "version": "20.16"},
"ghcr.io/jungaretti/features/make:1": {},
"ghcr.io/devcontainers/features/rust:1": {}
},
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"mounts": [
{
Expand Down
20 changes: 20 additions & 0 deletions .devcontainer/pre-build/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"image": "ubuntu:22.04",
// "build": {
// "dockerfile": "Dockerfile"
// },
// "runArgs": [
// "--gpus",
// "all"
// ],
"features": {
"ghcr.io/devcontainers/features/nvidia-cuda:1": {},
"ghcr.io/duduribeiro/devcontainer-features/neovim:1": { "version": "nightly" },
"ghcr.io/itsmechlark/features/1password:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/node:1": { "version": "20.16"},
"ghcr.io/jungaretti/features/make:1": {},
"ghcr.io/devcontainers/features/rust:1": {}
}
}
3 changes: 2 additions & 1 deletion .github/workflows/pre-build-dev-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
paths:
- '.github/.devcontainer/devcontainer.json'
- '.github/.devcontainer/pre-build/devcontainer.json'
- '.github/workflows/pre-build-dev-container.yml'
branches:
- "main"
Expand Down Expand Up @@ -39,6 +39,7 @@ jobs:
name: Pre-build dev container image
uses: devcontainers/ci@v0.3
with:
subFolder: .devcontainer/pre-build
imageName: ghcr.io/${{ env.GITHUB_REPOSITORY_LOWER }}-devcontainer
cacheFrom: ghcr.io/${{ env.GITHUB_REPOSITORY_LOWER }}-devcontainer
push: always

0 comments on commit 5a75a95

Please sign in to comment.