Deploy a Containerized Application on StackOS

On this page

We show you the steps to deploy your containerized application.

Login to StackOS

Before deploying your application, you need to be logged in on StackOS.

To log in, follow these steps:

  • Choose a log-in option, Gmail, X ( Twitter), Email/Phone, or Wallet.

  • For the Gmail login option, authorize access and continue.

  • For the X (Twitter) login option, input your username and password and sign in.

  • For the Email/Phone login option, input your email or phone number, request a One Time Password (OTP code), and input the received code.

  • Choose Metamask or Wallet Connect for wallet login, and approve the connection.

2. Create a username or choose any from the available options, and click next:

Create a Deployment account

You need assets to pay for actions (transactions) you carry out on StackOS, including funds for deployment. To fund your StackOS with assets for this, click on the wallet icon:

Next, copy the address for your account and fund:

Now that your account is funded. To create a deployment account, click the “+” button:

After clicking the button, approve the action. After the transaction is approved, you get to have a new account:

To get access to other functionalities, click on your new account.

Deploy your Application

If you want to deploy your application, click on deploy:

If your application is a containerized docker image, you can choose the custom image option else, choose file upload:

Basic Docker Image Information

Input your application name, image name, and tag details:

  • Application name: It must be unique and related to the application you want to deploy—for example, testapp.

  • Image name: Here, you need to input the docker image name of your application. For example, nyanit/hexgl.

  • Tag: Input your application docker image tag—for example, V1.

After inputting the details of your docker image, select the software lock or no deployment tickbox, if any applies. Here, tick the software lock option.

If you have a private docker image, click the private image toggle and fill in the required information. This information is the docker image registry, username, and password:

However, for this guide, you are using a public docker image. After filling out the required information, click on next.

Container Image Details

Set the network setting details for your docker image. If you used the example docker image in the previous section, leave the details as it is:

However, if your docker image uses a Transmission Control Protocol (TCP), click the protocol dropdown and select TCP.

And if there are any properties for your docker image, such as path, environment variables, stateful set, args, and commands. Click the toggle and fill them in where necessary:

Resources Usage

Here, set up the hardware resources requirement for your application:

  • Instance Type: Select your application's Central Processing Unit (CPU) requirement, either standard or intensive. Here, you are to choose the standard.

  • Under the Instance type dropdown option, choose the number of CPU resources for your application by moving it to the right using the toggle—for example, 1.

  • Data Persistence: If your application requires this, click on the toggle, input the path to Mount Volume, and select the storage type, either Standard IOPS or High IOPS.

After you are done with the configuration, click next.

Choose Subnets

Here, choose the Marvel provider and the number of subnets you require for your application. For example, 2:

After you have, click next, and when the Attributes Variables page comes up, click next.

Balance to Add

Add a subscription credit here and choose the period you want it to run. For example, one week. After you have, click deploy:

Next, approve the transaction, and after the transaction has gone through, click Let’s go.

Checking out your Deployed Application

After you have deployed your application on StackOS, you can find it on the dashboard, in this case, named testapp:

Editing your Application Information

If you want to edit the basic information of your deployed application, click on the icon:

After you have made the changes you wish to, click on this icon:

After you have, click on update and approve the transaction.

Delete your Deployed Application

To delete your application, click on the delete icon:

After you have, confirm the decision and approve it.

Last updated