Skip to content

shc generated binary does not produce the expected output if change docker container instance. #178

Description

@hsheng

tried shc on alpine:edge and utuntu:20.04 docker images.

  1. startup a docker container from the base image, install shc and necessary dependencies
  2. write a simple script myscript.sh
    #!/usr/bin/bash
    echo "a test script"
  3. use shc to generate the executable binary myscript.sh.x
  4. execute myscript.sh.x, get the expected output
  5. save the container as a docker image, say ubuntu:shc
  6. startup a docker container from image ubuntu:shc
  7. execute the binary myscript.sh.x, the output is not in plain text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions