You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.
When we try to use no as the value of a variable, the docker app interpolates the value as the false. When we cover the value of the variable with single or double quotes - the problem disappears (with the v0.7.3 binary / with the v0.8.0 binary, the workaround does not work).
I also attached the working examples - see the Annex №5,6,7,8 below (for v0.7.3).
Steps to reproduce the issue: - v0.7.3
Have the docker-compose file with the following content - see the Annex №1 below.
Have the parameters.yml file with the following content - see the Annex №2 below.
Have the parameters.yml file with the following content - see the Annex №3 below.
Execute the following render command - docker-app-standalone-linux render.
Receive the invalid render output - see the Annex №4 below.
Steps to reproduce the issue: - v0.8.0
Have the docker-compose file with the following content - see the Annex №9 below.
Have the parameters.yml file with the following content - see the Annex №10 below.
Have the parameters.yml file with the following content - see the Annex №11 below.
Execute the following render command - docker-app-standalone-linux render.
Receive the invalid render output - see the Annex №12 below.
Describe the results you received:
Unfortunately, we've got the invalid output. It took some time to figure out why we have got the wrong value in the rendered compose file. As a temporary crutch, we have covered this value with single or double quotes, and we have switched to the older version.
Describe the results you expected:
We expect correct interpolation of the values of the variables from the docker-app binary.
Output of docker version:
Client:
Version: 18.09.7
API version: 1.39
Go version: go1.10.8
Git commit: 2d0083d
Built: Thu Jun 27 17:56:06 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.7
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: 2d0083d
Built: Thu Jun 27 17:26:28 2019
OS/Arch: linux/amd64
Experimental: true
Output of docker-app version: - latest binary
Version: v0.8.0
Git commit: 7eea32b7
Built: Tue Jun 11 20:53:26 2019
OS/Arch: linux/amd64
Experimental: off
Renderers: none
Invocation Base Image: docker/cnab-app-base:v0.8.0
Output of docker-app version: - binary in use
Version: v0.7.3
Git commit: 332efaa
Built: Fri Nov 30 15:17:53 2018
OS/Arch: linux/amd64
Experimental: off
Renderers: none
Output of docker info:
Containers: X
Running: X
Paused: X
Stopped: X
Images: X
Server Version: 18.09.7
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: local
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: active
NodeID: ID
Is Manager: true
ClusterID: ID
Managers: X
Nodes: X
Default Address Pool: 10.0.0.0/8
SubnetSize: 24
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: IPADDR
Manager Addresses:
IPADDR
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-957.21.3.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 55.86GiB
Name: hostname
ID: ID
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
http://localhost:6000/
Live Restore Enabled: false
Product License: Community Engine
Hi @johnbizokk we tracked that bug and found it is related to the yaml parser which parses strings like "no" or "off" as boolean and render them with their canonical values "true" and "false".
Actually this issue has a deeper impact than we initially thought. We are now working on fix but it would take some time. Unfortunately so far I do not have any workaround for the 0.8.0 version 😭
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
When we try to use
no
as the value of a variable, the docker app interpolates the value as thefalse
. When we cover the value of the variable with single or double quotes - the problem disappears (with the v0.7.3 binary / with the v0.8.0 binary, the workaround does not work).I also attached the working examples - see the Annex №5,6,7,8 below (for v0.7.3).
Steps to reproduce the issue: - v0.7.3
Steps to reproduce the issue: - v0.8.0
Describe the results you received:
Unfortunately, we've got the invalid output. It took some time to figure out why we have got the wrong value in the rendered compose file. As a temporary crutch, we have covered this value with single or double quotes, and we have switched to the older version.
Describe the results you expected:
We expect correct interpolation of the values of the variables from the docker-app binary.
Output of
docker version
:Output of
docker-app version
: - latest binaryOutput of
docker-app version
: - binary in useOutput of
docker info
:Annex №1 (docker-compose.yml) - invalid interpolation - group №1 - v0.7.3
Annex №2 (parameters.yml) - invalid interpolation - group №1 - v0.7.3
Annex №3 (metadata.yml) - invalid interpolation - group №1 - v0.7.3
Annex №4 (stdout output) - invalid interpolation - group №1 - v0.7.3
Annex №5 (docker-compose.yml) - valid interpolation - group №2 - v0.7.3
Annex №6 (parameters.yml) - valid interpolation - group №2 - v0.7.3
Annex №7 (metadata.yml) - valid interpolation - group №2 - v0.7.3
Annex №8 (stdout output) - valid interpolation - group №2 - v0.7.3
Annex №9 (docker-compose.yml) - invalid interpolation - group №3 - v0.8.0
Annex №10 (parameters.yml) - invalid interpolation - group №3 - v0.8.0
Annex №11 (metadata.yml) - invalid interpolation - group №3 - v0.8.0
Annex №12 (stdout output) - invalid interpolation - group №3 - v0.8.0
The text was updated successfully, but these errors were encountered: