Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • R reveal.js GFZ corporate design Template
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Research Software EngineeringResearch Software Engineering
  • Software Project Templates
  • reveal.js GFZ corporate design Template
  • Merge requests
  • !6

fix to run npm command in a local container if npm is not available

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Hannes Fuchs requested to merge fix-run-via-docker-container into master Jul 05, 2021
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 3

This builds a image via CI and locally. The image contains required dependencies to run the npm commands build and start in the container. reveal.js uses Puppeteer, which requires chrome/chromium. Chrome/chromium is also the reason for --cap-add=SYS_ADMIN, otherwise it will crash. An option would be to use --no-sandbox, but that needs patching Puppeteer/reveal.js. Using the container registry requires a login, when building the image locally we can run ./run-server.sh and only needs Docker.

Also replaces deprecated only keyword with rules in gitlab ci.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-run-via-docker-container