Skip to content

Commit

Permalink
Externalise devcontainer configuration and setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus21337 committed Oct 8, 2024
1 parent a12d415 commit c7e196e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "Next App Boilerplate",
"dockerFile": "Dockerfile",
"image": "cyrus01337/next-app-boilerplate:development",
"runArgs": [
"--privileged"
],
"workspaceFolder": "/workspace",
"remoteUser": "next",
"postCreateUser": "next",
"postCreateCommand": ".devcontainer/setup.sh",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
}
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

export BUN_INSTALL="/home/node/.bun"
export BUN_INSTALL="/home/next/.bun"
export PATH="$PATH:$BUN_INSTALL/bin"

bun install
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/configurations"]
path = external/configurations
url = https://github.com/cyrus01337/configurations.git
3 changes: 1 addition & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: next-app-boilerplate

services:
webserver:
build:
context: .
image: cyrus01337/next-app-boilerplate:production
restart: always
ports:
- "3000:3000"
Expand Down
1 change: 1 addition & 0 deletions external/configurations
Submodule configurations added at e0b566

0 comments on commit c7e196e

Please sign in to comment.