Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "learn-celestial-bodies-database",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
// "features": {
// "ghcr.io/devcontainers/features/docker-in-docker:2": {
// "installDockerBuildx": false,
// "installDockerComposeSwitch": false,
// "moby": false
// }
// },
"features": {
"ghcr.io/itsmechlark/features/postgresql:1": {
"version": 12
},
"ghcr.io/devcontainers/features/node:1": {}
},
// "remoteUser": "vscode",
// "containerUser": "vscode",
"workspaceFolder": "/workspace/learn-celestial-bodies-database",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/learn-celestial-bodies-database,type=bind",
"customizations": {
"vscode": {
"extensions": [
"CodeRoad.coderoad"
]
}
}
}
4 changes: 2 additions & 2 deletions .freeCodeCamp/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,5 @@ export PATH="$PATH:$HOME/.rvm/bin"
# stuff I added
PS1='camper: \[\033[01;34m\]/${PWD##*/}\[\033[00m\]\$ '
HISTFILE=/workspace/.bash_history
PROMPT_COMMAND='echo $PWD >> /workspace/project/.freeCodeCamp/test/.cwd; history -a'
trap 'echo $BASH_COMMAND >> /workspace/project/.freeCodeCamp/test/.next_command' DEBUG
PROMPT_COMMAND='echo $PWD >> /workspace/learn-celestial-bodies-database/.freeCodeCamp/test/.cwd; history -a'
trap 'echo $BASH_COMMAND >> /workspace/learn-celestial-bodies-database/.freeCodeCamp/test/.next_command' DEBUG
25 changes: 0 additions & 25 deletions .gitpod.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .gitpod/automations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
tasks:
before-000:
command: |
sudo cp /workspace/learn-celestial-bodies-database/.freeCodeCamp/.bashrc ~/.bashrc
sudo cp /workspace/learn-celestial-bodies-database/.freeCodeCamp/.psqlrc ~/.psqlrc
sudo cp /workspace/learn-celestial-bodies-database/.freeCodeCamp/pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
sudo touch /workspace/.bash_history
sudo chmod -R 777 /workspace
sudo chown -R postgres:postgres /var/lib/postgresql/12/main
description: before task migrated from .gitpod.yml
name: 'Task 0: before'
command-0:
command: |
sudo rm /workspace/learn-celestial-bodies-database/CHANGELOG.md
sudo rm /workspace/learn-celestial-bodies-database/coderoad.yaml
sudo rm /workspace/learn-celestial-bodies-database/tutorial.json
sudo rm /workspace/learn-celestial-bodies-database/TUTORIAL.md
pg_stop && sudo service postgresql start && echo "SELECT 'CREATE USER freecodecamp WITH CREATEDB' WHERE NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname='freecodecamp')\gexec" | psql -U postgres -X
exit
dependsOn:
- before-000
description: init task migrated from .gitpod.yml
name: 'Task 0: command'
triggeredBy:
- postDevcontainerStart
coadroad-setup:
command: export CODEROAD_TUTORIAL_URL="https://raw.githubusercontent.com/freeCodeCamp/$(basename "$PWD")/main/tutorial.json"
name: 'CodeRoad Setup'
description: setup env vars
triggeredBy:
- postEnvironmentStart
37 changes: 19 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,25 @@
"explorer.openEditors.visible": 0,
"extensions.autoCheckUpdates": false,
"extensions.ignoreRecommendations": true,
"files.autoSave": "afterDelay",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
".vscode": true,
".gitignore": true,
".freeCodeCamp": true,
"learn-celestial-bodies-database": true,
".gitpod.Dockerfile": true,
".gitpod.yml": true,
"CHANGELOG.md": true,
"coderoad.yaml": true,
"tutorial.json": true,
"TUTORIAL.md": true
},
// "files.autoSave": "afterDelay",
// "files.exclude": {
// "**/.git": true,
// "**/.svn": true,
// "**/.hg": true,
// "**/CVS": true,
// "**/.DS_Store": true,
// ".vscode": true,
// ".gitignore": true,
// ".freeCodeCamp": true,
// "learn-celestial-bodies-database": true,
// ".gitpod": true,
// ".devcontainer": true,
// ".gitpod.yml": true,
// "CHANGELOG.md": true,
// "coderoad.yaml": true,
// "tutorial.json": true,
// "TUTORIAL.md": true
// },
"html.autoClosingTags": false,
"npm.fetchOnlinePackageInfo": false,
"task.slowProviderWarning": false,
Expand Down