silver886 / boot2docker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from boot2docker/boot2docker
Maintenance mode
Home Page: https://github.com/boot2docker/boot2docker/pull/1408
License: Apache License 2.0
This project forked from boot2docker/boot2docker
Maintenance mode
Home Page: https://github.com/boot2docker/boot2docker/pull/1408
License: Apache License 2.0
It looks like the Dockerfile
build overrides VERSION_ID
in /etc/os-release
. This is used by the getMirror
function in /etc/init.d/tc-functions
to find the MIRROR
URL.
As a result, any tce-load
or tce
install command will fail with 404
error, because the 20.10.11
Boot2Docker version does not match the current repo mirror URL for Tiny Core Linux version (12.0
=> 12.x
): http://repo.tinycorelinux.net/12.x/x86_64/tcz/
Example:
tce-load -wi python
Downloading: python.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: python.tcz.md5.txt: No such file or directory
Error on python.tcz
Replace the VERSION_ID
with current TCL version: 12.0
:
sudo /bin/sed -i'' -e 's/VERSION_ID=.*/VERSION_ID=12.0/' /etc/os-release
Now tce-load
works again:
tce-load -wi python'
python.tcz.dep OK
readline.tcz.dep OK
[...SNIP...] # Lots of dependencies here...
Downloading: python.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
saving to 'python.tcz'
python.tcz 1% | | 145k 0:01:16 ETA
[...SNIP...]
python.tcz 83% |************************** | 9399k 0:00:01 ETA
python.tcz 100% |********************************| 10.9M 0:00:00 ETA
'python.tcz' saved
python.tcz: OK
To check the resulting MIRROR
url:
. /etc/init.d/tc-functions ; set -x; getMirror ; set +x
+ getMirror
+ BUILD=
+ '[' -z '' ']'
++ getBuild
+++ uname -m
++ BUILD=x86_64
++ case ${BUILD} in
++ '[' -f /lib/ld-linux-x86-64.so.2 ']'
++ echo x86_64
+ BUILD=x86_64
+ read MIRROR
++ getMajorVer
+++ getFullVer
++++ grep '^VERSION_ID=' /etc/os-release
+++ verid=VERSION_ID=12.0
+++ echo 12.0
++ fullver=12.0
++ echo 12
+ MIRROR=http://repo.tinycorelinux.net/12.x/x86_64/tcz
+ set +x
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.