B2_Command_Line_Tool icon indicating copy to clipboard operation
B2_Command_Line_Tool copied to clipboard

Looking for an official Docker container from the Backblaze team.

Open pascalandy opened this issue 8 years ago • 1 comments

Hi

Manual installation:

I tried to run it a container and it works perfectly. Here is how I installed it manually.

# Run Node container
docker run -dit --name b2cli \
python:alpine sh && \

# Connect into Node container
docker exec -it b2cli sh;

# Alpine preparation
apk update && \
apk upgrade && \
apk add git

# Install b2cli
git clone https://github.com/Backblaze/B2_Command_Line_Tool.git && \
cd B2_Command_Line_Tool && \
python setup.py install

# See version
b2 version
        # b2 command line tool, version 0.7.3

Looking for:

Now, I don't want to preserve the accountId & applicationKey in the container of even on the host for security reasons.

I'm looking for a Docker container where we could pass the accountId & applicationKey as vars (or even better via Docker secrets).

Is it in you plans to build one?

Thank you in advance! P.S. Actually using rclone and Arq with backblaze.

pascalandy avatar Jul 30 '17 23:07 pascalandy

A docker container would be great. I'm wondering if there's a way for the build on Travis CI to build it.

Would you be interested in giving it a try? There's a bunch of helpful people here who can answer questions and offer advice. And it would be great for you to join us.

bwbeach avatar Jul 31 '17 12:07 bwbeach

A docker container would be great. I'm wondering if there's a way for the build on Travis CI to build it.

Would you be interested in giving it a try? There's a bunch of helpful people here who can answer questions and offer advice. And it would be great for you to join us.

I'd like to. What do I need to do?

msrumon avatar Feb 16 '23 18:02 msrumon

I think the pull request for adding the docker container is in review already, I've seen someone working on it a few weeks ago. Let me check on the progress of it.

ppolewicz avatar Feb 16 '23 20:02 ppolewicz

@msrumon #859 has just been merged. Would you like to take it for a spin before we upload the image to dockerhub?

ppolewicz avatar Feb 27 '23 19:02 ppolewicz

@msrumon #859 has just been merged. Would you like to take it for a spin before we upload the image to dockerhub?

Thanks. I'll have a look at it tonight.


@ppolewicz So this is what I got:

$ docker build -t b2 -f Dockerfile.template .
#2 [internal] load .dockerignore
#2 sha256:26e50c2af136e7306f3fc12dbaca52d68db3787fa40f913772706d842ed38143
#2 transferring context: 2B done
#2 DONE 0.1s

#1 [internal] load build definition from Dockerfile.template
#1 sha256:b0a839afa4fa1926fdf0eba013485fd049a3929916357103db6286593bebcd6b
#1 transferring dockerfile: 876B done
#1 DONE 0.2s
failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 26: unknown instruction: ${FILES_USED_BY_TESTS}

Is there anything I'm doing wrong?

msrumon avatar Feb 28 '23 08:02 msrumon

@msrumon you should run nox -s docker to create the Dockerfile and then you can run that

Also please note that if you edit a github issue comment, no notifications are sent. I only noticed your message by accident.

ppolewicz avatar Mar 01 '23 20:03 ppolewicz

Also please note that if you edit a github issue comment, no notifications are sent. I only noticed your message by accident.

Oops! 😬

@msrumon you should run nox -s docker to create the Dockerfile and then you can run that

Is nox some kind of CLI I have to install? Look, I don't work with Python and I barely have any stack installed natively on my PC. I run everything off of Docker (Yes, all my projects are maintained with Docker Compose file).


I'll try to use this image to generate that Dockerfile in question. Wish me luck. 🤞

msrumon avatar Mar 02 '23 11:03 msrumon

nox can be installed with pip3 install nox - it's a development tool we use in this project to run tests, build documentation etc - and now also to build a docker image.

ppolewicz avatar Mar 02 '23 18:03 ppolewicz

I'm a bit confused; the project README now contains a reference to an official docker image, but there's nothing I can find on docker hub, and pulling the image listed doesn't work. It would be great if you were a verified OSS publisher or something too for trust reasons.

ianthetechie avatar Jul 12 '23 05:07 ianthetechie

it's been built but not published so that we could catch any bugs in it and we've found some. Now that those are addressed, we'll publish it.

ppolewicz avatar Jul 20 '23 15:07 ppolewicz

Fantastic; thanks for the update @ppolewicz!

ianthetechie avatar Jul 25 '23 06:07 ianthetechie

The official image has been released https://github.com/Backblaze/B2_Command_Line_Tool#docker-image

mpnowacki-reef avatar Nov 07 '23 12:11 mpnowacki-reef