Git Product home page Git Product logo

boot2docker's People

Contributors

aheissenberger avatar akihirosuda avatar bbeardsley avatar bbodenmiller avatar boxofrox avatar cglewis avatar crosbymichael avatar daghack avatar eugeneware avatar fdawg4l avatar frapposelli avatar jmorganca avatar legal90 avatar leo-liu-bot[bot] avatar md5 avatar moul avatar nathanleclaire avatar nuxlli avatar proppy avatar qxo avatar riobard avatar schickling avatar silver886 avatar simonvanderveldt avatar steeve avatar svendowideit avatar tianon avatar unclejack avatar yosifkit avatar yungsang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

boot2docker's Issues

Overriding VERSION_ID in /etc/os-release causes tce-load mirror URL to break

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

Workaround

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

Debugging

To check the resulting MIRROR url:

. /etc/init.d/tc-functions ; set -x; getMirror ; set +x
Output:
+ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.