Skip to content

Commit

Permalink
Merge pull request #134 from LCOGT/dev/argo-cd
Browse files Browse the repository at this point in the history
Base Kustomization, Skaffold, Nix, and Docker setup
  • Loading branch information
LTDakin authored Dec 23, 2024
2 parents 631ed36 + 9f3458c commit a3ce041
Show file tree
Hide file tree
Showing 11 changed files with 1,198 additions and 20 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Continuous Deployment"
on:
push:
branches:
- main
release:
types:
- published

jobs:
cd:
uses: LCOGT/reusable-workflows/.github/workflows/continuous-deployment.yaml@main
secrets: inherit
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

# Devops
.devenv
.pre-commit-config.yaml
local-kubeconfig
21 changes: 1 addition & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
FROM node:16 as builder
FROM node:16 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.15-alpine
RUN mkdir -p /app && rm -rf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /app
RUN echo -e " server {\n" \
" listen 8989;\n" \
" listen [::]:8989;\n" \
" server_name localhost;\n" \
" location / {\n" \
" root /app;\n" \
" index index.html;\n" \
" try_files \$uri \$uri/ /index.html;\n" \
" add_header 'Cross-Origin-Embedder-Policy' 'require-corp';\n" \
" add_header 'Cross-Origin-Opener-Policy' 'same-origin';\n" \
" }\n" \
" }\n" \
> /etc/nginx/conf.d/datalab.conf

ENTRYPOINT [ "nginx", "-g", "daemon off;" ]
Loading

0 comments on commit a3ce041

Please sign in to comment.