Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#115320097] Terraform 0.6.13 #38

Merged
merged 3 commits into from
Mar 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion git-ssh/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:3.3

ENV PACKAGES "git=2.6.4-r0 openssh-client=7.1_p2-r0"
ENV PACKAGES "git openssh-client"

RUN apk add --update $PACKAGES && rm -rf /var/cache/apk/*
18 changes: 3 additions & 15 deletions git-ssh/git-ssh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@

PACKAGES = "git openssh-client ca-certificates"
GIT_VERSION = "2.6.4"
OPENSSH_VERSION = "7.1p2"
OPENSSH_VERSION = "7.2p2"

describe "image" do
before(:all) {
set :docker_image, find_image_id('git-ssh:latest')
}

it "installs the right version of Alpine" do
expect(os_version).to include("Alpine Linux 3.3")
end

def os_version
command("cat /etc/issue | head -1").stdout
it "installs Alpine" do
expect(command("cat /etc/issue | head -1").stdout).to include("Alpine Linux")
end

it "installs required packages" do
Expand All @@ -29,16 +25,8 @@ def os_version
expect(command('git --version').exit_status).to eq(0)
end

it "has the right git version" do
expect(command("git --version").stdout.strip).to include(GIT_VERSION)
end

it "can run ssh" do
expect(command('ssh -V').exit_status).to eq(0)
end

it "has the right ssh version" do
expect(command("ssh -V").stderr.strip).to include(OPENSSH_VERSION)
end

end
5 changes: 3 additions & 2 deletions terraform/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM alpine
FROM alpine:3.3

ENV PATH $PATH:/usr/local/bin
ENV TERRAFORM_VER 0.6.12
ENV TERRAFORM_VER 0.6.13
ENV TERRAFORM_ZIP terraform_${TERRAFORM_VER}_linux_amd64.zip
ENV BINARY_WHITELIST \
terraform \
Expand Down
6 changes: 3 additions & 3 deletions terraform/terraform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
set :docker_image, find_image_id('terraform:latest')
}

it "installs the Alpine linux" do
expect(file("/etc/alpine-release")).to be_file
it "installs Alpine" do
expect(command("cat /etc/issue | head -1").stdout).to include("Alpine Linux")
end

it "installs Root Certificates" do
Expand All @@ -44,7 +44,7 @@
it "has the expected Terraform version" do
expect(
command("terraform version").stdout
).to include("Terraform v0.6.12")
).to include("Terraform v0.6.13")
end

it "installs SSH" do
Expand Down