uplink icon indicating copy to clipboard operation
uplink copied to clipboard

Docker uplink-cli image run guide

Open ValeriiLav opened this issue 3 years ago • 3 comments

Hi there! Is it possible to provide to community manual on how to run the uplink docker image?

When I run uplink in docker-compose

  uplink:
    container_name: Uplink
    image: docker.io/storjlabs/uplink:latest
    networks:
      - fullstack
    volumes:
      - /root/.config/storj/uplink:/root/.local/storj/uplink
    env_file:
      - .env      

with .env:

API_KEY=xxx
[email protected]:7777

configs in root/.config/storj/uplink:

~/.config/storj/uplink# cat access.json 
{
	"Default": "shellmetadatas_access_s3_api",
	"Accesses": {
		"shellmetadatas_access_s3_api": "xxx"
	}
} 

~/.config/storj/uplink# cat config.ini - empty

and instantly after start it throws error:

~#  docker logs Uplink
Error: uplink: API key cannot be empty
Select your satellite:
	[1] us1.storj.io
	[2] eu1.storj.io
	[3] ap1.storj.io
Enter number or satellite address as "<nodeid>@<address>:<port>" [1]: Choose an access name (use lowercase letters) ["default"]: Enter your API key: 

ValeriiLav avatar Aug 12 '22 10:08 ValeriiLav

Thanks for your report.

This container has been unmaintained for a long time and the current version no longer works due to several bugs in the entrypoint. The Dockerfile was removed in the beginning of this year.

But I think it would be good to release a new working container again.

Can you describe to me what you are trying to achieve? I'd like to be sure it will actually help you. Are you trying to use uplink-cli?

Erikvv avatar Aug 12 '22 18:08 Erikvv

Hello @Erikvv, thanks for the fast response.

I am going to run uplink as a microservice through docker-compose. So that it would be nice to have an option to pass settings to docker container through .env file, or at least a confiing.json.

Can you describe to me what you are trying to achieve?

We need to share access to the files that are in the bucket. For each file, there will be a dedicated URL.

Are you trying to use uplink-cli?

Yes.

ValeriiLav avatar Aug 15 '22 07:08 ValeriiLav

Change https://review.dev.storj.io/c/storj/storj/+/9304 mentions this issue.

storj-gerrit[bot] avatar Jan 16 '23 19:01 storj-gerrit[bot]