This commit is contained in:
commit
200d4e9d2c
26
.drone.yml
Normal file
26
.drone.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: backend
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: harbor.k-space.ee/k-space/log-viewer
|
||||||
|
registry: harbor.k-space.ee
|
||||||
|
dockerfile: backend/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
- name: frontend
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: harbor.k-space.ee/k-space/log-viewer-frontend
|
||||||
|
registry: harbor.k-space.ee
|
||||||
|
dockerfile: frontend/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
1
backend/Dockerfile
Normal file
1
backend/Dockerfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
FROM node
|
5
frontend/Dockerfile
Normal file
5
frontend/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM node AS builder
|
||||||
|
|
||||||
|
FROM nginx
|
||||||
|
COPY ./default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
14
frontend/default.conf
Normal file
14
frontend/default.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
server {
|
||||||
|
listen 3003;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /events {
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_pass http://127.0.0.1:3002/events;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user