Skip to content

Commit

Permalink
Merge pull request #6 from renn0xtek9/add-local-aliases-to-devcontainer
Browse files Browse the repository at this point in the history
Mount local bash aliases to the devcontainer
  • Loading branch information
renn0xtek9 authored May 13, 2024
2 parents 0766c8a + e0bfa80 commit 618a3ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"--network=host"
]
},
"mounts": [
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached",
"source=${localEnv:HOME}/.bash_aliases,target=/home/vscode/.bash_aliases,type=bind,consistency=cached",
],
"features": {
"ghcr.io/devcontainers/features/github-cli:1.0.11": {}
},
"customizations": {
"vscode": {
"extensions": [
Expand All @@ -30,7 +37,6 @@
"postCreateCommand": "sudo chown vscode:vscode /workspace && pre-commit install",
"appPort": [],
"remoteUser": "vscode",
"mounts": [],
"containerEnv": {},
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"workspaceFolder": "/workspace",
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ jobs:
build-devcontainer:
runs-on: ubuntu-22.04
steps:
- name: Create empty ssh dir
run: mkdir -p ~/.ssh
- name: Create dummy bash_aliases
run: touch ~/.bash_aliases
- name: Check out repository code
uses: actions/checkout@v3
- name: Build the devcontainer
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.orig
build/*
output/*
documentation/*.bbl
Expand Down

0 comments on commit 618a3ba

Please sign in to comment.