- Java EE 8 and Angular
- Prashant Padmanabhan
- 240字
- 2021-07-02 19:22:38
Infrastructure tooling as part of code
With containerisation solutions such as Docker, you can make the infrastructure part of your code. Most environments require some form of configuration setup to work with. With virtualisation support for cloud applications running on AWS and other cloud providers, it's become a lot easier to build/test/deploy your code on server instances which can be spun up and removed within seconds. Infrastructure as part of your code means to be able to setup a server instance without having to go through the manual process of getting all the needed OS libraries and versions figured out. You can use scripts, which can be written in a readable language, to spin an instance that has the needed setup ready for your actual application. This makes DevOps simpler for the developer who can now utilize tooling like Ansible, Puppet, Docker, and so on to provision the infrastructure when needed.
We will explore more on Docker and how to use it in practice in the next chapter. For now, here's a quick reference of a Docker file; don't worry if you haven't seen this before, we will be covering the details soon.
Take a look at the Dockerfile snippet, shown as follows:
FROM prashantp/centos-jdk:8
ADD wildfly-10.0.0.Final /opt/wildfly
EXPOSE 8080 9990
ENV WILDFLY_HOME /opt/wildfly
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0"]
This is a simple sample of a Docker file that can be used to run a JBoss/Wildfly instance on your local machine.
- The DevOps 2.3 Toolkit
- Python自動化運維快速入門(第2版)
- Vue.js 3.x從入門到精通(視頻教學版)
- Rust編程從入門到實戰
- Unity Virtual Reality Projects
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- Python Data Analysis(Second Edition)
- EPLAN實戰設計
- Hands-On Natural Language Processing with Python
- Learning Unity 2D Game Development by Example
- Mastering Android Development with Kotlin
- OpenResty完全開發指南:構建百萬級別并發的Web應用
- Android嵌入式系統程序開發(基于Cortex-A8)
- MongoDB Administrator’s Guide
- HTML5 Canvas核心技術:圖形、動畫與游戲開發