0.3.3 • Published 5 years ago

@enlibe/node-scripts v0.3.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Enlibe Node.js scripts

$ npm install --save-dev @enlibe/node-scripts:0.1.0

dockerfile

$ cat ./package.json
{
  "name": "@enlibe/example",
  "version": "0.0.0",
  "dockerfile": {
    "build": {
      "context": ".",
      "dockerfile": "Dockerfile",
      "args": [
        "NPM_TOKEN"
      ]
    }
  }
}

$ ./node_modules/.bin/dockerfile
{
  "version": "3.7",
  "services": {
    "service0": {
      "image": "enlibe/example:0.0.0",
      "build": {
        "context": ".",
        "dockerfile": "Dockerfile",
        "args": [
          "NPM_TOKEN",
          "PACKAGE_NAME=@enlibe/example",
          "PACKAGE_VERSION=0.0.0"
        ]
      }
    }
  }
}

$ ./node_modules/.bin/dockerfile | docker-compose --file - config
services:
  service0:
    build:
      args:
        NPM_TOKEN: '...'
        PACKAGE_NAME: '@enlibe/example'
        PACKAGE_VERSION: 0.0.0
      context: /home/damlys/workspace/enlibe/wiki-pl/noframework-framework/npm-docker-concept
      dockerfile: Dockerfile
    image: enlibe/example:0.0.0
version: '3.7'
0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago