Skip to content
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

Is indy vdr setup mandatory for tailsserver #43

Open
abhimin opened this issue Nov 7, 2022 · 12 comments
Open

Is indy vdr setup mandatory for tailsserver #43

abhimin opened this issue Nov 7, 2022 · 12 comments

Comments

@abhimin
Copy link

abhimin commented Nov 7, 2022

I'm trying to build and run tails server with docker file using the docker.tails_server docker file statements.

Docker build is fine but when I run image getting indy vdr url is missing.

Please suggest to setup tails server without manage scripts.

@WadeBarnes
Copy link
Member

Are you starting the container in the same fashion is it is being started in the docker-compose file (https://github.com/bcgov/indy-tails-server/blob/main/docker/docker-compose.yml#L18-L23)?

@abhimin
Copy link
Author

abhimin commented Nov 7, 2022

Yes using same commands like.

docker run -p 6543:6543 imagename tails-server
--host 0.0.0.0
--port 6543
--storage-path $STORAGE_PATH
--log-level $LOG_LEVEL

@WadeBarnes
Copy link
Member

Have you supplied values for the $STORAGE_PATH and $LOG_LEVEL variables?

@WadeBarnes
Copy link
Member

WadeBarnes commented Nov 7, 2022

This works for me:

wade@Morpheus MINGW64 ~
$ docker run -it -p 6543:6543 docker_tails-server tails-server --host 0.0.0.0 --port 6543 --storage-path /tmp/tails-files --log-level INFO
======== Running on http://0.0.0.0:6543 ========
(Press CTRL+C to quit)

@abhimin
Copy link
Author

abhimin commented Nov 7, 2022

I'm using same docker syntax as in tailserver file
Only I changed von-image:next statement...but still getting error like
The following arguments are required: --indy-vdr-proxy-url

FROM bcgovimages/von-image:node-1.12-6

ADD requirements.txt .
ADD requirements.dev.txt .

RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements.dev.txt

ADD tails_server ./tails_server
ADD bin ./bin
ADD README.md ./
ADD setup.py ./

RUN pip3 install --no-cache-dir -e .

ENTRYPOINT ["/bin/bash", "-c", "tails-server "$@""]

@WadeBarnes
Copy link
Member

Ah, you can't use the bcgovimages/von-image:node-1.12-6 as the base image for the tails server. I'm curious as to why you want to do that. The tails server is meant to be a separate standalone server from the rest of the ledger and network components. bcgovimages/von-image:next-1 contains some of the dependencies needed for the tails server, namely indy-vdr.

@abhimin
Copy link
Author

abhimin commented Nov 7, 2022

Actually I tried to build with main branch code base but I got few errors with dependencies .
I have found in a issue saying to change image version and few dependencies in requirements.txt, that is why I'm using the above version.

Can you please confirm to use the main branch of tailserver without any changes in docker image version and requirements.txt

@WadeBarnes
Copy link
Member

WadeBarnes commented Nov 7, 2022

Yes, I was using the image built from the latest source on main and using the ./manage build command.

@abhimin
Copy link
Author

abhimin commented Nov 8, 2022

Im able to build and run in my local...

Can you please share some info on how to use the tailsserver setup using current main repo in production environment.

@WadeBarnes
Copy link
Member

Here are some example OpenShift configurations for the tails server; https://github.com/bcgov/trust-over-ip-configurations/tree/main/openshift/templates/tails-server

@abhimin
Copy link
Author

abhimin commented Nov 8, 2022

Is there any licence restrictions to use this repo and use for my requirements.

Can we setup this repo and use with in any organisation as per the requirements.

@WadeBarnes
Copy link
Member

The project is open source and Apache-2.0 licensed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants