Skip to content
Snippets Groups Projects
Commit ec00e87c authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Merge branch 'public-as-mount-volume' into 'main'

Public as mount volume

See merge request !209
parents 6208cff7 8bdf9243
No related branches found
No related tags found
1 merge request!209Public as mount volume
Pipeline #121610 waiting for manual action
......@@ -145,7 +145,7 @@ deploy:meilisearch:prod:
url: "https://${MEILI_HOST_PROD}"
############### DELETE RELEASE
delete-meili-helm-release:
rules:
......@@ -478,15 +478,15 @@ build:prod:wiki:
- echo "Wiki pod is ready"
- WIKI_POD=$(kubectl --namespace ${KUBE_NAMESPACE} get pods -l "app.kubernetes.io/name=df-wiki" --output jsonpath='{.items[0].metadata.name}')
- echo ${WIKI_POD}
- kubectl --namespace ${KUBE_NAMESPACE} cp scripts/copy-structure-data.sh ${WIKI_POD}:/structure-data/sanitized-dump
- kubectl --namespace ${KUBE_NAMESPACE} exec ${WIKI_POD} -- bash -c 'cd /structure-data/sanitized-dump && bash copy-structure-data.sh'
# - kubectl --namespace ${KUBE_NAMESPACE} cp scripts/copy-structure-data.sh ${WIKI_POD}:/structure-data/sanitized-dump
- kubectl --namespace ${KUBE_NAMESPACE} exec ${WIKI_POD} -- rsync -avz /public-website/ /usr/share/nginx/html/
deploy:dev:
extends: .deploy
rules:
- if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "foldseek-pages"
- if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "public-as-mount-volume"
needs:
- "build:dev:wiki"
when: manual
......
......@@ -91,9 +91,13 @@ RUN npm run generate
FROM nginx:1.25-bookworm
# RUN rm -rf /usr/share/nginx/html/*
RUN apt update -y && apt install rsync -y
RUN mkdir /public-website
RUN chown nginx:nginx /public-website
COPY nginx.conf /etc/nginx/nginx.conf
RUN chown nginx:nginx /usr/share/nginx/html
COPY --chown=nginx:nginx --from=generate /usr/src/app/.output/public /usr/share/nginx/html
# RUN chmod -R nginx:nginx /usr/share/nginx/html/
USER nginx
COPY --chown=nginx:nginx --from=generate /usr/src/app/.output/public /public-website
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
......@@ -39,14 +39,14 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
httpGet:
path: /wiki/
port: http
readinessProbe:
httpGet:
path: /wiki/
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
......@@ -55,7 +55,7 @@ spec:
- name: nginx-config
mountPath: /etc/nginx/conf.d/
- name: structure-data-pvc
mountPath: /structure-data
mountPath: /usr/share/nginx/html
- name: website-pvc
mountPath: /website
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment