MrScarySpaceCat
MrScarySpaceCat
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
this seems to be fixed in the latest version, thanks
9 replies
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
bumping this, sorry
9 replies
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
didnt work
9 replies
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
nvm
9 replies
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
actually let me try something
9 replies
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
Heres my package.json if you need
{
"name": "agent-kitten-v2",
"type": "module",
"scripts": {
"start": "node dist/index.js",
"build": "tsc"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/jsdom": "^21.1.7",
"eslint": "^9.11.1",
"globals": "^15.10.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"@discordjs/builders": "^1.9.0"
},
"peerDependencies": {
"typescript": "^5.5.4"
},
"dependencies": {
"@discordjs/voice": "^0.17.0",
"discord-cross-hosting": "^2.3.8",
"discord-hybrid-sharding": "^2.2.0",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"jsdom": "^25.0.1",
"mongodb": "^6.9.0",
"moonlink.js": "^4.0.2",
"net-ipc": "2.2.0",
"node-html-parser": "^6.1.13",
"ollama": "^0.5.9",
"puppeteer": "^23.5.0",
"redis": "^4.7.0"
}
}
{
"name": "agent-kitten-v2",
"type": "module",
"scripts": {
"start": "node dist/index.js",
"build": "tsc"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/jsdom": "^21.1.7",
"eslint": "^9.11.1",
"globals": "^15.10.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"@discordjs/builders": "^1.9.0"
},
"peerDependencies": {
"typescript": "^5.5.4"
},
"dependencies": {
"@discordjs/voice": "^0.17.0",
"discord-cross-hosting": "^2.3.8",
"discord-hybrid-sharding": "^2.2.0",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"jsdom": "^25.0.1",
"mongodb": "^6.9.0",
"moonlink.js": "^4.0.2",
"net-ipc": "2.2.0",
"node-html-parser": "^6.1.13",
"ollama": "^0.5.9",
"puppeteer": "^23.5.0",
"redis": "^4.7.0"
}
}
9 replies
DDeno
Created by MrScarySpaceCat on 10/10/2024 in #help
Strange error when running Deno kubernetes container on only 1 node (out of my 3)
Sorry for the late response. Here you go.
# Use the latest Deno image
FROM denoland/deno:debian

# Set the working directory inside the Docker container
WORKDIR /app

# Update package lists and install necessary packages for Puppeteer
RUN apt-get update && apt-get install -y \
ca-certificates \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
lsb-release \
wget \
xdg-utils

# Copy package.json and package-lock.json (if it exists) to Docker image
COPY package*.json ./

# Install Deno dependencies
RUN deno install --allow-scripts=npm:puppeteer

# Copy all other files from the current directory to /app in the container
COPY . .

# Expose port for Bridge
EXPOSE 5000

# Command to run the application
CMD ["deno", "run", "--allow-all", "src/index.ts"]
# Use the latest Deno image
FROM denoland/deno:debian

# Set the working directory inside the Docker container
WORKDIR /app

# Update package lists and install necessary packages for Puppeteer
RUN apt-get update && apt-get install -y \
ca-certificates \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
lsb-release \
wget \
xdg-utils

# Copy package.json and package-lock.json (if it exists) to Docker image
COPY package*.json ./

# Install Deno dependencies
RUN deno install --allow-scripts=npm:puppeteer

# Copy all other files from the current directory to /app in the container
COPY . .

# Expose port for Bridge
EXPOSE 5000

# Command to run the application
CMD ["deno", "run", "--allow-all", "src/index.ts"]
9 replies