Skip to content

Instantly share code, notes, and snippets.

@Puneeth-n
Forked from masonforest/Dockerfile
Last active August 29, 2015 14:24
Show Gist options
  • Save Puneeth-n/b04d97a014b642fd1d5f to your computer and use it in GitHub Desktop.
Save Puneeth-n/b04d97a014b642fd1d5f to your computer and use it in GitHub Desktop.
FROM ubuntu:14.04
MAINTAINER Mason Fischer <[email protected]>
RUN apt-get update && apt-get install -y nodejs
require "serverspec"
require "docker"
describe "Dockerfile" do
image = Docker::Image.build_from_dir('.')
set :os, family: :debian
set :backend, :docker
set :docker_image, image.id
it "installs the right version of Ubuntu" do
expect(os_version).to include("Ubuntu 14")
end
it "installs required packages" do
expect(package("nodejs")).to be_installed
end
def os_version
command("lsb_release -a").stdout
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment