-
-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Added .devcontainer for GitHub Codespaces. (#300)
* Added .devcontainer for GitHub Codespaces. * Changed packages that will be installed.
- Loading branch information
Showing
5 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04 | ||
|
||
ADD first-run-notice.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y php php-curl php-xml inkscape composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"onCreateCommand": "/workspaces/github-readme-streak-stats/.devcontainer/on-create.sh", | ||
"postCreateCommand": "/workspaces/github-readme-streak-stats/.devcontainer/post-create.sh"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
👋 Welcome to Codespaces! You are using the pre-configured image. | ||
|
||
Tests can be executed with: composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd /workspaces/github-readme-streak-stats | ||
composer install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd /workspaces/github-readme-streak-stats | ||
if [ -n "$GITHUB_TOKEN" ]; then | ||
echo "TOKEN=$GITHUB_TOKEN" > .env | ||
fi |