{"id":18308698,"url":"https://github.com/ardriveapp/ardrive-cli-docker","last_synced_at":"2025-08-05T04:13:24.714Z","repository":{"id":45990881,"uuid":"425038883","full_name":"ardriveapp/ardrive-cli-docker","owner":"ardriveapp","description":"Contains Dockerfile and all CI-related tooling to build a Docker image for the ArDrive CLI ","archived":false,"fork":false,"pushed_at":"2022-04-12T18:13:28.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"production","last_synced_at":"2025-07-21T00:42:16.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ardriveapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-05T17:54:01.000Z","updated_at":"2021-12-23T16:18:08.000Z","dependencies_parsed_at":"2022-08-29T20:41:19.281Z","dependency_job_id":null,"html_url":"https://github.com/ardriveapp/ardrive-cli-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ardriveapp/ardrive-cli-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive-cli-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive-cli-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive-cli-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive-cli-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardriveapp","download_url":"https://codeload.github.com/ardriveapp/ardrive-cli-docker/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardriveapp%2Fardrive-cli-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268832325,"owners_count":24314381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T16:08:59.757Z","updated_at":"2025-08-05T04:13:24.691Z","avatar_url":"https://github.com/ardriveapp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ardrive Cli Docker\nContains Dockerfile and all CI-related tooling to build a Docker image for the ArDrive CLI.\n\nKnowledge on how to set-up Docker is expected.\n\nPassword for both root and node user inside the Docker is \"ardrive\"\n## Intended Audience\nThis tool is intended for use by:\n\nArDrive power users with advanced workflows and automation in mind: bulk uploaders, those with a larger storage demand, developers, nft creators, storage/db admins, etc.\n\nAutomated workflows\n\nServices\n\n#### CLI tools build-in\n\ngit\n\njq\n\nsudo\n\nvim\n\n## Build image\n\nOn repo root:\n\n``docker build . -t ardrive-cli:latest``\n\n## Run Ardrive-CLI docker\n \nThe suggested way to run the image is with the following command\n\n``docker run --name ardrive --rm --init -it --mount type=tmpfs,destination=/home/node/tmp ardrive-cli``\n\n#### Explanation\n\n``--name ardrive-cli`` name we assign to CLI Docker. In this case \"ardrive-cli\"\n\n``--rm`` Docker will not persist once stopped.\n\n``--init`` Enforces an init process as PID 1.\n\n``--it`` Interactive and with a TTY.\n\n``--mount type=tmpfs,destination=/home/node/tmp`` Temporary in-memory file system that we use to store a wallet safely\n\n### Build a specific branch\n\nWe proportionate the branch with an ENV variable at run. e.g. to build dev branch ``-e BRANCH='dev'`` \n\nSample command:\n\n``docker run --name ardrive --rm --init -it -e BRANCH='dev' --mount type=tmpfs,destination=/home/node/tmp ardrive-cli``\n\nEnvironment variables that control the build process:\n\n``-e NO_SETUP=1 `` skips cloning and building\n\n``-e NO_AUTOBUILD=1 `` skips building process\n\n## Interact with a wallet\n\n### Put wallet inside your container\n\nTo copy our wallet inside Docker, we just need the following command.\nImage was intended to work with only ONE wallet at a time. \n\nRunning the below command a 2nd time will overwrite the 1st wallet.\n\n``docker exec -i ardrive sh -c 'cat \u003e /home/node/tmp/wallet.json' \u003c [path to my wallet file]``\n\nBear in mind that with this method, Wallet file is never written to host system.\n\n### Wallet Operations\n\nThere is a $WALLET variable directly pointing to /home/node/tmp/wallet.json inside the Docker.\n\nIn order to run any command that requires a wallet you could just replace its path with $WALLET\n\ne.g. for a private file\n\n``yarn ardrive file-info -f [file-id] -w $WALLET -p [my-unsafe-password]``\n\n## Uploading files\n\nIn order to upload stuff, you need to load your files into the container.\n\nSample command:\n``docker cp [file-or-folder-path] ardrive:home/node/uploads``\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardriveapp%2Fardrive-cli-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardriveapp%2Fardrive-cli-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardriveapp%2Fardrive-cli-docker/lists"}