GithubHelp home page GithubHelp logo

Docker build not working about seaweedfs HOT 6 CLOSED

seaweedfs avatar seaweedfs commented on May 11, 2024
Docker build not working

from seaweedfs.

Comments (6)

chrislusf avatar chrislusf commented on May 11, 2024

It's related to this change #42
Please try the other docker file Dockerfile.go_build

I am not familiar with docker myself. And may need some help to resolve this. @OGrape you want to take a look?

from seaweedfs.

devinrsmith avatar devinrsmith commented on May 11, 2024

I think it's related to downstream errors, either with the busybox or a repo the busybox is trying to pull from. I've created an issue there as well: progrium/busybox#14

from seaweedfs.

samuelngs avatar samuelngs commented on May 11, 2024

I'm gonna take a look at it tonight again.
But as Devin said it's probably related to progrium/busybox downstream problem.

from seaweedfs.

samuelngs avatar samuelngs commented on May 11, 2024
Sending build context to Docker daemon 3.816 MB
Sending build context to Docker daemon
Step 0 : FROM progrium/busybox
 ---> 6f114d3139e3
Step 1 : WORKDIR /opt/weed
 ---> Running in 806f663d96e3
 ---> 364cc9dbf63a
Removing intermediate container 806f663d96e3
Step 2 : RUN opkg-install curl
 ---> Running in 025ee7a155d0
Downloading http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/base.
Downloading http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/packages/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/packages.
Installing curl (7.38.0-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/curl_7.38.0-1_x86_64.ipk.
Installing libcurl (7.38.0-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/libcurl_7.38.0-1_x86_64.ipk.
Installing libpolarssl (1.3.9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/libpolarssl_1.3.9-1_x86_64.ipk.
Configuring libpolarssl.
Configuring libcurl.
Configuring curl.
 ---> 4774dc3256be
Removing intermediate container 025ee7a155d0
Step 3 : RUN echo insecure >> ~/.curlrc
 ---> Running in 5c232557eb88
 ---> 4c7ad8daef4d
Removing intermediate container 5c232557eb88
Step 4 : RUN curl -Lks https://bintray.com$(curl -Lk http://bintray.com/chrislusf/Weed-FS/seaweed/_latestVersion | grep linux_amd64.tar.gz | sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp") | gunzip | tar -xf - -C /opt/weed/
 ---> Running in e0b6bb75812a
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0    631      0 --:--:-- --:--:-- --:--:--  1219
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 65409    0 65409    0     0  54954      0 --:--:--  0:00:01 --:--:-- 54954
 ---> 4836e54de3f4
Removing intermediate container e0b6bb75812a
Step 5 : RUN mv weed_* bin
 ---> Running in acaabd06eb97
 ---> 811b58561f89
Removing intermediate container acaabd06eb97
Step 6 : RUN curl -Lko bin/execute http://git.develo.pe/projects/STA/repos/storyair-fs/browse/execute?raw
 ---> Running in 3e996b3a8394
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1929  100  1929    0     0   5520      0 --:--:-- --:--:-- --:--:--  7535
 ---> 9ce2722e855c
Removing intermediate container 3e996b3a8394
Step 7 : RUN chmod +x bin/weed
 ---> Running in 1803a680c500
 ---> 134f62bf7598
Removing intermediate container 1803a680c500
Step 8 : RUN chmod +x bin/execute
 ---> Running in 95133c3c42c7
 ---> 622b58371b3b
Removing intermediate container 95133c3c42c7
Step 9 : EXPOSE 8080
 ---> Running in 324c616d31e5
 ---> 3ada0721424d
Removing intermediate container 324c616d31e5
Step 10 : EXPOSE 9333
 ---> Running in 4cb97311d40b
 ---> d9a69a9875c6
Removing intermediate container 4cb97311d40b
Step 11 : VOLUME /data
 ---> Running in 58fbf472492a
 ---> 0782a2c0b386
Removing intermediate container 58fbf472492a
Step 12 : ENV PATH ${PATH}:/opt/weed/bin
 ---> Running in 3b4a4bb71655
 ---> ee23d17d89b5
Removing intermediate container 3b4a4bb71655
Step 13 : CMD
 ---> Running in 8d28ffd20c60
 ---> ba70c92e5263
Removing intermediate container 8d28ffd20c60
Step 14 : ENTRYPOINT execute
 ---> Running in 48ce81cec249
 ---> 3971105e60ab
Removing intermediate container 48ce81cec249
Successfully built 3971105e60ab

I just tried it and it works.
So could you try it again?

Thanks :)

from seaweedfs.

devinrsmith avatar devinrsmith commented on May 11, 2024

Yeah, it's working at home now. I wonder if it was my specific network path or something else changed. Thanks for checking.

from seaweedfs.

forrestsun avatar forrestsun commented on May 11, 2024

FROM progrium/busybox

WORKDIR /opt/weed

RUN opkg-install curl
RUN echo insecure >> ~/.curlrc
#modify mv weed_* and bin => mv weed__/_ /bin
RUN
curl -Lks https://bintray.com$(curl -Lk http://bintray.com/chrislusf/Weed-FS/seaweed/_latestVersion | grep linux_amd64.tar.gz | sed -n "/href/ s/.href='"['"]./\1/gp") | gunzip | tar -xf - -C /opt/weed/ &&
mv weed__/* /bin &&
chmod +x ./bin/weed

EXPOSE 8080
EXPOSE 9333

VOLUME /data

ENV WEED_HOME /opt/weed
ENV PATH ${PATH}:${WEED_HOME}/bin

ENTRYPOINT ["weed"]

from seaweedfs.

Related Issues (20)

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.