Skip to content

Commit

Permalink
:Merge branch 'main' of github.com:iforge-uos/ignis
Browse files Browse the repository at this point in the history
  • Loading branch information
iForge committed Apr 17, 2024
2 parents 3231a76 + febf731 commit d318e00
Show file tree
Hide file tree
Showing 63 changed files with 12,116 additions and 9,452 deletions.
33 changes: 33 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Use the official Node.js 20 slim image from Docker Hub as the base image
FROM node:20-slim AS base

# Set the environment variable for PNPM home and add it to the PATH
ENV PNPM_HOME="/pnpm" \
PATH="$PNPM_HOME:$PATH"

# Install corepack to manage Node.js package managers and install Rust and other essential tools
RUN corepack enable && \
apt-get update && \
apt-get install -y curl git build-essential && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. $HOME/.cargo/env && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Add Rust to the system PATH
ENV PATH="/root/.cargo/bin:${PATH}"

# Copy the local code to the container
COPY . /code

# Set the working directory to the app directory
WORKDIR /code

# Install dependencies using pnpm
RUN pnpm install

# Expose ports (3000, 8000, 4000) used by your application
EXPOSE 3000 8000 4000

# Default command to run when starting the container
CMD ["pnpm", "run", "dev"]
File renamed without changes.
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Ignis",
"portsAttributes": {
"3000": {
"label": "anvil",
"onAutoForward": "silent",
"requireLocalPort": true
},
"8000": {
"label": "forge",
"onAutoForward": "openBrowser",
"requireLocalPort": true
},
"4000": {
"label": "mine",
"onAutoForward": "silent",
"requireLocalPort": true
}
},
"dockerComposeFile": [
"../docker-compose.yml",
"docker-compose.yml"
],
service: "",
"mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
"source=${localWorkspaceFolder} ,target=/code,type=bind,consistency=cached"
],
}
26 changes: 26 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.8"
services:
db:
image: edgedb/edgedb:5.0-beta.3
env_file:
- ../.env
op-connect-api:
image: 1password/connect-api:latest
ports:
- "8080:8080"
volumes:
- "./1password-credentials.json:/home/opuser/.op/1password-credentials.json"
- "1p_data:/home/opuser/.op/data"
op-connect-sync:
image: 1password/connect-sync:latest
volumes:
- "./1password-credentials.json:/home/opuser/.op/1password-credentials.json"
- "1p_data:/home/opuser/.op/data"


networks:

volumes:
db_data:
redis_data:
1p_data:
2 changes: 0 additions & 2 deletions .git-blame-ignore-revs

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_ANNOUCE_WEBHOOK_URL }}
content: "Ignis Entering Maintenance Mode"

embed-title: "Ignis Entering Maintenance Mode"
embed-color: 15548997
embed-description: "Ignis is going down for maintenance and will be back up shortly"
- name: Throw up the maintenance page
run: touch /home/iforge/ignis-config/file_flags/maintenance_mode/enabled

Expand All @@ -46,4 +47,6 @@ jobs:
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_ANNOUCE_WEBHOOK_URL }}
content: "Ignis Exiting Maintenance Mode..."
embed-title: "Ignis Exiting Maintenance Mode"
embed-color: 5763719
embed-description: "Ignis is back online!"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Thumbs.db
**/node_modules/**
**/.turbo/**
deploy/container-images/**
**/secret/**
37 changes: 0 additions & 37 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit d318e00

Please sign in to comment.