-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker image build error #3
Comments
After running the container I tried to launch ./build.sh again, but it produced the same error. |
This is the output of the unit tests. I guess they are not supposed to fail, so there may be something wrong in my
|
@marcorosa this is actually great! The test suite is not passing for a couple of reasons, primarily because the test suite is still WIP. I took a detour in the middle of binding upload/download & reacting to a breaking change in libstorj to add tests for failure scenarios. These exception tests should make things much easier to debug when people try to get the repo running. Also, those warnings shouldn't prevent things from building and running. If you see errors in c compilation output, that might be another story. So it seems like you're env is working. You should be able to run some python in the # from project root:
import lib.ext.python_libstorj as pystorj
# from `./lib/` (if you're adding to the lib, for example):
from ext import python_libstorj as pystorj One more thingThere were a couple tests that were surfacing
|
As of ded51f0, my test output looks like this in the docker compose env described by the readme:
I would be curious to know if you are able to reproduce this by checking out that commit. I'm still catching up on error handling in the test suite, but after that one thing I'm going to have to add is a step to the env build process to automate user creation and/or update the readme to document how to add users manually (probably using |
^^ related: storj-archived/libstorj#435 |
It's also noteworthy that currently, to use the |
^^ as of 9752f88 this is handled by So to update an existing docker composition you would just do: For using docker outside of docker-compose, there are some |
Tests with repo at ded51f0, both with docker and docker-compose environments:
|
At the latest version of branch master, more tests fail (because more tests are implemented, actually), and all raising the same exception (the same as before, i.e., |
If you're just using docker, you can just uncomment Dockerfile:29-30 and then you don't have to worry about running a bridge locally. If you do that though, you'll need to set your |
My bad: with Dockerfile environment varriables everything works. I change the bridge protocol to https and the host to api.storj.io, but I forgot to change the port to 443.
|
Great! The failing tests have Also, the tests failing with |
docker build --tag python_libstorj .
produces the following warnings:The text was updated successfully, but these errors were encountered: