Skip to content
This repository has been archived by the owner. It is now read-only.
Building containers with Docker vs Packer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
packer
.gitignore
LICENSE
README.md

README.md

Building containers with Docker vs Packer

This repo is for a blog post that can be found at https://adampie.co.uk/docker-vs-packer


hello.jar

In both folders there is a hello.jar, this is a simple 'Hello World!' Spring webapp. It is deployed to port 8080 on both containers.

Docker

To build and deploy using this method you have to do:

docker-compose up

This will build the image from the Dockerfile

Packer

To build and deploy using this method you have to do:

packer build hello.json
docker-compose up

N.B.

To clean up the created containers and networks do:

docker-compose down
You can’t perform that action at this time.