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

Unable to build katib on ppc64le #890

Closed
alishaIBM opened this issue Oct 22, 2019 · 7 comments · Fixed by #893
Closed

Unable to build katib on ppc64le #890

alishaIBM opened this issue Oct 22, 2019 · 7 comments · Fixed by #893
Labels

Comments

@alishaIBM
Copy link

alishaIBM commented Oct 22, 2019

/kind bug

What steps did you take and what happened:

Executing busybox-1.30.1-r2.trigger
OK: 118 MiB in 31 packages
can't load package: package github.com/kubeflow/katib/cmd/manager/v1alpha3: cannot find package "github.com/kubeflow/katib/cmd/manager/v1alpha3" in any of:
        /usr/local/go/src/github.com/kubeflow/katib/cmd/manager/v1alpha3 (from $GOROOT)
        /go/src/github.com/kubeflow/katib/cmd/manager/v1alpha3 (from $GOPATH)

Environment:

  • Dockerfile is built on :
# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

VM :
9.47.73.84 root / passw0rd
Dockerfile is at /root/

@jinchihe
Copy link
Member

/cc @hougangliu @hmtai

@hougangliu
Copy link
Member

@alishaIBM how do you build it.
In my test, it works well as below:

# docker build -t liuhougangxa/katib-manager -f cmd/manager/v1alpha3/Dockerfile .
Sending build context to Docker daemon  59.01MB
Step 1/10 : FROM golang:alpine AS build-env
 ---> c35851b5748b
Step 2/10 : ADD . /go/src/github.com/kubeflow/katib
 ---> 9b9b14b808c0
Step 3/10 : WORKDIR /go/src/github.com/kubeflow/katib/cmd/manager
 ---> Running in 805b44054b8c
Removing intermediate container 805b44054b8c
 ---> 9d4840d7c051
Step 4/10 : RUN if [ "$(uname -m)" = "ppc64le" ]; then         apk --update add git gcc musl-dev &&         go build -o katib-manager ./v1alpha3  &&         go get github.com/grpc-ecosystem/grpc-health-probe &&         mv $GOPATH/bin/grpc-health-probe /bin/grpc_health_probe &&         chmod +x /bin/grpc_health_probe;     else         go build -o katib-manager ./v1alpha3 &&         GRPC_HEALTH_PROBE_VERSION=v0.2.0 &&             wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 &&             chmod +x /bin/grpc_health_probe;     fi
 ---> Running in f2167e079b3d
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/ppc64le/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/ppc64le/APKINDEX.tar.gz
(1/16) Installing binutils (2.32-r0)
(2/16) Installing gmp (6.1.2-r1)
(3/16) Installing isl (0.18-r0)
(3/16) Installing isl (0.18-r0)
(4/16) Installing libgomp (8.3.0-r0)
(5/16) Installing libatomic (8.3.0-r0)
(6/16) Installing libgcc (8.3.0-r0)
(7/16) Installing mpfr3 (3.1.5-r1)
(8/16) Installing mpc1 (1.1.0-r0)
(9/16) Installing libstdc++ (8.3.0-r0)
(10/16) Installing gcc (8.3.0-r0)
(11/16) Installing nghttp2-libs (1.39.2-r0)
(12/16) Installing libcurl (7.66.0-r0)
(13/16) Installing expat (2.2.8-r0)
(14/16) Installing pcre2 (10.33-r0)
(15/16) Installing git (2.22.0-r0)
(16/16) Installing musl-dev (1.1.22-r3)
Executing busybox-1.30.1-r2.trigger
OK: 118 MiB in 31 packages
Removing intermediate container f2167e079b3d
 ---> a0c76074f859
Step 5/10 : FROM alpine:3.7
 ---> 0475ec681d47
Step 6/10 : WORKDIR /app
 ---> Using cache
 ---> 191f86ece250
Step 7/10 : COPY --from=build-env /bin/grpc_health_probe /bin/
 ---> 6b5b4d069b5e
Step 8/10 : COPY --from=build-env /go/src/github.com/kubeflow/katib/cmd/manager/katib-manager /app/
 ---> e29653ec5b40
Step 9/10 : ENTRYPOINT ["./katib-manager"]
 ---> Running in 93a35d7dbc7d
Removing intermediate container 93a35d7dbc7d
 ---> 6621b937776c
Step 10/10 : CMD ["-w", "kubernetes"]
 ---> Running in e4b1a02ce310
Removing intermediate container e4b1a02ce310
 ---> 09dba993ba80
Successfully built 09dba993ba80
Successfully tagged liuhougangxa/katib-manager:latest

@hougangliu
Copy link
Member

hougangliu commented Oct 22, 2019

@alishaIBM you must run docker build -t liuhougangxa/katib-manager -f cmd/manager/v1alpha3/Dockerfile . under top directory of katib

You can try to build katib image based on https://github.com/kubeflow/katib/blob/master/scripts/v1alpha3/build.sh

@alishaIBM
Copy link
Author

thanks @hougangliu ! I was able to build the dockerfile successfully.

@gaocegege
Copy link
Member

There may be a problem: #779 (comment)

@alishaIBM
Copy link
Author

alishaIBM commented Oct 23, 2019

@gaocegege , re-opening the issue.
/cc @hougangliu @hmtai

@alishaIBM alishaIBM reopened this Oct 23, 2019
@gaocegege
Copy link
Member

Sure. Help wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants