Apk not found for alpine

2.0

#1

I’ve been building this same project yesterday and it worked fine but today I’m seeing this error.


Install Build Dependencies00:00
Exit code: 127
apk add --update openssh git make gcc libc-dev
/bin/sh: apk: not found
Exited with code 127

this is the first part of the config

version: 2
executorType: docker
containerInfo:
  - image: ruby:2.4.0-alpine
stages:
  build:
    workDir: /some-dir
    environment:
      - PATH: $PATH:node_modules/.bin
      - SOMEVARS: someothervars
     steps:
      - type: shell
        name: Install Build Dependencies
        command: apk add --update openssh git make gcc libc-dev
      - type: checkout
      .....
      .....

any ideas?


#2

You changed the $PATH and it’s not being evaluated like you think. You’ll need to manually export that in each step you need it, or you can hard set it to a string; you can’t current evaluate $PATH when setting it.

Without that, it runs fine:
https://circleci.com/gh/ryanwohara/test-2.0/189#config/containers/0


#3

thanks a lot! removed that line and its working!


#4