Initial commit
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Lauri Võsandi 2022-02-08 23:03:34 +02:00
commit 200d4e9d2c
4 changed files with 46 additions and 0 deletions

26
.drone.yml Normal file
View 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
View File

@ -0,0 +1 @@
FROM node

5
frontend/Dockerfile Normal file
View 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
View 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;
}
}