Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary-env docker build is broken #78

Open
kbbqiu opened this issue May 13, 2021 · 1 comment
Open

binary-env docker build is broken #78

kbbqiu opened this issue May 13, 2021 · 1 comment
Labels
env-binary Binary environment related issues/PR

Comments

@kbbqiu
Copy link

kbbqiu commented May 13, 2021

On Docker-Desktop MacOSX Big Sur

If compiling from https://github.com/fission/environments/tree/master/binary, the runtime server errors with

# curl http://localhost:80/test-endpoint
Function error log: exit status 127
Function out log:

Steps to reproduce

# from fission/environments root
cd  binary
docker build -t test/binary-env .

mkdir -p /tmp/test-endpoint /tmp/test-endpoint/ls
cd /tmp/test-endpoint

cat <<EOT >> ls/entrypoint.sh
#!/bin/sh

ls
EOT

chmod +x ls/entrypoint.sh

fission spec init

fission env create --spec --name test-binary-env --image test/binary-env --builder fission/binary-builder

fission function create --spec --name test-endpoint --env test-binary-env --src "ls/*" --entrypoint entrypoint.sh

fission route create --spec --method GET --url /test-endpoint --function test-endpoint

fission spec validate

fission spec apply --wait

curl http://localhost:80/test-endpoint

I was able to resolve the error if I grab the binary-env base image from dockerhub and do a multistage build. Is the go server / dockerfile in the binary directory outdated?

FROM fission/binary-env

FROM alpine:3.5

WORKDIR /app

RUN apk update && apk add mysql mysql-client docker

COPY --from=0 /app/server /app/server

EXPOSE 8888
ENTRYPOINT ["./server"]
@sanketsudake sanketsudake added the env-binary Binary environment related issues/PR label Nov 25, 2021
@sanketsudake
Copy link
Member

Hi @kbbqiu We have published new binary env. Please check out https://environments.fission.io/

The latest binary environment consists of a bunch of fixes and improves error reporting.

Could you try your issues with the latest environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env-binary Binary environment related issues/PR
Projects
None yet
Development

No branches or pull requests

2 participants