mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Dockerize embed, kubernetes config, add back deployment .env
This commit is contained in:
parent
eabb58e851
commit
ed658e9d32
38
deployment/human-connection/deployment-embed.yaml
Normal file
38
deployment/human-connection/deployment-embed.yaml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nitro-embed
|
||||||
|
namespace: human-connection
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
minReadySeconds: 15
|
||||||
|
progressDeadlineSeconds: 60
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 0
|
||||||
|
maxUnavailable: "100%"
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
human-connection.org/selector: deployment-human-connection-embed
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
human-connection.org/commit: COMMIT
|
||||||
|
human-connection.org/selector: deployment-human-connection-embed
|
||||||
|
name: "nitro-embed"
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nitro-embed
|
||||||
|
image: humanconnection/nitro-embed:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 4000
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: configmap
|
||||||
|
- secretRef:
|
||||||
|
name: human-connection
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
status: {}
|
||||||
14
deployment/human-connection/service-embed.yaml
Normal file
14
deployment/human-connection/service-embed.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: nitro-embed
|
||||||
|
namespace: human-connection
|
||||||
|
labels:
|
||||||
|
human-connection.org/selector: deployment-human-connection-embed
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
port: 3050
|
||||||
|
targetPort: 3050
|
||||||
|
selector:
|
||||||
|
human-connection.org/selector: deployment-human-connection-embed
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
# SSH Access
|
||||||
|
# SSH_USERNAME='username'
|
||||||
|
# SSH_HOST='example.org'
|
||||||
|
|
||||||
|
# UPLOADS_DIRECTORY=/var/www/api/uploads
|
||||||
|
OUTPUT_DIRECTORY='/uploads/'
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
# SSH Access
|
||||||
|
# SSH_USERNAME='username'
|
||||||
|
# SSH_HOST='example.org'
|
||||||
|
|
||||||
|
# Mongo DB on Remote Maschine
|
||||||
|
# MONGODB_USERNAME='mongouser'
|
||||||
|
# MONGODB_PASSWORD='mongopassword'
|
||||||
|
# MONGODB_DATABASE='mongodatabase'
|
||||||
|
# MONGODB_AUTH_DB='admin'
|
||||||
|
|
||||||
|
# Export Settings
|
||||||
|
# On Windows this resolves to C:\Users\dornhoeschen\AppData\Local\Temp\mongo-export (MinGW)
|
||||||
|
EXPORT_PATH='/tmp/mongo-export/'
|
||||||
|
EXPORT_MONGOEXPORT_BIN='mongoexport'
|
||||||
|
MONGO_EXPORT_SPLIT_SIZE=100
|
||||||
|
# On Windows use something like this
|
||||||
|
# EXPORT_MONGOEXPORT_BIN='C:\Program Files\MongoDB\Server\3.6\bin\mongoexport.exe'
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
# Neo4J Settings
|
||||||
|
# NEO4J_USERNAME='neo4j'
|
||||||
|
# NEO4J_PASSWORD='letmein'
|
||||||
|
|
||||||
|
# Import Settings
|
||||||
|
# On Windows this resolves to C:\Users\dornhoeschen\AppData\Local\Temp\mongo-export (MinGW)
|
||||||
|
IMPORT_PATH='/tmp/mongo-export/'
|
||||||
|
IMPORT_CHUNK_PATH='/tmp/mongo-export/splits/'
|
||||||
|
|
||||||
|
IMPORT_CHUNK_PATH_CQL='/tmp/mongo-export/splits/'
|
||||||
|
# On Windows this path needs to be windows style since the cypher-shell runs native - note the forward slash
|
||||||
|
# IMPORT_CHUNK_PATH_CQL='C:/Users/dornhoeschen/AppData/Local/Temp/mongo-export/splits/'
|
||||||
|
|
||||||
|
IMPORT_CYPHERSHELL_BIN='cypher-shell'
|
||||||
|
# On Windows use something like this
|
||||||
|
# IMPORT_CYPHERSHELL_BIN='C:\Program Files\neo4j-community\bin\cypher-shell.bat'
|
||||||
@ -41,6 +41,15 @@ services:
|
|||||||
context: neo4j
|
context: neo4j
|
||||||
networks:
|
networks:
|
||||||
- hc-network
|
- hc-network
|
||||||
|
embed:
|
||||||
|
image: humanconnection/embed:latest
|
||||||
|
build:
|
||||||
|
context: embed
|
||||||
|
networks:
|
||||||
|
- hc-network
|
||||||
|
depends_on:
|
||||||
|
- neo4j
|
||||||
|
ports:
|
||||||
|
- 3050:3050
|
||||||
networks:
|
networks:
|
||||||
hc-network:
|
hc-network:
|
||||||
|
|||||||
15
embed/Dockerfile
Normal file
15
embed/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM node:12.5-alpine
|
||||||
|
LABEL Description="API Service for fetching URL Information for the Social Network Human-Connection.org" Vendor="Human Connection gGmbH" Version="0.0.1" Maintainer="Human Connection gGmbH (developer@human-connection.org)"
|
||||||
|
|
||||||
|
EXPOSE 3050
|
||||||
|
ARG BUILD_COMMIT
|
||||||
|
ENV BUILD_COMMIT=$BUILD_COMMIT
|
||||||
|
ARG WORKDIR=/nitro-embed
|
||||||
|
RUN mkdir -p $WORKDIR
|
||||||
|
WORKDIR $WORKDIR
|
||||||
|
|
||||||
|
RUN apk --no-cache add git
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN yarn install --frozen-lockfile --non-interactive
|
||||||
|
CMD ["yarn", "run", "start"]
|
||||||
Loading…
x
Reference in New Issue
Block a user