Setup and deploy software stories instance on staging
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Benoit Chauvet changed milestone to %Self-host Software Stories software stack [Roadmap - Share]
changed milestone to %Self-host Software Stories software stack [Roadmap - Share]
- Benoit Chauvet added activity::Implementation label
added activity::Implementation label
- Benoit Chauvet assigned to @guillaume
assigned to @guillaume
- Guillaume Samson added state:wip label
added state:wip label
- Owner
Dockerfile
FROM node:19-bullseye RUN apt-get -y update && \ apt-get -y upgrade && \ npm install -g serve && \ mkdir -p /opt/swh/swh-stories && \ chown -R node:node /opt/swh USER node ENV NODE_OPTIONS=--openssl-legacy-provider WORKDIR /opt/swh/swh-stories COPY --chown=node:node entrypoint.sh /opt/swh RUN chmod u+x /opt/swh/entrypoint.sh && \ git clone https://github.com/ScienceStories/swh-stories.git /opt/swh/swh-stories && \ git checkout 04168585b48edb77b3410cfe0e5e06af545bb18c && \ rm package-lock.json && \ npm install --no-audit && \ npm run build ENTRYPOINT "/opt/swh/entrypoint.sh"
entrypoint.sh
#!/bin/bash set -e case "$1" in "shell") shift echo "Running command $@" exec bash -i "$@" ;; *) exec serve -s build ;; esac
docker-compose.yml
version: '3.9' services: swh-stories: build: . container_name: swh-stories ports: - '127.0.0.1:80:3000' healthcheck: test: [ "CMD-SHELL", "curl -s -I http://localhost:3000 | grep 'HTTP.*200'", ] interval: 30s timeout: 5s retries: 120
Usage
docker build --no-cache . -t swh-stories docker run --rm --name swh-stories -p 127.0.0.1:80:3000 swh-stories # or docker-compose up -d --build
Then http://localhost
Edited by Guillaume Samson - Guillaume Samson added 4h 30m of time spent
added 4h 30m of time spent
- Guillaume Samson mentioned in commit swh-apps@e8d7f62a
mentioned in commit swh-apps@e8d7f62a
- Guillaume Samson mentioned in merge request swh-apps!17 (merged)
mentioned in merge request swh-apps!17 (merged)
- Guillaume Samson mentioned in commit swh-apps@687e2c50
mentioned in commit swh-apps@687e2c50
- Owner
The
software-stories
image is built :https://gitlab.softwareheritage.org/swh/infra/swh-apps/container_registry/33.Helm chart is in progess.
- Guillaume Samson added 6h of time spent
added 6h of time spent
- Owner
helm chart on local minikube:
- simplify
yaml
files to have a minimum variables number; - add
namespace
andliveness
,readiness
,startup
probe.
Edited by Guillaume Samson 1 - simplify
- Guillaume Samson added 2h of time spent
added 2h of time spent
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@e5320ddc
mentioned in commit swh/infra/ci-cd/swh-charts@e5320ddc
- Guillaume Samson mentioned in merge request swh/infra/ci-cd/swh-charts!37 (merged)
mentioned in merge request swh/infra/ci-cd/swh-charts!37 (merged)
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@15f19248
mentioned in commit swh/infra/ci-cd/swh-charts@15f19248
- Guillaume Samson mentioned in commit swh/infra/ci-cd/k8s-clusters-conf@b6dcd73d
mentioned in commit swh/infra/ci-cd/k8s-clusters-conf@b6dcd73d
- Guillaume Samson mentioned in merge request swh/infra/ci-cd/k8s-clusters-conf!17 (merged)
mentioned in merge request swh/infra/ci-cd/k8s-clusters-conf!17 (merged)
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@202a88f6
mentioned in commit swh/infra/ci-cd/swh-charts@202a88f6
- Owner
Add software-stories chart and unittest in swh-charts repository.
Declare argocd staging application.Edited by Guillaume Samson