-
-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added installation script * shell.nix file * nix script * nix flakes * made script cross-platform * test * test * test * test * test * test * test * test * fix nix flake * fix * fix * fix * fix * added dev container for devpods * fix * fix * fix * fix * fix * temp fix * temp fix * temp fix * temp fix * temp fix * shell.nix file * removed nix file * fix * docker file * fix * fix * fix * fix * made changes * Update INSTALLATION.md * Update INSTALLATION.md * made changes * Update INSTALLATION.md * fix docker file
- Loading branch information
Showing
6 changed files
with
162 additions
and
3 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,24 @@ | ||
# Use Debian Bookworm as the base image | ||
FROM ubuntu:latest as builder | ||
|
||
# Update package list and install dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
git \ | ||
vim \ | ||
curl \ | ||
gnupg2 \ | ||
lsb-release \ | ||
ca-certificates | ||
|
||
# Install Node.js (latest LTS version) and npm | ||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# Install additional developer tools (optional) | ||
RUN apt-get install -y \ | ||
neovim \ | ||
gh # GitHub CLI | ||
|
||
# Default command (to keep the container running) | ||
CMD ["tail", "-f", "/dev/null"] |
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,36 @@ | ||
{ | ||
"name": "talawa api dev environment", | ||
"dockerComposeFile": "docker-compose.yaml", | ||
"service": "devcontainer", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
// Settings to apply to the workspace. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"database.host": "mongodb", | ||
"redis.host": "redis-stack-server" | ||
}, | ||
// List of extensions to install inside the container | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint", | ||
"ms-azuretools.vscode-docker", | ||
"esbenp.prettier-vscode", | ||
"redhat.vscode-yaml" | ||
] | ||
} | ||
}, | ||
// Set up forward ports | ||
"forwardPorts": [ | ||
4000, // Server port | ||
27017, // MongoDB port | ||
6379 // Redis port | ||
], | ||
// Post-create commands to run after creating the container | ||
"postCreateCommand": "npm install", | ||
|
||
// Volumes from docker-compose are already included | ||
"shutdownAction": "stopCompose" | ||
} |
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,34 @@ | ||
services: | ||
mongodb: | ||
image: mongo:latest | ||
ports: | ||
- 27017:27017 | ||
volumes: | ||
- mongodb-data:/data/db | ||
|
||
redis-stack-server: | ||
image: redis/redis-stack-server:latest | ||
ports: | ||
- 6379:6379 | ||
volumes: | ||
- redis-data:/data | ||
|
||
devcontainer: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "${SERVER_PORT:-4000}:4000" | ||
volumes: | ||
- ../..:/workspaces:cached | ||
depends_on: | ||
- mongodb | ||
- redis-stack-server | ||
environment: | ||
- MONGO_DB_URL=mongodb://mongodb:27017 | ||
- REDIS_HOST=redis-stack-server | ||
- REDIS_PORT=6379 | ||
|
||
volumes: | ||
mongodb-data: | ||
redis-data: |
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
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ COPY . . | |
|
||
EXPOSE 4000 | ||
|
||
CMD ["npm", "run", "dev"] | ||
CMD ["npm", "run", "dev"] |
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