Skip to content

Commit

Permalink
fix: devcontainer part 1 (mudler#3254)
Browse files Browse the repository at this point in the history
`-r` fix and checkout within volume for performance

Signed-off-by: Dave Lee <[email protected]>
  • Loading branch information
dave-gray101 authored Aug 16, 2024
1 parent 409e2d3 commit be55fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
}
},
"forwardPorts": [8080, 3000],
"postStartCommand": "make prepare && cp /build/backend-assets /workdir/backend-assets"
"postCreateCommand": "git clone https://github.com/mudler/LocalAI.git .",
"postStartCommand": "make prepare && cp -r /build/backend-assets /workdir/backend-assets"
}
5 changes: 3 additions & 2 deletions .devcontainer/docker-compose-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
ports:
- 8080:8080
volumes:
- ..:/workspace:cached
- localai_workspace:/workspace
command: /bin/sh -c "while sleep 1000; do :; done"
cap_add:
- SYS_PTRACE
Expand Down Expand Up @@ -42,4 +42,5 @@ services:
volumes:
- ./grafana:/etc/grafana/provisioning/datasources
volumes:
prom_data:
prom_data:
localai_workspace:

0 comments on commit be55fce

Please sign in to comment.