Skip to content

Commit

Permalink
Setup devcontainer for GitHub Codespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Jun 10, 2024
1 parent 0117f25 commit d4890c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ RUN sudo apt-get update && \

USER vscode

RUN git clone https://github.com/ingydotnet/git-subrepo $HOME/.git-subrepo && \
printf "\nsource \$HOME/.git-subrepo/.rc\n" >> $HOME/.bashrc

# pipx is already installed in the base devcontainers Python image
RUN pipx install invoke && \
invoke --print-completion-script=bash >> ~/.bash_completion
Expand Down
5 changes: 2 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
// Install Docker CE instead of an (by default) older Moby version
"moby": false,
"version": "25.0.3"
"moby": false
},
"ghcr.io/devcontainers/features/node:1": {}
},
// https://github.com/orgs/community/discussions/50403
// "initializeCommand": "docker system prune --all --force",
"postCreateCommand": "poetry install && poetry run invoke init-workspace && poetry run invoke download-llm -m mistral-7b-q2",
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"customizations": {
"vscode": {
"extensions": [
Expand Down
5 changes: 5 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

poetry install
poetry run invoke init-workspace
poetry run invoke download-llm -m tinyllama-1b-q2

0 comments on commit d4890c7

Please sign in to comment.