Tutorials – Arukas ARUKAS is DOCKER CONTAINER HOSTING Fri, 09 Jun 2017 01:59:16 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.2 CLI Quickstart Guide Arukas with Python /en/tutorials-en/tutorials-python-en/ /en/tutorials-en/tutorials-python-en/#respond Fri, 27 May 2016 05:15:17 +0000 /?p=490 Continue reading "CLI Quickstart Guide Arukas with Python"]]> 1. Introduction

This CLI quickstart guide has you deploying a simple Hello-world-ish Python application ( powered by Flask ) on Arukas with CLI tool.

Prerequisites:

2. Deploy an application to Arukas

There are basically two ways for now.

2.1. Deploy a Python application to Arukas with Arukas CLI Tool

Step One – Get you own API key

Deployment using Arukas CLI Tool is completed through key authentication.
Once you have an Arukas account, you can issue your API key in here.

  • API_TOKEN
  • SECRET_KEY

Step Two – Deploy a simple Python application

Now it’s time to deploy a Python application on Arukas.
We’ll use a dockerlized CLI in this quickstart guide instead of the binary version provided in here.



$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas run \
              --instances=1 \
              --mem=512 \
              --app-name="quickstart-python" \
              --ports=80:tcp \
                  arukasio/quickstart-python

Parameters:

  • instances: The number of instances
  • mem:The Size of memory
  • app-name: The name of application
  • ports: Port number

Step Three – Check the applications you are running on Arukas

Let’s see if the deployment is completed.
ps command returns information about your running applications.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas ps

Table column:

  • CONTAINER ID: Container id
  • IMAGE: Image name
  • COMMAND: Command executed to run an application
  • CREATED: The date an application is created
  • STATUS: Status
  • NAME: Status of an application
  • ENDPOINT: Domain name for the endpoint

Ex.


CONTAINER ID    IMAGE   COMMAND CREATED STATUS  NAME    ENDPOINT
0df30faa-ba63-49f5-a50f-efb27f899d26    arukasio/quickstart-python      2016-05-20T10:31:17.897+09:00   running drunk-shaw-8524 drunk-shaw-8524.arukascloud.io

Step Four – Access to the endpoint

Finally you can access to the endpoint.


$ curl https://<ENDPOINT>

It will return “Hello World!“.

If you visit User control panel, there will be an application name “quickstart-python”.

Other commands:

  • start [OPTIONS] IMAGE
  • stop [OPTIONS] IMAGE
  • rm [OPTIONS] IMAGE

They are all self-explanatory, so we don’t get into the details.
More informations can be found by help command.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas help

3. What’s next?

Now you’ve deployed your very first application on Arukas.
If you already have your own Docker images, go ahead and just deploy them as we did so far. It’s basically the same thing.

We also provide different types of simple Hello-world-ish images on Docker Hub.

For more on Docker, visit the official documentation page. The scripts used in this quickstart guide are hosted on this GitHub page.

Other CLI quickstart guides

]]>
/en/tutorials-en/tutorials-python-en/feed/ 0
CLI Quickstart Guide Arukas with Node.js /en/tutorials-en/tutorials-nodejs-en/ /en/tutorials-en/tutorials-nodejs-en/#respond Fri, 27 May 2016 04:56:38 +0000 /?p=483 Continue reading "CLI Quickstart Guide Arukas with Node.js"]]> 1. Introduction

This CLI quickstart guide has you deploying a simple Hello-world-ish Node.js application ( powered by Express framework ) on Arukas with the Arukas CLI tool.

Prerequisites:

2. Deploy an application to Arukas

There are basically two ways for now.

2.1. Deploy a Node.js application to Arukas

Step One – Get you own API key

Deployment using Arukas CLI Tool is completed through key authentication.
Once you have an Arukas account, you can issue your API key in here.

  • API_TOKEN
  • SECRET_KEY

Step Two – Deploy a simple Node.js application

Now it’s time to deploy a Node.js application on Arukas.
We’ll use a dockerlized CLI in this quickstart guide instead of the binary version provided in here.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas run \
              --instances=1 \
              --mem=512 \
              --app-name="quickstart-nodejs" \
              --ports=3000:tcp \
                  arukasio/quickstart-nodejs

Parameters:

  • instances: The number of instances
  • mem:The Size of memory
  • app-name: The name of application
  • ports: Port number

Step Three – Check the applications you are running on Arukas

Let’s see if the deployment is completed.
ps command returns information about your running applications.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas ps

Table column:

  • CONTAINER ID: Container id
  • IMAGE: Image name
  • COMMAND: Command executed to run an application
  • CREATED: The date an application is created
  • STATUS: Status
  • NAME: Status of an application
  • ENDPOINT: Domain name for the endpoint

Ex.


CONTAINER ID    IMAGE   COMMAND CREATED STATUS  NAME    ENDPOINT
0df30faa-ba63-49f5-a50f-efb27f899d26    arukasio/quickstart-nodejs      2016-05-20T10:31:17.897+09:00   running drunk-shaw-8524 drunk-shaw-8524.arukascloud.io

Step Four – Access to the endpoint

Finally you can access to the endpoint.


$ curl https://<ENDPOINT>

It will return “Hello World!“.

If you visit User control panel, there will be an application name “quickstart-nodejs”.

Other commands:

  • start [OPTIONS] IMAGE
  • stop [OPTIONS] IMAGE
  • rm [OPTIONS] IMAGE

They are all self-explanatory, so we don’t get into the details.
More informations can be found by help command.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas help

3. What’s next?

Now you’ve deployed your very first application on Arukas.
If you already have your own Docker images, go ahead and just deploy them as we did so far. It’s basically the same thing.

We also provide different types of simple Hello-world-ish images on Docker Hub.

For more on Docker, visit the official documentation page. The scripts used in this quickstart guide are hosted on this GitHub page.

Other CLI quickstart guides

]]>
/en/tutorials-en/tutorials-nodejs-en/feed/ 0
CLI Quickstart Guide Arukas with Ruby /en/tutorials-en/tutorials-ruby-en/ /en/tutorials-en/tutorials-ruby-en/#respond Fri, 27 May 2016 04:36:26 +0000 /?p=475 Continue reading "CLI Quickstart Guide Arukas with Ruby"]]> 1. Introduction

This CLI quickstart guide has you deploying a simple Hello-world-ish Ruby application ( powered by Sinatra framework ) on Arukas with the Arukas CLI tool.

Prerequisites:

2. Deploy an application to Arukas

There are basically two ways for now.

2.1. Deploy a Ruby application to Arukas

Step One – Get you own API key

Deployment using Arukas CLI Tool is completed through key authentication.
Once you have an Arukas account, you can issue your API key in here.

  • API_TOKEN
  • SECRET_KEY

Step Two – Deploy a simple Ruby application

Now it’s time to deploy a Ruby application on Arukas.
We’ll use a dockerlized CLI in this quickstart guide instead of the binary version provided in here.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas run \
              --instances=1 \
              --mem=512 \
              --app-name="quickstart-ruby" \
              --ports=4567:tcp \
                  arukasio/quickstart-ruby

Parameters:

  • instances: The number of instances
  • mem:The Size of memory
  • app-name: The name of application
  • ports: Port number

Step Three – Check the applications you are running on Arukas

Let’s see if the deployment is completed.
ps command returns information about your running applications.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas ps

Table column:

  • CONTAINER ID: Container id
  • IMAGE: Image name
  • COMMAND: Command executed to run an application
  • CREATED: The date an application is created
  • STATUS: Status
  • NAME: Status of an application
  • ENDPOINT: Domain name for the endpoint

Ex.


CONTAINER ID    IMAGE   COMMAND CREATED STATUS  NAME    ENDPOINT
0df30faa-ba63-49f5-a50f-efb27f899d26    arukasio/quickstart-ruby        2016-05-20T10:31:17.897+09:00   running drunk-shaw-8524 drunk-shaw-8524.arukascloud.io

Step Four – Access to the endpoint

Finally you can access to the endpoint.


$ curl https://<ENDPOINT>

It will return “Hello World!“.

If you visit User control panel, there will be an application name “quickstart-ruby”.

Other commands:

  • start [OPTIONS] IMAGE
  • stop [OPTIONS] IMAGE
  • rm [OPTIONS] IMAGE

They are all self-explanatory, so we don’t get into the details.
More informations can be found by help command.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas help

3. What’s next?

Now you’ve deployed your very first application on Arukas.
If you already have your own Docker images, go ahead and just deploy them as we did so far. It’s basically the same thing.

We also provide different types of simple Hello-world-ish images on Docker Hub.

For more on Docker, visit the official documentation page. The scripts used in this quickstart guide are hosted on this GitHub page.

Other CLI quickstart guides

]]>
/en/tutorials-en/tutorials-ruby-en/feed/ 0
CLI Quickstart Guide Arukas with PHP /en/tutorials-en/tutorials-php-en/ /en/tutorials-en/tutorials-php-en/#respond Fri, 27 May 2016 01:49:21 +0000 /?p=426 Continue reading "CLI Quickstart Guide Arukas with PHP"]]> 1. Introduction

This CLI quickstart guide has you deploying a simple Hello-world-ish PHP application ( powered by Slim framework ) on Arukas with the Arukas CLI tool.

Prerequisites:

2. Deploy an application to Arukas

There are basically two ways for now.

2.1. Deploy a PHP application to Arukas

Step One – Get you own API key

Deployment using Arukas CLI Tool is completed through key authentication.
Once you have an Arukas account, you can issue your API key in here.

  • API_TOKEN
  • SECRET_KEY

Step Two – Deploy a simple PHP application

Now it’s time to deploy a PHP application on Arukas.
We’ll use a dockerlized CLI in this quickstart guide instead of the binary version provided in here.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas run \
              --instances=1 \
              --mem=512 \
              --app-name="quickstart-php" \
              --ports=80:tcp \
                  arukasio/quickstart-php

Parameters:

  • instances: The number of instances
  • mem:The Size of memory
  • app-name: The name of application
  • ports: Port number

Step Three – Check the applications you are running on Arukas

Let’s see if the deployment is completed.
ps command returns information about your running applications.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas ps

Table column:

  • CONTAINER ID: Container id
  • IMAGE: Image name
  • COMMAND: Command executed to run an application
  • CREATED: The date an application is created
  • STATUS: Status
  • NAME: Status of an application
  • ENDPOINT: Domain name for the endpoint

Ex.


CONTAINER ID    IMAGE   COMMAND CREATED STATUS  NAME    ENDPOINT
0df30faa-ba63-49f5-a50f-efb27f899d26    arukasio/quickstart-php     2016-05-20T10:31:17.897+09:00   running drunk-shaw-8524 drunk-shaw-8524.arukascloud.io

Step Four – Access to the endpoint

Finally you can access to the endpoint.


$ curl https://<ENDPOINT>/hello/world

It will return “Hello, world“.

If you visit User control panel, there will be an application name “quickstart-php”.

Other commands:

  • start [OPTIONS] IMAGE
  • stop [OPTIONS] IMAGE
  • rm [OPTIONS] IMAGE

They are all self-explanatory, so we don’t get into the details.
More informations can be found by help command.


$ docker run --rm \
      -e ARUKAS_JSON_API_TOKEN="<API_TOKEN>" \
      -e ARUKAS_JSON_API_SECRET="<SECRET_KEY>" \
          arukasio/arukas help

3. What’s next?

Now you’ve deployed your very first application on Arukas.
If you already have your own Docker images, go ahead and just deploy them as we did so far. It’s basically the same thing.

We also provide different types of simple Hello-world-ish images on Docker Hub.

For more on Docker, visit the official documentation page. The scripts used in this quickstart guide are hosted on this GitHub page.

Other CLI quickstart guides

]]>
/en/tutorials-en/tutorials-php-en/feed/ 0