Skip to content

Any sample for installing redis on buildspec.yml ? #20

@vickyRathee

Description

@vickyRathee

This one doesn't work -

version: 0.2

phases:
  install:
    runtime-versions:
      nodejs: 'latest'
    commands:
      - echo Updating system packages...
      - yum update -y

      - echo Enabling EPEL and Redis 6 from amazon-linux-extras...
      - amazon-linux-extras install epel -y
      - amazon-linux-extras install redis6 -y

      - echo Starting Redis service and enabling at boot...
      - systemctl start redis
      - systemctl enable redis

      - echo Verifying Redis installation...
      - redis-server --version
      - redis-cli --version

  pre_build:
    commands:
      - npm install pm2
      - echo Installing source NPM dependencies...
      - npm ci

  build:
    commands:
      - echo Build started on `date`
      - echo Running build...
      - npm run build
      - 
  post_build:
    commands:
      - echo Build completed on `date`

artifacts:  
  files:  
    - "**/*"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions