From 93b07c5881fe990f35bb195e6dff1a446559c15c Mon Sep 17 00:00:00 2001 From: Nathan Meyers Date: Mon, 19 Jun 2017 15:55:21 -0700 Subject: [PATCH 01/17] Update docker-compose.yml --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 4df6092..dd92422 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,10 @@ services: image: mongo ports: - "27017:27017" + 2ndDb: + image: mongo + ports: + - "27017:27017" web: build: . ports: From 94d6c0c9347f089d3351a86df645156ff0801736 Mon Sep 17 00:00:00 2001 From: Nathan Meyers Date: Mon, 19 Jun 2017 16:10:28 -0700 Subject: [PATCH 02/17] Update docker-compose.yml --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index dd92422..08b5524 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: image: mongo ports: - "27017:27017" - 2ndDb: + dbNumber2: image: mongo ports: - "27017:27017" From a0b2988968280ff8ac1df6952fb3d86ceea78664 Mon Sep 17 00:00:00 2001 From: Nathan Meyers Date: Mon, 19 Jun 2017 16:14:59 -0700 Subject: [PATCH 03/17] Update docker-compose.yml --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 08b5524..562f89b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,10 @@ services: image: mongo ports: - "27017:27017" + dbNumber3: + image: mongo + ports: + - "27017:27017" web: build: . ports: From e1da746bc6558d3ac83d26a1b2ac10bed8f8b505 Mon Sep 17 00:00:00 2001 From: Nathan Meyers Date: Mon, 19 Jun 2017 16:52:16 -0700 Subject: [PATCH 04/17] Update docker-compose.yml --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 562f89b..d79b148 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,10 @@ services: image: mongo ports: - "27017:27017" + dbNumber4: + image: mongo + ports: + - "27017:27017" web: build: . ports: From 8da7e4c3f615550a650f2d93012e0d0a10e800e7 Mon Sep 17 00:00:00 2001 From: Nathan Meyers Date: Mon, 19 Jun 2017 17:36:16 -0700 Subject: [PATCH 05/17] Update docker-compose.yml --- docker-compose.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d79b148..97abb3e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,10 +4,6 @@ services: image: mongo ports: - "27017:27017" - dbNumber2: - image: mongo - ports: - - "27017:27017" dbNumber3: image: mongo ports: From aee38f5a47910c6b293605e9d56529f4c46b7863 Mon Sep 17 00:00:00 2001 From: Nathan Meyers Date: Mon, 19 Jun 2017 17:57:26 -0700 Subject: [PATCH 06/17] Update docker-compose.yml --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 97abb3e..6c525dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,10 @@ services: image: mongo ports: - "27017:27017" + dbNumber44222211: + image: mongo + ports: + - "27017:27017" web: build: . ports: From fc7fa5c420c167f811073df3a8a89f1c267b86c1 Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Tue, 20 Jun 2017 17:01:44 -0700 Subject: [PATCH 07/17] Update index.js --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 4eb72a1..980cc29 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,8 @@ app.listen(port, () => { console.log('Application running at: ' + hostName) }) +// Test commit + app.use(bodyParser.json()) app.use(logErrors) app.use(errorHandler) From 1af672eebfc991f6627aee7b0f1dba08df38098e Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Tue, 20 Jun 2017 17:04:57 -0700 Subject: [PATCH 08/17] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f35a4ad..6f4eff8 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,5 @@ EXPOSE 3000 # Run Application CMD npm start + +# DOOOOBIE From 9829980c4e54ee848400eb86096b16cfefab2970 Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Tue, 20 Jun 2017 17:37:21 -0700 Subject: [PATCH 09/17] Sohail test --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f4eff8..f35a4ad 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,3 @@ EXPOSE 3000 # Run Application CMD npm start - -# DOOOOBIE From 0ad0c4b1f1a562a704c20a098d142e02b2039ee9 Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Tue, 20 Jun 2017 18:17:14 -0700 Subject: [PATCH 10/17] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f35a4ad..b1b09d7 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,5 @@ EXPOSE 3000 # Run Application CMD npm start + +# DOOBIE AGAIN From 03ffd667bb6db6d4715d8a2aa6f43d5a0a9e4ca2 Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Wed, 21 Jun 2017 11:43:35 -0700 Subject: [PATCH 11/17] Update README.md --- README.md | 90 ------------------------------------------------------- 1 file changed, 90 deletions(-) diff --git a/README.md b/README.md index 07352d1..8766c6c 100644 --- a/README.md +++ b/README.md @@ -11,93 +11,3 @@ $ npm start ## Running on Runnable.io This guide will help you setup Runnable templates for a simple Node.js web application. This guide will assume that you don't have a Dockerfile and want Runnable to generate the Dockerfile for you using a simple setup guide. - -### Configuring the App - -1. Choose your GitHub org. -2. On the _Configure_ page, click on the __Create Template__ button. -![node1](/images/node1.png) -3. Find the repository you would like to configure the template for. In this case, we are starting with the `node-web` repository. -![node2](/images/node2.png) -4. Choose the first option to use our simple setup guide. -![node2](/images/node2a.png) -5. Give your template a name. This name will be used to generate the template URLs of all the containers that will launch from this template. -![node2](/images/node2b.png) -6. Next, you’ll be able to select your app’s Stack Type, Version and Branch for your template. Go ahead and choose Node.js for your stack type, and select the version you want to use. Make sure you choose the branch that corresponds to your team’s main integration branch (‘master’ or ‘develop’ for example). -![node3](/images/node3.png) -6. On the next step, you can specify additional Packages, Build Commands, and the Container CMD. - -#### Packages - -This option allows you to install any tools, libraries, or frameworks you need. Add multiple packages by separating them with spaces. You can specify packages that are listed in the Ubuntu Aptitude library. -![node4](/images/node4.png) - -#### Build Commands - -Use this option to specify any commands needed to build and prepare your app (supports UNIX bash format). These commands will run in the root folder of the repository after every push. This is also the perfect place to run any commands to build any assets (such as css, html and minified javascript code). - -For our simple API repository, this is where we’ll specify "npm install". -![node5](/images/node5.png) - -Note: Build commands cannot connect to any other container during a build. It is therefore not recommended to seed databases or communicate with another container using the Build Commands. - -#### Container CMD - -Here the main run command for your app is specified. Important: the container will stop running when this command exits. For our simple API repository, we will specify "npm start". - -NOTE: Commands that run here will have network access to other Runnable containers. TIP: use "&&" to run multiple commands; for example, to run a migration on your database and start your app, you can specify "npm run migrations && npm start" - -![node6](/images/node6.png) - -10. Click Next. Additional configuration options are revealed to customize your container further: - -#### Environment Variables - -Add any required Environtment Variables your app may need. These values will be inserted into a container's environment when it launches from the template. The the syntax for entering in Environment variables is KEY=VAL i.e. if you are trying to set the "CONFIG" to "DEV", you would input "CONFIG=DEV". - -#### Files & SSH Keys - -Use this tool to add any addtional configuration files, other GitHub repositories, SSH Keys or assets your repository needs to build and run properly. This is also the option to use if you have to upload any override files to overwrite any hard coded values in your repository. - -For more details, Check Out: - -1. [Adding Files to your Container](https://support.runnable.com/hc/en-us/articles/208221743) -2. [Adding SSH Keys to build private modules](https://support.runnable.com/hc/en-us/articles/208018586-My-build-is-failing-because-of-No-Such-Key-or-Host-key-verification-failed-What-do-I-do-) - -#### Exposed Ports - -Open up any ports your repository may need. - -Our simple API repository only needs port "3000" to be open. -![node7](/images/node7.png) - -1. Once you are happy with Save & Build to save our changes and trigger your first build. -2. You will be automatically transitioned to the Logs tab of your configuration. Here you will be able to access: - -#### Build Logs - -These logs correspond to all the output from the build process of your template. Any errors here will correspond to configuration options you have specified in your repository, Build Commands, Packages and Files & SSH keys. - -![node8](/images/node8.png) - -#### CMD Logs - -These logs correspond to all the output from the run process of a container launched from your template. Any errors here will correspond to configuration options you have specified in your CMD Command or Environment Variables. - -![node9](/images/node9.png) - -> Your repository can crash for several reasons outside of your configuration on Runnable. There could be several factors ranging from a bug in your code or a misconfigured connection. - -#### Terminal - -This is a terminal session into a container launched from your template. This is useful to verify any configuration details you may want to confirm. - -![node10](/images/node10.png) - -#### URL - -This is the Environment URL corresponding to the container launched from the default branch. Check [this](https://runnable.com/docs/networking/runnable-urls-explained) article out for more about Runnable URLs. - -![node12](/images/node12.png) - -* If everything went well, your build will complete successfully. Anytime you run across an error that you need help with, we have developers ready to help in real-time. Click on the chat bubble on the bottom left! From 2065be83e7c3850ecceaabd2d045fc0992931d95 Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Wed, 21 Jun 2017 13:10:49 -0700 Subject: [PATCH 12/17] Update Dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1b09d7..f35a4ad 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,3 @@ EXPOSE 3000 # Run Application CMD npm start - -# DOOBIE AGAIN From e5136b10acd0db5c3ffcba08e42419e7d1917d1d Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Wed, 21 Jun 2017 13:14:43 -0700 Subject: [PATCH 13/17] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 688a411..60fc884 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "node-starter", "version": "1.0.0", - "description": "A NodeJS starter application to try out on Runnable.io", + "description": "A NodeJS starter application to try out on Runnable.io for Nathan", "main": "app.js", "repository": { "type": "git", From c5e6493f1bbed4476f68a63003fcd5e743c9c0fd Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Wed, 21 Jun 2017 13:30:19 -0700 Subject: [PATCH 14/17] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f35a4ad..c06eef9 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,5 @@ EXPOSE 3000 # Run Application CMD npm start + +# deez From 81be07501dc5a3bf25286ab40c49d47a78436c68 Mon Sep 17 00:00:00 2001 From: Sohail Ahmed Date: Wed, 21 Jun 2017 13:52:42 -0700 Subject: [PATCH 15/17] Update Dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c06eef9..f35a4ad 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,3 @@ EXPOSE 3000 # Run Application CMD npm start - -# deez From d49096307ef6053b680852e00673dfa01f650c81 Mon Sep 17 00:00:00 2001 From: henrymollman Date: Wed, 21 Jun 2017 14:24:03 -0700 Subject: [PATCH 16/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8766c6c..65087e9 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ $ npm start ## Running on Runnable.io -This guide will help you setup Runnable templates for a simple Node.js web application. This guide will assume that you don't have a Dockerfile and want Runnable to generate the Dockerfile for you using a simple setup guide. +This guide will help you setup Runnable templates for a simple Node.js web application. This guide will assume that you don't have a Dockerfilhhe and want Runnable to generate the Dockerfile for you using a simple setup guide. From eebf234a49352a3f4ca081ab3b3bb834f2d3696d Mon Sep 17 00:00:00 2001 From: henrymollman Date: Wed, 21 Jun 2017 14:32:13 -0700 Subject: [PATCH 17/17] Update docker-compose.yml --- docker-compose.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6c525dd..97abb3e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,10 +12,6 @@ services: image: mongo ports: - "27017:27017" - dbNumber44222211: - image: mongo - ports: - - "27017:27017" web: build: . ports: