0

我正在尝试在 Docker 上构建我的 yocto 元工具链。我将使用 Eclipse Che 的 Docker 映像。这是我用于构建过程的命令。但是我收到了权限被拒绝错误。我认为工具链有错误。

     docker build --tag="ak4721269/eclipse-che:6.5.0-1" --tag="ak4721269/eclipse-che:latest" /home/akash/dockerimage.yocto.support/
Sending build context to Docker daemon  2.048kB
Step 1/5 : FROM eclipse/cpp_gcc
 ---> 8397ec8fd9d1
Step 2/5 : ENV META_TOOLCHAIN=poky-glibc-x86_64-rpi-basic-image-cortexa7hf-neon-vfpv4-toolchain-2.4.3.sh
 ---> Using cache
 ---> 66e16758f587
Step 3/5 : RUN wget -O /tmp/$META_TOOLCHAIN "https://www.dropbox.com/s/66x7y64tt94cpsr/poky-glibc-x86_64-rpi-basic-image-cortexa7hf-neon-vfpv4-toolchain-2.4.3.sh?dl=0=$META_TOOLCHAIN"
 ---> Using cache
 ---> 5c248d24999a
Step 4/5 : RUN chmod +x /tmp/$META_TOOLCHAIN
 ---> Using cache
 ---> 49a84a54e784
Step 5/5 : RUN /tmp/$META_TOOLCHAIN
 ---> Using cache
 ---> 5db84b5d1e5e
Successfully built 5db84b5d1e5e
Successfully tagged ak4721269/eclipse-che:6.5.0-1
Successfully tagged ak4721269/eclipse-che:latest
akash@akash-HP-Pavilion-15-Notebook-PC:~$ docker push ak4721269/eclipse-che
The push refers to repository [docker.io/ak4721269/eclipse-che]
a6b649da4a54: Pushed
03bc0c7d3745: Pushed
850578ed6aff: Pushed
4485ec960c74: Pushed
3c577c73bac6: Pushed
3c554a221bcf: Pushed
7fa1f922b3fd: Pushed
530847c1cbb3: Pushed
d695aab5c09b: Pushed
e97f5e74db77: Pushed
a8de0e025d94: Pushed
a5e66470b281: Pushed
ac7299292f8b: Pushed
e1a9a6284d0d: Pushed
fccbfa2912f0: Pushed
6.5.0-1: digest: sha256:8ec94e00ea0348bf992985bf7d35164f12ae6eaa02ef7172e8332ca99a3975e5 size: 3463
a6b649da4a54: Layer already exists
03bc0c7d3745: Layer already exists
850578ed6aff: Layer already exists
4485ec960c74: Layer already exists
3c577c73bac6: Layer already exists
3c554a221bcf: Layer already exists
7fa1f922b3fd: Layer already exists
530847c1cbb3: Layer already exists
d695aab5c09b: Layer already exists
e97f5e74db77: Layer already exists
a8de0e025d94: Layer already exists
a5e66470b281: Layer already exists
ac7299292f8b: Layer already exists
e1a9a6284d0d: Layer already exists
fccbfa2912f0: Layer already exists
latest: digest: sha256:8ec94e00ea0348bf992985bf7d35164f12ae6eaa02ef7172e8332ca99a3975e5 size: 3463

这是我的元工具链的 local.conf 文件

    DISTRO ?= "poky"
DISTRO_FEATURES_append += " virtualization"
PACKAGE_CLASSES ?= "package_rpm"

# The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated
# images. Some of these options are added to certain image types automatically. The
# variable can contain the following options:
#  "dbg-pkgs"       - add -dbg packages for all installed packages
#                     (adds symbol information for debugging/profiling)
#  "dev-pkgs"       - add -dev packages for all installed packages
#                     (useful if you want to develop against libs in the image)
#  "ptest-pkgs"     - add -ptest packages for all ptest-enabled packages
#                     (useful if you want to run the package test suites)
#  "tools-sdk"      - add development tools (gcc, make, pkgconfig etc.)
#  "tools-debug"    - add debugging tools (gdb, strace)
#  "eclipse-debug"  - add Eclipse remote debugging support
#  "tools-profile"  - add profiling tools (oprofile, lttng, valgrind)
#  "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
#  "debug-tweaks"   - make an image suitable for development
#                     e.g. ssh root access has a blank password
# There are other application targets that can be used here too, see
# meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks dbg-pkgs dev-pkgs tools-sdk tools-debug eclipse-debug tools-profile"



PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"


CONF_VERSION = "1"
MACHINE = "raspberrypi3"
PREFERRED_VERSION_linux-raspberrypi = "4.%"
DISTRO_FEATURES_remove = "x11 wayland"
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
#openvpn recipe is set up in order to set VPN #infrastructure on Yocto_SDK
#wiringpi and wiringpi-dev recipes are set up in order to 
IMAGE_INSTALL_APPEND = " git apt dpkg opkg rpm sudo wiringpi wiringpi-dev cmake connman connman-client tzdata i2c-tools i2c-tools-dev glibc-utils rpm dhcp-server bluez5 python-smbus bridge-utils hostapd apache2 "
IMAGE_INSTALL_APPEND = " nano openvpn networkmanager"
ENABLE_UART="1"
ENABLE_SPI_BUS= "1"
ENABLE_I2C = "1"
ENABLE_PCF857x_I2C_GPIO_expanders = "1"
4

1 回答 1

0

你能在 Che 之外构建镜像,然后用这个镜像创建一个自定义堆栈吗?

于 2018-07-11T06:27:39.313 回答