mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-24 07:37:22 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
23 lines
535 B
Bash
Executable file
23 lines
535 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Update and ensure we have apt-add-repository
|
|
apt-get update
|
|
apt-get install -y software-properties-common
|
|
|
|
apt-get install -y bzr \
|
|
curl \
|
|
gcc \
|
|
git \
|
|
make \
|
|
mercurial \
|
|
zip
|
|
|
|
# Ensure we cd into the working directory on login
|
|
if ! grep "cd /opt/gopath/src/github.com/hashicorp/packer" /home/vagrant/.profile ; then
|
|
echo 'cd /opt/gopath/src/github.com/hashicorp/packer' >> /home/vagrant/.profile
|
|
fi
|