{"id":20441456,"url":"https://github.com/marcoturi/ionic-docker","last_synced_at":"2025-09-23T14:30:58.406Z","repository":{"id":51607007,"uuid":"70572639","full_name":"marcoturi/ionic-docker","owner":"marcoturi","description":"An ionic image for CI","archived":false,"fork":false,"pushed_at":"2024-07-18T14:04:05.000Z","size":34,"stargazers_count":58,"open_issues_count":5,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-07T18:15:39.031Z","etag":null,"topics":["android","chrome-headless","ci","cordova","doker","gitlab-ci","ionic","scss-lint","yarn"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/marcoturi/ionic","language":"Dockerfile","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/marcoturi.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":"2016-10-11T08:29:28.000Z","updated_at":"2024-08-27T10:15:00.000Z","dependencies_parsed_at":"2024-11-19T02:03:19.085Z","dependency_job_id":null,"html_url":"https://github.com/marcoturi/ionic-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoturi%2Fionic-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoturi%2Fionic-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoturi%2Fionic-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoturi%2Fionic-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoturi","download_url":"https://codeload.github.com/marcoturi/ionic-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233981158,"owners_count":18760781,"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","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":["android","chrome-headless","ci","cordova","doker","gitlab-ci","ionic","scss-lint","yarn"],"created_at":"2024-11-15T09:32:57.337Z","updated_at":"2025-09-23T14:30:53.134Z","avatar_url":"https://github.com/marcoturi.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://tldrlegal.com/license/mit-license#summary) [![Docker Hub](https://img.shields.io/badge/docker-ready-blue.svg)](https://registry.hub.docker.com/u/marcoturi/ionic) [![](https://images.microbadger.com/badges/image/marcoturi/ionic.svg)](https://microbadger.com/images/marcoturi/ionic \"Get your own image badge on microbadger.com\") [![](https://images.microbadger.com/badges/version/marcoturi/ionic.svg)](https://microbadger.com/images/marcoturi/ionic \"Get your own version badge on microbadger.com\")\n\n# Ionic-docker\nA ionic 1/2 image to be used with Gitlab CI\n\n### Inspired by:\n- https://github.com/procoders/ionic-docker\n- https://hub.docker.com/r/webnicer/protractor-headless/~/dockerfile/\n- https://github.com/agileek/docker\n- http://stackoverflow.com/questions/29558444/angularjs-grunt-bower-gitlab-ci-setup-for-testing\n- https://github.com/tippiq/docker-protractor\n\n### Features\n- Node\n- Npm or Yarn\n- Ionic\n- Cordova\n- Android sdk and build tools\n- Ready to run Google Chrome Headless for e2e tests\n- Ruby\n- Scss-lint support\n\n## Usage\n\n```\ndocker run -ti --rm -p 8100:8100 -p 35729:35729 marcoturi/ionic\n```\nIf you have your own ionic sources, you can launch it with:\n\n```\ndocker run -ti --rm -p 8100:8100 -p 35729:35729 -v /path/to/your/ionic-project/:/myApp:rw marcoturi/ionic\n```\n\n### Automation\nWith this alias:\n\n```\nalias ionic=\"docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \\$PWD:/myApp:rw marcoturi/ionic ionic\"\n```\n\n\u003e Due to a bug in ionic, if you want to use ionic serve, you have to use --net host option :\n\n```\nalias ionic=\"docker run -ti --rm --net host --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \\$PWD:/myApp:rw marcoturi/ionic ionic\"\n```\n\n\u003e Know you need gradle for android, I suggest to mount ~/.gradle into /root/.gradle to avoid downloading the whole planet again and again\n\nyou can follow the [ionic tutorial](http://ionicframework.com/getting-started/) (except for the ios part...) without having to install ionic nor cordova nor nodejs on your computer.\n\n```bash\nionic start myApp tabs\ncd myApp\nionic serve\n# If you didn't used --net host, be sure to chose the ip address, not localhost, or you would not be able to use it\n```\nopen http://localhost:8100 and everything works.\n\n### Android tests\nYou can test on your android device, just make sure that debugging is enabled.\n\n```bash\ncd myApp\nionic cordova platform add android\nionic cordova build android\nionic cordova run android\n```\n\n### FAQ\n* The application is not installed on my android device\n    * Try `docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v \\$PWD:/myApp:rw marcoturi/ionic adb devices` your device should appear\n* The adb devices show nothing whereas I can see it when I do `adb devices` on my computer\n    * You can't have adb inside and outside docker at the same time, be sure to `adb kill-server` on your computer before using this image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoturi%2Fionic-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoturi%2Fionic-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoturi%2Fionic-docker/lists"}