machine:
  services:
    - docker

dependencies:
  cache_directories:
    - "~/docker"
  override:
    - docker info
    - if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; fi
    - docker build -t uzyexe/newrelic .
    - mkdir -p ~/docker
    - docker save uzyexe/newrelic > ~/docker/image.tar

test:
  override:
    - docker run uzyexe/newrelic /usr/sbin/nrsysmond -v

deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push uzyexe/newrelic

machine:
  services:
    - docker

dependencies:
  cache_directories:
    - "~/docker"
  override:
    - docker info
    - if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; fi
    - docker build -t uzyexe/newrelic .
    - mkdir -p ~/docker
    - docker save uzyexe/newrelic > ~/docker/image.tar

test:
  override:
    - docker run -e NEW_RELIC_LICENSE_KEY="$NEW_RELIC_LICENSE_KEY" uzyexe/newrelic /usr/sbin/nrsysmond -v

deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push uzyexe/newrelic

Fix missing nrsysmond licence key for CircleCI
Fix missing nrsysmond licence key for CircleCI
