mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
* setup network page * add Network, Image, Container * Docker ListItems and Inspects * frontend build * dev0 * network info working * fix cargo lock * dev1 * pages for the things * implement Active in dashboard * RunBuild update trigger list refresh * rename deployment executions to StartDeployment etc * add server level container control * dev2 * add Config field to Image * can get image labels from Config.Labels * mount container page * server show resource count * add GetContainerLog api * add _AllContainers api * dev3 * move ResourceTarget to entities mod * GetResourceMatchingContainer api * connect container to resource * dev4 add volume names to container list items * ts types * volume / image / network unused management * add image history to image page * fix PruneContainers incorret Operation * update cache for server for server after server actions * dev5 * add singapore to Hetzner * implement delete single network / image / volume api * dev6 * include "in use" on Docker Lists * add docker resource delete buttons * is nice * fix volume all in use * remove google font dependency * use host networking in test compose * implement Secret Variables (hidden in logs) * remove unneeded borrow * interpolate variables / secrets into extra args / onclone / onpull / command etc * validate empty strings before SelectItem * rename everything to Komodo * rename workspace to komodo * rc1
39 lines
1.2 KiB
Docker
39 lines
1.2 KiB
Docker
# Build Core
|
|
FROM rust:1.80.1-bookworm AS core-builder
|
|
WORKDIR /builder
|
|
COPY . .
|
|
RUN cargo build -p komodo_core --release
|
|
|
|
# Build Frontend
|
|
FROM node:20.12-alpine AS frontend-builder
|
|
WORKDIR /builder
|
|
COPY ./frontend ./frontend
|
|
COPY ./client/core/ts ./client
|
|
RUN cd client && yarn && yarn build && yarn link
|
|
RUN cd frontend && yarn link @komodo/client && yarn && yarn build
|
|
|
|
# Final Image
|
|
FROM debian:bookworm-slim
|
|
|
|
# Install Deps
|
|
RUN apt update && apt install -y git curl unzip ca-certificates && \
|
|
curl -SL https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose && \
|
|
chmod +x /usr/local/bin/docker-compose && \
|
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
|
|
unzip awscliv2.zip && \
|
|
./aws/install
|
|
|
|
# Copy
|
|
COPY ./config_example/core.config.example.toml /config/config.toml
|
|
COPY --from=core-builder /builder/target/release/core /
|
|
COPY --from=frontend-builder /builder/frontend/dist /frontend
|
|
|
|
# Hint at the port
|
|
EXPOSE 9000
|
|
|
|
# Label for Ghcr
|
|
LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo
|
|
LABEL org.opencontainers.image.description="Komodo Core"
|
|
LABEL org.opencontainers.image.licenses=GPL-3.0
|
|
|
|
CMD ["./core"] |