From ab893e616dc00cc91e22f7364e11435ebd6eec74 Mon Sep 17 00:00:00 2001 From: ArshErgon Date: Sun, 30 Oct 2022 14:19:11 +0430 Subject: [PATCH 1/2] added a dockerfile and readme for docker build --- Dockerfile | 14 ++++++++++++++ README.md | 2 ++ dockerREADME.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 Dockerfile create mode 100644 dockerREADME.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a499016e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:alpine + +RUN mkdir node + +COPY . ./node + +WORKDIR /node/ + +RUN npm install + +CMD npm start + + + diff --git a/README.md b/README.md index 15975310..2af2beb0 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ A list of semi to fully remote-friendly companies in or around tech. Contributions are very welcome! Please [review our contributing guidelines](https://github.com/remoteintech/remote-jobs/tree/main/.github/CONTRIBUTING.md) and then submit a new entry or update. +To run with Docker Please go [dockerREADME.md](https://github.com/remoteintech/remote-jobs/blob/main/dockerREADME.md) + ## Companies Name | Website | Region diff --git a/dockerREADME.md b/dockerREADME.md new file mode 100644 index 00000000..0db095dd --- /dev/null +++ b/dockerREADME.md @@ -0,0 +1,48 @@ +### For starting the Docker File + +``` +>remote-jobs $ sudo docker build remote -t remote-jobs +>remote-jobs $ sudo docker images ls +REPOSITORY TAG IMAGE ID CREATED SIZE +remote-job latest 971f9317008d 14 minutes ago 204MB +>remote-jobs $ sudo docker run -p 8080:8081 remote-job +> start +> bin/serve-site.js + +Parsing content +Requesting URL "https://blog.remoteintech.company/" +Requesting URL "https://s1.wp.com/_static/??-eJyNktFSAyEMRX9IiGvXVh8cvwXYDKYGliHQDn..." +Requesting URL "https://s1.wp.com/_static/??-eJyVUO1qwzAMfKFpImOk7Mfos7iqmjixLWPLlL..." +Requesting URL "https://s2.wp.com/wp-content/mu-plugins/global-print/global-print.c..." +Requesting URL "https://s0.wp.com/wp-content/themes/h4/global.css?m=1420737423h&css..." +Requesting URL "https://s0.wp.com/?custom-css=1&csblog=9eXnX&cscache=6&csrev=6" +Requesting URL "https://s0.wp.com/_static/??-eJx9jNsKwjAMhl/ILky0sAvxWUobZrYegkkpe3..." +Copying favicon files +Generating search index +Writing main page +Writing company pages.......................................................................... +Writing custom 404 page + +Writing empty robots.txt + +Site files are ready in "site/build/" +Starting up http-server, serving /node/site/build + +http-server version: 14.0.0 + +http-server settings: +CORS: disabled +Cache: 3600 seconds +Connection Timeout: 120 seconds +Directory Listings: visible +AutoIndex: visible +Serve GZIP Files: false +Serve Brotli Files: false +Default File Extension: none + +Available on: + http://127.0.0.1:8080 + http://172.17.0.2:8080 +Hit CTRL-C to stop the server + +``` From c15f5aa0c0aea55c1e8f80fffe61e08e04d43a64 Mon Sep 17 00:00:00 2001 From: ArshErgon Date: Mon, 31 Oct 2022 08:08:10 +0430 Subject: [PATCH 2/2] shifted the dockerfile info to the contribution.md --- .github/CONTRIBUTING.md | 50 +++++++++++++++++++++++++++++++++++++++++ README.md | 1 - dockerREADME.md | 48 --------------------------------------- 3 files changed, 50 insertions(+), 49 deletions(-) delete mode 100644 dockerREADME.md diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 8490c7ea..67b4be3e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -12,3 +12,53 @@ Pull Requests will be accepted based on the following: 1. The company has a profile page and the company name links to it (see example [here](/company-profiles/example.md)) Thanks for contributing! + +# Docker +### For starting the Docker File + +``` +>remote-jobs $ sudo docker build remote -t remote-jobs +>remote-jobs $ sudo docker images ls +REPOSITORY TAG IMAGE ID CREATED SIZE +remote-job latest 971f9317008d 14 minutes ago 204MB +>remote-jobs $ sudo docker run -p 8080:8081 remote-job +> start +> bin/serve-site.js + +Parsing content +Requesting URL "https://blog.remoteintech.company/" +Requesting URL "https://s1.wp.com/_static/??-eJyNktFSAyEMRX9IiGvXVh8cvwXYDKYGliHQDn..." +Requesting URL "https://s1.wp.com/_static/??-eJyVUO1qwzAMfKFpImOk7Mfos7iqmjixLWPLlL..." +Requesting URL "https://s2.wp.com/wp-content/mu-plugins/global-print/global-print.c..." +Requesting URL "https://s0.wp.com/wp-content/themes/h4/global.css?m=1420737423h&css..." +Requesting URL "https://s0.wp.com/?custom-css=1&csblog=9eXnX&cscache=6&csrev=6" +Requesting URL "https://s0.wp.com/_static/??-eJx9jNsKwjAMhl/ILky0sAvxWUobZrYegkkpe3..." +Copying favicon files +Generating search index +Writing main page +Writing company pages.......................................................................... +Writing custom 404 page + +Writing empty robots.txt + +Site files are ready in "site/build/" +Starting up http-server, serving /node/site/build + +http-server version: 14.0.0 + +http-server settings: +CORS: disabled +Cache: 3600 seconds +Connection Timeout: 120 seconds +Directory Listings: visible +AutoIndex: visible +Serve GZIP Files: false +Serve Brotli Files: false +Default File Extension: none + +Available on: + http://127.0.0.1:8080 + http://172.17.0.2:8080 +Hit CTRL-C to stop the server + +``` diff --git a/README.md b/README.md index 2af2beb0..83ce8551 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ A list of semi to fully remote-friendly companies in or around tech. Contributions are very welcome! Please [review our contributing guidelines](https://github.com/remoteintech/remote-jobs/tree/main/.github/CONTRIBUTING.md) and then submit a new entry or update. -To run with Docker Please go [dockerREADME.md](https://github.com/remoteintech/remote-jobs/blob/main/dockerREADME.md) ## Companies diff --git a/dockerREADME.md b/dockerREADME.md deleted file mode 100644 index 0db095dd..00000000 --- a/dockerREADME.md +++ /dev/null @@ -1,48 +0,0 @@ -### For starting the Docker File - -``` ->remote-jobs $ sudo docker build remote -t remote-jobs ->remote-jobs $ sudo docker images ls -REPOSITORY TAG IMAGE ID CREATED SIZE -remote-job latest 971f9317008d 14 minutes ago 204MB ->remote-jobs $ sudo docker run -p 8080:8081 remote-job -> start -> bin/serve-site.js - -Parsing content -Requesting URL "https://blog.remoteintech.company/" -Requesting URL "https://s1.wp.com/_static/??-eJyNktFSAyEMRX9IiGvXVh8cvwXYDKYGliHQDn..." -Requesting URL "https://s1.wp.com/_static/??-eJyVUO1qwzAMfKFpImOk7Mfos7iqmjixLWPLlL..." -Requesting URL "https://s2.wp.com/wp-content/mu-plugins/global-print/global-print.c..." -Requesting URL "https://s0.wp.com/wp-content/themes/h4/global.css?m=1420737423h&css..." -Requesting URL "https://s0.wp.com/?custom-css=1&csblog=9eXnX&cscache=6&csrev=6" -Requesting URL "https://s0.wp.com/_static/??-eJx9jNsKwjAMhl/ILky0sAvxWUobZrYegkkpe3..." -Copying favicon files -Generating search index -Writing main page -Writing company pages.......................................................................... -Writing custom 404 page - -Writing empty robots.txt - -Site files are ready in "site/build/" -Starting up http-server, serving /node/site/build - -http-server version: 14.0.0 - -http-server settings: -CORS: disabled -Cache: 3600 seconds -Connection Timeout: 120 seconds -Directory Listings: visible -AutoIndex: visible -Serve GZIP Files: false -Serve Brotli Files: false -Default File Extension: none - -Available on: - http://127.0.0.1:8080 - http://172.17.0.2:8080 -Hit CTRL-C to stop the server - -```