mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-30 15:58:19 +09:00
Power up (#8684)
This commit is contained in:
parent
d62a55b46f
commit
a8e779a68c
@ -1,6 +1,6 @@
|
|||||||
FROM node:18.0.0-alpine3.15 AS base
|
FROM node:18.0.0-alpine3.15 AS base
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ARG NODE_ENV=production
|
||||||
|
|
||||||
WORKDIR /misskey
|
WORKDIR /misskey
|
||||||
|
|
||||||
@ -31,5 +31,6 @@ COPY --from=builder /misskey/packages/backend/built ./packages/backend/built
|
|||||||
COPY --from=builder /misskey/packages/client/node_modules ./packages/client/node_modules
|
COPY --from=builder /misskey/packages/client/node_modules ./packages/client/node_modules
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
|
ENV NODE_ENV=production
|
||||||
CMD ["npm", "run", "migrateandstart"]
|
CMD ["npm", "run", "migrateandstart"]
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#───┘ URL └─────────────────────────────────────────────────────
|
#───┘ URL └─────────────────────────────────────────────────────
|
||||||
|
|
||||||
# Final accessible URL seen by a user.
|
# Final accessible URL seen by a user.
|
||||||
url: https://example.tld/
|
# url: https://example.tld/
|
||||||
|
|
||||||
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
|
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
|
||||||
# URL SETTINGS AFTER THAT!
|
# URL SETTINGS AFTER THAT!
|
||||||
@ -41,7 +41,7 @@ url: https://example.tld/
|
|||||||
# You need to set Certificate in 'https' section.
|
# You need to set Certificate in 'https' section.
|
||||||
|
|
||||||
# To use option 1, uncomment below line.
|
# To use option 1, uncomment below line.
|
||||||
port: 3000 # A port that your Misskey server should listen.
|
port: 3000 # A port that your Misskey server should listen.
|
||||||
|
|
||||||
# To use option 2, uncomment below lines.
|
# To use option 2, uncomment below lines.
|
||||||
#port: 443
|
#port: 443
|
||||||
@ -108,8 +108,7 @@ redis:
|
|||||||
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
|
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
|
||||||
# ID SETTINGS AFTER THAT!
|
# ID SETTINGS AFTER THAT!
|
||||||
|
|
||||||
id: 'aid'
|
id: "aid"
|
||||||
|
|
||||||
# ┌─────────────────────┐
|
# ┌─────────────────────┐
|
||||||
#───┘ Other configuration └─────────────────────────────────────
|
#───┘ Other configuration └─────────────────────────────────────
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "misskey.fullname" . }}-config-file
|
name: {{ include "misskey.fullname" . }}-configuration
|
||||||
data:
|
data:
|
||||||
default.yml: |-
|
default.yml: |-
|
||||||
{{ .Files.Get "files/default.yml"|indent 4 }}
|
{{ .Files.Get "files/default.yml"|nindent 4 }}
|
||||||
|
url: {{ .Values.url }}
|
||||||
|
@ -16,9 +16,12 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: misskey
|
- name: misskey
|
||||||
image: okteto.dev/misskey:latest
|
image: {{ .Values.image }}
|
||||||
|
env:
|
||||||
|
- name: NODE_ENV
|
||||||
|
value: {{ .Values.environment }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-file
|
- name: {{ include "misskey.fullname" . }}-configuration
|
||||||
mountPath: /misskey/.config
|
mountPath: /misskey/.config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
ports:
|
ports:
|
||||||
@ -39,6 +42,6 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- containerPort: 6379
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-file
|
- name: {{ include "misskey.fullname" . }}-configuration
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "misskey.fullname" . }}-config-file
|
name: {{ include "misskey.fullname" . }}-configuration
|
||||||
|
3
chart/values.yml
Normal file
3
chart/values.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
url: https://example.tld/
|
||||||
|
image: okteto.dev/misskey
|
||||||
|
environment: production
|
@ -1,3 +0,0 @@
|
|||||||
deploy:
|
|
||||||
- okteto build -t okteto.dev/misskey:latest
|
|
||||||
- helm upgrade --install misskey chart
|
|
6
okteto.yml
Normal file
6
okteto.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
build:
|
||||||
|
misskey:
|
||||||
|
args:
|
||||||
|
- NODE_ENV=development
|
||||||
|
deploy:
|
||||||
|
- helm upgrade --install misskey chart --set image=${OKTETO_BUILD_MISSKEY_IMAGE} --set url="https://misskey-$(kubectl config view --minify -o jsonpath='{..namespace}').cloud.okteto.net" --set environment=development
|
Loading…
Reference in New Issue
Block a user