Using PouchContainer to Deploy a Node Site in Alibaba Cloud

What Is PouchContainer

Containerization vs. Virtualization

Setting Up Our ECS Instance

Basic Configurations

Networking

System Configurations

Preview

Installing Pouch

System Dependencies

apt-get install lxcfs curl git apt-transport-https ca-certificates software-properties-common

APT Repository

curl –fsSL http://mirrors.aliyun.com/opsx/pouch/linux/debian/opsx@service.alibaba.com.gpg.key | apt-key add –
add-apt-repository "deb http://mirrors.aliyun.com/opsx/pouch/linux/debian/ pouch stable"
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'http://mirrors.aliyun.com/opsx/pouch/linux/debian pouch InRelease' doesn't support architecture 'i386'

Install PouchContainer

apt-get update && apt-get install pouch

Start PouchContainer

service pouch start

Cloning the Project

git clone https://github.com/roura356a/vue-aboutme-page.git
cd vue-aboutme-page

Customizing Container Environment

#!/usr/bin/env shpouch stop aboutme-vue
pouch rm aboutme-vue
pouch run -d -p 80:80 --name aboutme-vue \
-e VUE_APP_NAME="Your Name" \
-e VUE_APP_LINE="Some words about you here" \
-e VUE_APP_TWITTER_URL="#" \
-e VUE_APP_FACEBOOK_URL="#" \
-e VUE_APP_INSTAGRAM_URL="#" \
-e VUE_APP_LINKEDIN_URL="#" \
-e VUE_APP_FLICKR_URL="#" \
-e VUE_APP_GITHUB_URL="#" \
roura/aboutme-vue
pouch exec -i aboutme-vue npm install
pouch exec -i aboutme-vue npm run build

Running the Container

sh run.sh

Enjoy Your Brand New Site

Conclusion

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How Office 365 Migration Services Can Help You Avoid These 3 Mistakes

Announcing Eleven Finance x Wault Finance Partnership!

How Do You Manage So Many Serverless Functions?

SSO and Zero-Trust made simple using the Datawiza Access Broker (DAB)

DevSecOps: OWASP Dependency Checks in Jenkins

Pandas Pivot — The Ultimate Guide

Controlling robot(s) using a simple custom scripting language

SQL Server for beginners Part 1

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Install Postgresql 13 on RHEL 8. Configure scram-sha-256 password authentication.

Introduction to Containerization

Local Development Set-Up of PostgreSQL with Docker

The right way for Celery using mongo as backend