Comments (5)
--Is the docker image using poky provided ca-certificates?--
pokyuser@2a66f5998236:~$ env | grep opt
SSL_CERT_FILE=/opt/poky/3.1.3/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
GIT_SSL_CAINFO=/opt/poky/3.1.3/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
PATH=/opt/poky/3.1.3/sysroots/x86_64-pokysdk-linux/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
OPENSSL_CONF=/opt/poky/3.1.3/sysroots/x86_64-pokysdk-linux/etc/ssl/openssl.cnf
Edit: This is for the 16.04 container only which does work.
from poky-container.
I was able to manually update the ca-certificates on the 20.04 image and afterward the git clone worked.
$ docker run -it --rm --entrypoint= -u0:0 crops/poky:ubuntu-20.04 bash
root@2fc60764a6dd:/home/yoctouser# echo "flags are: [[$-]]"^C
root@2fc60764a6dd:/home/yoctouser# ca-certificates^C
root@2fc60764a6dd:/home/yoctouser# git clone https://git.linaro.org/toolchain/gcc.git/
Cloning into 'gcc'...
fatal: unable to access 'https://git.linaro.org/toolchain/gcc.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
root@2fc60764a6dd:/home/yoctouser# apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [581 kB]
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,135 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [795 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [632 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,083 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,581 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6,310 B]
Get:14 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2,668 B]
Fetched 6,207 kB in 1s (4,248 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
91 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@2fc60764a6dd:/home/yoctouser# apt install ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libexpat1-dev libpython3-dev libpython3.8 libpython3.8-dev python-pip-whl python3-dev python3-wheel python3.8-dev
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
ca-certificates
1 upgraded, 0 newly installed, 0 to remove and 90 not upgraded.
Need to get 145 kB of archives.
After this operation, 1,024 B disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.2 [145 kB]
Fetched 145 kB in 0s (315 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 29861 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20210119~20.04.2_all.deb ...
Unpacking ca-certificates (20210119~20.04.2) over (20210119~20.04.1) ...
Setting up ca-certificates (20210119~20.04.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Updating certificates in /etc/ssl/certs...
0 added, 1 removed; done.
Processing triggers for ca-certificates (20210119~20.04.2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@2fc60764a6dd:/home/yoctouser# git clone https://git.linaro.org/toolchain/gcc.git/
Cloning into 'gcc'...
remote: Enumerating objects: 74482, done.
...
root@2fc60764a6dd:/home/yoctouser#
root@2fc60764a6dd:/home/yoctouser# exit
from poky-container.
@jcormier All of the containers have been rebuilt. Can you check if the problem persists?
from poky-container.
18.04 and 20.04 both work for me now
$ docker run --pull always -it --rm crops/poky:ubuntu-18.04 git clone https://git.linaro.org/toolchain/gcc.git/
ubuntu-18.04: Pulling from crops/poky
284055322776: Pull complete
204941d49ef6: Pull complete
53ceec708585: Pull complete
cd9635c01b89: Pull complete
ba54220a97ab: Pull complete
ea52e77b9dd9: Pull complete
5bcbb0af992f: Pull complete
b5c58c2b5663: Pull complete
9fc6eede4179: Pull complete
Digest: sha256:1a6e7132ee5678c87ce0ccab1651a2161b64ba790bfc490f6fe7ec77f155e6d6
Status: Downloaded newer image for crops/poky:ubuntu-18.04
Cloning into 'gcc'...
remote: Enumerating objects: 78317, done.
...
$ docker run --pull always -it --rm crops/poky:ubuntu-20.04 git clone https://git.linaro.org/toolchain/gcc.git/
ubuntu-20.04: Pulling from crops/poky
7b1a6ab2e44d: Pull complete
0588af319eac: Pull complete
868fc1fc44fd: Pull complete
4f195ee83510: Pull complete
d767af2de12c: Pull complete
a0d49615aecb: Pull complete
4d7f09e8cd5c: Pull complete
9a95c38c521e: Pull complete
ecb836adfaba: Pull complete
Digest: sha256:de9908e77f947a6c3d241738b3c11bbb8c9fe05a275ab5114ec9e8d159c4300f
Status: Downloaded newer image for crops/poky:ubuntu-20.04
Cloning into 'gcc'...
remote: Enumerating objects: 78317, done.
...
from poky-container.
@jcormier thank you for checking and closing the issue :)
from poky-container.
Related Issues (20)
- allow for different versions of poky HOT 6
- Target file system contaminated with wrong permissions HOT 4
- Unable to forward the taskexp UI HOT 2
- How do I switch to `pokyuser` or set to correct user when running the container? HOT 3
- BitBake server has stopped responding - Even after a container restart HOT 1
- Question: Does it make any sense to enable the TUN network interface in a Docker container?
- Error installing openssl / building toolchain
- "lz4c pzstd zstd" appear to be unavailable in PATH HOT 7
- Publish image to ghcr.io HOT 5
- host uid contamination detected at do_package
- Need a way to get .ssh/config and .ssh/known_hosts to work well with the poky container HOT 3
- Missing program: xxd HOT 2
- Request: offer arm64v8 image HOT 3
- yoctoproject link to README returns "404 Not Found"
- python-setuptools-scm in bionic is too outdated for some workflows HOT 2
- rocko based distro doesn't build any more HOT 3
- poky container missing a lot of dependencies HOT 2
- can poky-container use "runqemu" HOT 3
- Yocto-sumo build fails in container due to python 3.10 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poky-container.