plugin-commands
Print
Created by: Catherine Fernandez
Modified on: Mon, 10 Jan, 2022 at 3:40 PM
Configuration
# one.yaml
required_version: ">= 0.7.1"
plugins:
commands:
package: one-cli-plugin-commands==0.1.4
module: 'plugin_commands'
commands:
- name: install
command: 'npm install'
volumes: ['.:/work']
help: 'npm install'
- name: build
command: 'npm run build'
volumes: ['.:/work']
help: 'npm run build'
- name: start
volumes: ['.:/work']
command: 'npm start'
ports: ['4100:4100']
help: 'npm start'
environment: ['TEST': 'test']
Usage
one install
one build
one start
Parameters
- name: <command_name>
image: <string(docker_image)> # default to
entrypoint: <string(entrypoint)> # default to None
volumes: <list(volumes)> # ['.:/work', '.:/app']
command: <string(command)>
ports: <list(ports)> # ['3000:3000', '4100:4100']
environment: <list(environments)> # ['ENV': 'env']
help: <string(help)>
Development
Dependencies
Python Virtual Environment
# Create environment
python3 -m venv env
# To activate the environment
source env/bin/activate
# When you finish you can exit typing
deactivate
Install dependencies
pip3 install --editable .
Catherine is the author of this solution article.
Did you find it helpful?
Yes
No
Send feedback Sorry we couldn't be helpful. Help us improve this article with your feedback.