Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

environment variable does not have valid identifier #244

@dohnto

Description

@dohnto

Hello, I have encountered a edge-case where docker image cannot be converted to aci:

# docker2aci --version
docker2aci version 9cec4de
appc version 0.8.10

Docker image was created using following Dockerfile:

FROM busybox
ENV A-B=10

I have push the image to dohnto/docker2aci-env:1.0 for maintainers to verify the bug.

# ./docker2aci docker://dohnto/docker2aci-env:1.0
Downloading sha256:fdab1243926 [===============================] 670 KB / 670 KB
Error: conversion error: error generating ACI: error writing manifest: json: error calling MarshalJSON for type schema.ImageManifest: json: error calling MarshalJSON for type *types.App: environment variable does not have valid identifier "A-B"

Expected result: don't fail :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions