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

feat(install): Install packer when rosco is installed. #189

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

jtk54
Copy link
Contributor

@jtk54 jtk54 commented Mar 2, 2017

No description provided.

@jtk54 jtk54 requested review from lwander and duftler March 2, 2017 19:05
@jtk54
Copy link
Contributor Author

jtk54 commented Mar 2, 2017

I'm going to add a check if /packer exists, should I check the version and upgrade as well?

@@ -11,4 +11,13 @@ if [ -z `getent passwd spinnaker` ]; then
useradd --gid spinnaker spinnaker -m --home-dir /home/spinnaker
fi

# install packer
pushd
mkdir /packer && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think /packer is the right way to do this. I'd create a tempdir and install there, removing the tempdir after.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Dockerfile installs to /packer and then appends this to ENV.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dockerfiles are a bit of a special case, since it's more OK to pollute the / directory in a containerized environment. This should end up in /usr/bin.

pushd
mkdir /packer && \
cd /packer \
wget https://releases.hashicorp.com/packer/0.12.1/packer_0.12.1_linux_amd64.zip && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull this version into a top-level env var so it's easy to update.

@jtk54
Copy link
Contributor Author

jtk54 commented Mar 2, 2017

Updated & tested.

Copy link
Member

@lwander lwander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtk54 jtk54 merged commit 4727375 into spinnaker:master Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants