v2.0.0
v2.0.0
release introduced a BC break because of the changes made in the YAML syntax.
Release note
New Features
887bdeb Rework network to allow IP generation range from 127.1.2.1 to 127.255.255.255
debc38e Added a run section and hamonize way commands are launched
76bed57 Added build option before running a local application
e323bd2 Added helper and log packages
Other
e5f8721 Rework: move setup as a real package and added global configuration
6cc6c93 README: bring configuration before usage
Upgrade
Here are the changes and how to upgrade:
New 'run' section
When declaring a local application, previously you had to define:
<: &graphql-local
...
executable: go
args:
- run
- main.go
env:
HTTP_PORT: 8005
env_file: "github.com/eko/graphql/.env"
Now, this has been grouped under a run
YAML section, such as setup
and build
:
<: &graphql-local
...
run:
command: go run main.go
env:
HTTP_PORT: 8005
env_file: "github.com/eko/graphql/.env"
Also, the way commands are launched has been harmonized by switching from the executable
/ args
couple to command
.
New 'setup' section
Same for setup
section, before v2.0.0 you had to declare:
<: &graphql-local
...
setup:
- my first command
run:
command: ...
Now, this is an harmonized setup
section in which you can also declare env
or env_file
section:
<: &graphql-local
...
run:
command: ...
setup:
commands:
- my first command
env:
GIT_SSH_COMMAND: ssh -i /my/private/key.rsa
New global settings
For each setup
, build
, run
and watch
sections you can now define some global environment variables settings that will be taken into account for each application you defined. Here is an example:
build:
env:
DOCKER_BUILDKIT: 1
setup:
env:
GIT_SSH_COMMAND: ssh -i /home/myuser/.ssh/id_rsa
watch:
exclude:
- .git
- node_modules
- /event/an/absolute/path