{"id":15858996,"url":"https://github.com/nitrocode/dockerballs","last_synced_at":"2026-01-30T14:34:04.583Z","repository":{"id":84691057,"uuid":"120834569","full_name":"nitrocode/dockerballs","owner":"nitrocode","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-14T21:18:25.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T15:47:38.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitrocode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-09T00:18:49.000Z","updated_at":"2018-10-14T21:18:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e9e39f4-102a-4f14-9cad-048e5eb1a23d","html_url":"https://github.com/nitrocode/dockerballs","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"bbc62d505a74199f991185a19f312f161b2e92e9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nitrocode/dockerballs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fdockerballs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fdockerballs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fdockerballs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fdockerballs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrocode","download_url":"https://codeload.github.com/nitrocode/dockerballs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fdockerballs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"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":[],"created_at":"2024-10-05T21:02:36.611Z","updated_at":"2026-01-30T14:34:04.276Z","avatar_url":"https://github.com/nitrocode.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerize\n\nThis is a quick project to whip up a dockerized container for a friend in both `Dockerfile` and `docker-compose.yml`.\n\nThe Node.js app starts on port `3000` in the container and is mapped to port `3001` on the host.\n\n## Scripts\n\nIn the `scripts/` directory, the following scripts exist:\n\n* `dockerup.sh` - uses `docker-compose.yml` which uses `Dockerfile` to build an image. See `docker-compose.yml.orig` to show how to create a docker container without the `Dockerfile`. \n* `dockerbuild.sh` - uses `Dockerfile` to build an image\n* `dockerdel.sh` - removes images with the name\n* `dockerrun.sh` - runs the docker image in detached mode\n* `dockershell.sh` - runs the docker image and executes `bash` inside the shell\n\nThe aforementioned scripts should be run in root directory of the repo or the docker files will not be found. See below in the Usage section.\n\n## Usage\n\n### Build\n\n    $ ./scripts/dockerup.sh\n    Recreating docker_node_1 ... done\n\n### Hit on Linux\n\n    $ curl localhost:3001\n    BALLS\n\n### Hit on OSX\n\nOn OSX, I used the [Docker tutorial](https://pilsniak.com/how-to-install-docker-on-mac-os-using-brew/) by Marcin Pilśniak and learned that you cannot use localhost to hit the app. Instead, docker-machine runs docker containers on a separate IP.\n\nRun this command to find the IP\n\n    $ docker-machine ip default\n    192.168.64.2\n    $ curl localhost:3001\n    curl: (7) Failed to connect to localhost port 3001: Connection refused\n    $ curl 192.168.64.2:3001\n    BALLS\n\n## Linting\n\n    $ npm i\n    $ ./node_modules/.bin/dockerlint\n    \n    INFO: Dockerfile is OK.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrocode%2Fdockerballs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrocode%2Fdockerballs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrocode%2Fdockerballs/lists"}