-
Notifications
You must be signed in to change notification settings - Fork 950
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
[bug] build rpm failed #1454
Comments
@soarpenguin |
opened the bash debug info, user root have write access. sudo ./hack/package/package.sh 1.0.0 1.el7.centos /root/test rpm
|
As what you described you got two different errors, firstly failed to create '/root/rpm', and then failed to change it's permission. I think the reason is that you didn't run the command by "root" user, you can su to "root" and have a try.
|
@zzchun same error run the command by "root" user;
---> 1112f81e7484 |
@soarpenguin this part codes have been obsoleted, so close this one, please check https://github.com/pouchcontainer/project. |
Ⅰ. Issue Description
when i run to build rpm package. failed with info:
Step 12/12 : ENTRYPOINT bash -x /go/src/github.com/alibaba/pouch/hack/package/rpm/build.sh
---> Running in 53d4077f2b05
---> 4f10c3e4b57e
Removing intermediate container 53d4077f2b05
Successfully built 4f10c3e4b57e
++ mktemp -d /tmp/pouch.XXXXXX
root
mkdir: cannot create directory '/root/rpm/package': Permission denied
Ⅱ. Describe what happened
$ sudo ./hack/package/package.sh 1.0.0 1.el7.centos /root/test rpm
Sending build context to Docker daemon 132.8 MB
Step 1/12 : FROM centos:7.2.1511
---> 0a2bad7da9b5
Step 2/12 : RUN yum clean all && rpm --rebuilddb && yum install -y wget git gcc ruby-devel fuse fuse-devel pam-devel automake autoconf libtool make rpm-build rpm-sign rubygems vim tree && yum clean all
---> Using cache
---> b97fb342316c
Step 3/12 : RUN gem install --no-ri --no-rdoc fpm
---> Using cache
---> ae26fce5492c
Step 4/12 : ENV GO_VERSION 1.9.1
---> Using cache
---> 5279992c4c5c
Step 5/12 : ENV ARCH amd64
---> Using cache
---> 7b61954a3ecd
Step 6/12 : RUN wget --quiet https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${ARCH}.tar.gz && tar -C /usr/local -xzf go${GO_VERSION}.linux-${ARCH}.tar.gz && rm go${GO_VERSION}.linux-${ARCH}.tar.gz
---> Using cache
---> b6d22d3a17fa
Step 7/12 : RUN mkdir /go
---> Using cache
---> fc9cb7f44179
Step 8/12 : ENV GOPATH /go
---> Using cache
---> d88c68bf9d84
Step 9/12 : ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
---> Using cache
---> 728f60628bc3
Step 10/12 : COPY . /go/src/github.com/alibaba/pouch
---> b1ac62ee9658
Removing intermediate container 7a12b3183a81
Step 11/12 : WORKDIR /go/src/github.com/alibaba/pouch/hack/package/rpm
---> d17eb2371631
Removing intermediate container 5c6ead91c6a8
Step 12/12 : ENTRYPOINT bash -x /go/src/github.com/alibaba/pouch/hack/package/rpm/build.sh
---> Running in 53d4077f2b05
---> 4f10c3e4b57e
Removing intermediate container 53d4077f2b05
Successfully built 4f10c3e4b57e
++ mktemp -d /tmp/pouch.XXXXXX
+ whoami
root
mkdir: cannot create directory '/root/rpm/package': Permission denied
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
pouch version (use
pouch version
):$ pouch version
GitCommit: 5caea36
OS (e.g. from /etc/os-release):
$ cat /etc/os-release
NAME=Fedora
VERSION="28 (Workstation Edition)"
ID=fedora
VERSION_ID=28
PLATFORM_ID="platform:f28"
PRETTY_NAME="Fedora 28 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:28"
HOME_URL="https://fedoraproject.org/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=28
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=28
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Kernel (e.g.
uname -a
):$ uname -a
Linux bogon 4.16.7-300.fc28.x86_64 add travis.yml for CI #1 SMP Wed May 2 20:09:13 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Install tools:
Others:
The text was updated successfully, but these errors were encountered: