updated image to v0.40

This commit is contained in:
lllllllillllllillll 2024-02-26 15:30:38 -08:00
parent f97628e9cd
commit d288cdb205
6 changed files with 5372 additions and 21 deletions

View File

@ -2,7 +2,7 @@
* Pages rewritten to use HTMX. * Pages rewritten to use HTMX.
* Removed Socket.io. * Removed Socket.io.
* Changed view files to *.HTML instead of *.EJS. * Changed view files to *.HTML instead of *.EJS.
* Improved Dockerfile. * Removed "USER root" from Dockerfile.
* Express sessions configured to use memorystore. * Express sessions configured to use memorystore.
* Improved chart rendering. * Improved chart rendering.
* Improvements to container charts. * Improvements to container charts.
@ -20,6 +20,7 @@
* Container charts only rendered if container running. * Container charts only rendered if container running.
* Created permissions modal. * Created permissions modal.
* Podman support (untested). * Podman support (untested).
* Started a new template for FOSS apps.
## v0.20 (Jan 20th 2024) - The rewrite. Jumping all the way to v0.20. ## v0.20 (Jan 20th 2024) - The rewrite. Jumping all the way to v0.20.
* Changed to ES6 imports. * Changed to ES6 imports.

View File

@ -1,17 +1,7 @@
FROM node:21-alpine FROM node:21-alpine
ENV NODE_ENV=production ENV NODE_ENV=production
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
WORKDIR /app WORKDIR /app
RUN chown node:node /app
USER node
COPY package.json package-lock.json* /app/
RUN npm ci && npm cache clean --force
COPY . /app COPY . /app
RUN npm install
EXPOSE 8000 EXPOSE 8000
CMD ["node", "server.js"] CMD node server.js

View File

@ -53,9 +53,8 @@ version: "3.9"
services: services:
dweebui: dweebui:
container_name: dweebui container_name: dweebui
image: lllllllillllllillll/dweebui:v0.20 image: lllllllillllllillll/dweebui:v0.40
environment: environment:
NODE_ENV: production
PORT: 8000 PORT: 8000
SECRET: MrWiskers SECRET: MrWiskers
restart: unless-stopped restart: unless-stopped
@ -63,7 +62,11 @@ services:
- 8000:8000 - 8000:8000
volumes: volumes:
- dweebui:/app - dweebui:/app
# Docker socket
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# Podman socket
#- /run/podman/podman.sock:/var/run/docker.sock
networks: networks:
- dweebui_net - dweebui_net

View File

@ -2,7 +2,7 @@ version: "3.9"
services: services:
dweebui: dweebui:
container_name: dweebui container_name: dweebui
image: lllllllillllllillll/dweebui:v0.40-dev image: lllllllillllllillll/dweebui:v0.40
environment: environment:
PORT: 8000 PORT: 8000
SECRET: MrWiskers SECRET: MrWiskers
@ -10,11 +10,12 @@ services:
ports: ports:
- 8000:8000 - 8000:8000
volumes: volumes:
- dweebui:/app/database/db.sqlite - dweebui:/app
# Docker socket # Docker socket
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# Podman socket # Podman socket
#- /var/run/podman/podman.sock:/var/run/docker.sock #- /run/podman/podman.sock:/var/run/docker.sock
networks: networks:
- dweebui_net - dweebui_net
@ -23,4 +24,4 @@ volumes:
networks: networks:
dweebui_net: dweebui_net:
driver: bridge driver: bridge

View File

@ -168,6 +168,7 @@ export const Install = async (req, res) => {
try { try {
mkdirSync(`./appdata/${name}`, { recursive: true }); mkdirSync(`./appdata/${name}`, { recursive: true });
writeFileSync(`./appdata/${name}/docker-compose.yml`, compose_file, function (err) { console.log(err) }); writeFileSync(`./appdata/${name}/docker-compose.yml`, compose_file, function (err) { console.log(err) });
var compose = new DockerodeCompose(docker, `./appdata/${name}/docker-compose.yml`, `${name}`);
} catch { } catch {
const syslog = await Syslog.create({ const syslog = await Syslog.create({
@ -179,8 +180,6 @@ export const Install = async (req, res) => {
}); });
} }
var compose = new DockerodeCompose(docker, `./appdata/${name}/docker-compose.yml`, `${name}`);
try { try {
(async () => { (async () => {
await compose.pull(); await compose.pull();

5357
templates/foss.json Normal file

File diff suppressed because it is too large Load Diff