{"id":21652153,"url":"https://github.com/bitroniq/docker-wordpress-cli-sage","last_synced_at":"2026-04-15T19:38:38.495Z","repository":{"id":68694560,"uuid":"157552879","full_name":"bitroniq/docker-wordpress-cli-sage","owner":"bitroniq","description":"WordPress-cli Sage development environment using Docker, composer, yarn, webpack and ssh service","archived":false,"fork":false,"pushed_at":"2019-04-28T18:51:51.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T07:47:22.671Z","etag":null,"topics":["docker","dockerfile","roots-io","sage","ssh","wordpress","wp-cli"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/bitroniq/docker-wordpress-cli-sage/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitroniq.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-14T13:28:27.000Z","updated_at":"2020-07-11T07:34:11.000Z","dependencies_parsed_at":"2023-05-31T10:45:14.135Z","dependency_job_id":null,"html_url":"https://github.com/bitroniq/docker-wordpress-cli-sage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitroniq/docker-wordpress-cli-sage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitroniq%2Fdocker-wordpress-cli-sage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitroniq%2Fdocker-wordpress-cli-sage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitroniq%2Fdocker-wordpress-cli-sage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitroniq%2Fdocker-wordpress-cli-sage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitroniq","download_url":"https://codeload.github.com/bitroniq/docker-wordpress-cli-sage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitroniq%2Fdocker-wordpress-cli-sage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","dockerfile","roots-io","sage","ssh","wordpress","wp-cli"],"created_at":"2024-11-25T07:51:26.429Z","updated_at":"2026-04-15T19:38:38.473Z","avatar_url":"https://github.com/bitroniq.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-wordpress-cli-sage\n\n[![](https://images.microbadger.com/badges/image/bitroniq/docker-wordpress-cli-sage.svg)](https://microbadger.com/images/bitroniq/docker-wordpress-cli-sage \"Get your own image badge on microbadger.com\")\n[![](https://images.microbadger.com/badges/version/bitroniq/docker-wordpress-cli-sage.svg)](https://microbadger.com/images/bitroniq/docker-wordpress-cli-sage \"Get your own version badge on microbadger.com\")\n\n\u003e Docker image with [wp-cli](https://wp-cli.org/), [Sage](https://roots.io/sage/) development environment (npm, nodejs, composer, yarn, webpack) and **ssh** service.\n\n\u003e The image is based on the official [wordpress-cli:latest](https://hub.docker.com/r/library/wordpress/).\n\n\u003e The basic idea of this image is to attach to existing wordpress stack based on official [wordpress:latest](https://hub.docker.com/r/library/wordpress/) image.\n\n# Usage\n\nThis image variant does not contain WordPress itself, but instead contains WP-CLI.\n\n## Interactive run\nThe simplest way to use it with an existing WordPress container would be something similar to the following:\n\n```shell\n$ docker run -it --rm \\\n    --volumes-from some-wordpress \\\n    --network container:some-wordpress \\\n    bitroniq/docker-wordpress-cli-sage /bin/bash\n```\n\n## Start in the background and use the SSH\n\n```\n$ docker run -d -p 2222:22 --name wordpress-cli-sage \\\n    --volumes-from some-wordpress \\\n    --network container:some-wordpress \\\n    bitroniq/docker-wordpress-cli-sage\n```\n\nThen you can SSH to the container with password: `password`:\n```\n$ ssh -p 2222 www-data@localhost\n```\n\n## Interactive access to the running container\n\nInstead of SSH you can access directly\n```\n$ docker exec -it wordpress-cli-sage /bin/bash\n```\n\nFor WP-CLI to interact with a WordPress install, it needs access;\n  - to the on-disk files of the WordPress install,\n  - and access to the database\n\nThe easiest way to accomplish that wp-config.php does not require changes is to simply join the networking context of the existing and presumably working WordPress container.\n\nThere are many other ways to accomplish that, for example using docker-compose.yml.\n\n# SAGE Theme installation\n\nPlease visit the official SAGE repository: https://github.com/roots/sage#theme-installation\n\n\n# To Do List:\n* [x] Usa official wordpress-cli image as a base for SAGE\n  - allows to attach to exisitng stack with official wordpress\n* [x] Add SSHD to the wp-cli image:\n  - https://github.com/danielguerra69/alpine-sshd\n* [x] Make sure www-data user is used to match www-data (33:33) on the official `wordpress:latest` image\n* [x] passwd\n* [x] make sure it is possible to SSH and SFTP\n* [x] make sure it is possible to SFTP\n* [x] install npm, composer, yarn, webpack\n* [x] Verify all commands\n  - `composer create-project roots/sage`\n  - `yarn start` ... Compile assets when file changes are made, start Browsersync session\n  - `yarn build` ... Compile and optimize the files in your assets directory\n  - `yarn build:production` ... Compile assets for production\n\n```\nbash-4.4# yarn build:production\n DONE  Compiled successfully in 19526ms\n\n                         Asset       Size  Chunks             Chunk Names\n      scripts/main_172175dd.js    73.1 kB       0  [emitted]  main\nscripts/customizer_172175dd.js  746 bytes       1  [emitted]  customizer\n      styles/main_172175dd.css     191 kB       0  [emitted]  main\n                   assets.json  161 bytes          [emitted]\nDone in 24.08s.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitroniq%2Fdocker-wordpress-cli-sage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitroniq%2Fdocker-wordpress-cli-sage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitroniq%2Fdocker-wordpress-cli-sage/lists"}