{"id":22976493,"url":"https://github.com/interviewstreet/dockerfile-sample","last_synced_at":"2026-01-16T02:04:40.415Z","repository":{"id":148354974,"uuid":"183569113","full_name":"interviewstreet/dockerfile-sample","owner":"interviewstreet","description":"A sample dockerfile to show how one can upload custom images into Hackerrank's platform","archived":false,"fork":false,"pushed_at":"2019-05-15T15:15:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":79,"default_branch":"master","last_synced_at":"2025-02-07T23:27:06.584Z","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/interviewstreet.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":"2019-04-26T06:18:23.000Z","updated_at":"2019-05-15T15:15:24.000Z","dependencies_parsed_at":"2023-05-19T20:45:23.171Z","dependency_job_id":null,"html_url":"https://github.com/interviewstreet/dockerfile-sample","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/interviewstreet%2Fdockerfile-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fdockerfile-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fdockerfile-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fdockerfile-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interviewstreet","download_url":"https://codeload.github.com/interviewstreet/dockerfile-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777791,"owners_count":20832033,"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":[],"created_at":"2024-12-15T00:51:32.943Z","updated_at":"2026-01-16T02:04:40.386Z","avatar_url":"https://github.com/interviewstreet.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Custom Environment\n\nThis is a sample project that can be supplied to HackerRank as custom environment that can be brought up for candidates taking the test.\n\nThe project is to be structured as a typical Dockerized project repository with the only mandatory file being the `Dockerfile` itself. There are a few caveats which need to be kept in mind though and they are as described below.\n\n## Dockerfile Specifications\n\n- The `FROM` instruction has to mandatorily be set to `ubuntu:16.04`. This will later be replaced by `gcr.io/che-fullstack/rba-base:latest` when the image is built. The contents of this image is listed in the next section.\n- In the base image the `USER` is set to `user`. Hence `sudo` will need to be appended to `RUN` instructions to perform privileged actions. For testing, the instructions in the sample `Dockerfile` can be used to add `user` which can then followed by the custom instructions.\n- Additional users can also be added if necessary but ensure the default user is set to `user` if overridden by previous instructions.\n- Additional files can be placed in the project root to `COPY` or `ADD` to the image through the Dockerfile.\n- DO NOT override the `ENTRYPOINT` or `CMD` instructions. Commands to be executed can be done so using the `Run`, `Install` or `Test` commands that are allowed to be configured during Question creation in HackerRank.\n- The `WORKDIR` is set to `/projects`. Ensure it is reset to the same value if overridden by previous instructions.\n\n### Base Image\n\nThe image `gcr.io/che-fullstack/rba-base:latest` consists of\n\n- Ubuntu:16.04\n- Essential system packages (sudo, bash, wget, unzip, curl, software-properties-common, zip, rar, unrar, vim , git, iputils-ping, net-tools etc.)\n- Node v8.15.1 LTS and npm v6.4.1\n- Java-1.8.0-openjdk-amd64\n\nWhile preparing the Dockerfile, ensure there are no conflicts arising because of the above.\n\n## Limits\n\n- Maximum Image Size: 1GB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fdockerfile-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterviewstreet%2Fdockerfile-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fdockerfile-sample/lists"}