{"id":26787004,"url":"https://github.com/oreactjs/oreactd","last_synced_at":"2025-03-29T12:17:38.370Z","repository":{"id":240743140,"uuid":"269008411","full_name":"oreactjs/oreactd","owner":"oreactjs","description":"OreactD - Docker image for ORUP","archived":false,"fork":false,"pushed_at":"2020-06-25T03:37:56.000Z","size":172,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-20T19:08:12.090Z","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/oreactjs.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":"2020-06-03T06:33:15.000Z","updated_at":"2024-05-20T19:08:13.824Z","dependencies_parsed_at":"2024-05-20T19:08:13.446Z","dependency_job_id":"ccc081e8-0779-4da0-8680-64d1bfc53d6c","html_url":"https://github.com/oreactjs/oreactd","commit_stats":null,"previous_names":["oreactjs/oreactd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreactjs%2Foreactd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreactjs%2Foreactd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreactjs%2Foreactd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreactjs%2Foreactd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oreactjs","download_url":"https://codeload.github.com/oreactjs/oreactd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180885,"owners_count":20736460,"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":"2025-03-29T12:17:37.936Z","updated_at":"2025-03-29T12:17:38.362Z","avatar_url":"https://github.com/oreactjs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OreactD - Docker image for ORUP\n\n## Build and Push\n* $ sudo docker build -t oreact/app:base .\n* $ sudo docker push oreact/app:base\n\n## Supported tags\n\nPlease see the explanation of the [tag variations](#tag-variations) (e.g. `-binbuild`, `-onbuild`) below.\n\n### Node 12 \n\n#### Node 12.16.1\n\n* `node-12-base`, `node-12.16.1-base`\n* `node-12-binbuild`, `node-12.16.1-binbuild`\n* `node-12-onbuild`, `node-12.16.1-onbuild`\n* `node-12-devbuild`, `node-12.16.1-devbuild`\n\n\n## Tag Variations\n\nThere are three variations of each major Node-based release.\n\n* `-base`\n* `-binbuild`\n* `-onbuild`\n* `-devbuild`\n\n\nThere are two main ways you can use Docker with Oreact apps. They are:\n\n1. Build a Docker image for your app\n2. Running a Oreact bundle with Docker\n\n**OreactD supports these two ways. Let's see how to use OreactD**\n\n### 1. Build a Docker image for your app\n\nWith this method, your app will be converted into a Docker image. Then you can simply run that image.\n\nFor that, you can use `oreact/app:onbuild` as your base image. Magically, that's only thing you have to do. Here's how to do it:\n\nAdd following `Dockerfile` into the root of your app:\n\n~~~shell\nFROM oreact/app:onbuild\n~~~\n\nThen you can build the docker image with:\n\n~~~shell\ndocker build -t yourname/app .\n~~~\n\nThen you can run your oreact image with\n\n~~~shell\ndocker run -d \\\n    -e PORT=8080 \\        \n    -p 8080:80 \\\n    yourname/app\n~~~\nThen you can access your app from the port 8080 of the host system.\n\n\n### 2. Running a Oreact bundle with Docker\n\nFor this you can directly use the OreactD to run your oreact bundle. OreactD can accept your bundle either from a local mount or from the web. Let's see:\n\n#### 2.1 From a Local Mount\n\n~~~shell\ndocker run -d \\\n    -e PORT=8080 \\    \n    -v /mybundle_dir:/bundle \\\n    -p 8080:80 \\\n    oreact/app:base\n~~~\n\nWith this method, OreactD looks for the tarball version of the oreact bundle. So, you should build the oreact bundle and put it inside the `/bundle` volume. This is how you can build a oreact bundle.\n\n~~~shell\noreact build ./\n~~~\n\n#### 2.1 From the Web\n\nYou can also simply give URL of the tarball with `BUNDLE_URL` environment variable. Then OreactD will fetch the bundle and run it. This is how to do it:\n\n~~~shell\ndocker run -d \\\n    -e PORT=8080 \\\n    -e BUNDLE_URL=http://mybundle_url_at_s3.tar.gz \\\n    -p 8080:80 \\\n    oreact/app:base\n~~~\n\n#### 2.2 With Docker Compose\n\ndocker-compose.yml\n~~~shell\ndashboard:\n  image: yourrepo/yourapp\n  ports:\n   - \"80:80\"\n  links:\n   - mongo\n  environment:\n   - PORT=8080   \n\nmongo:\n  image: mongo:latest\n~~~\n\nWhen using Docker Compose to start a Oreact container with a Mongo container as well, we need to wait for the database to start up before we try to start the Oreact app, else the container will fail to start.\n\nThis sample docker-compose.yml file starts up a container that has used abernix/meterod as its base and a mongo container. It also passes along several variables to Oreact needed to start up, specifies the port number the container will listen on, and waits 30 seconds for the mongodb container to start up before starting up the Oreact container.\n\n#### Rebuilding Binary Modules\n\nSometimes, you need to rebuild binary npm modules. If so, expose `REBUILD_NPM_MODULES` environment variable. It will take couple of seconds to complete the rebuilding process.\n\n~~~shell\ndocker run -d \\\n    -e PORT=8080 \\    \n    -e BUNDLE_URL=http://mybundle_url_at_s3.tar.gz \\\n    -e REBUILD_NPM_MODULES=1 \\\n    -p 8080:80 \\\n    oreact/app:binbuild\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foreactjs%2Foreactd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foreactjs%2Foreactd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foreactjs%2Foreactd/lists"}