Skip to content

Commit

Permalink
Merge pull request #25 from IBM-Cloud/syyang/ISSUE-24
Browse files Browse the repository at this point in the history
ISSUE-24: minor debugging
  • Loading branch information
syyang-in-cloud authored Jul 2, 2020
2 parents 9e06df5 + 0694a20 commit 4022ea0
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packer/ubuntu/bionic/docker/packer-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,3 @@ qemu-img compare \
# import as custom images

#TBD

# delete the images and cleanup
rm -rf output-qemu
rm -rf packer_cache
rm -rf ./ssh
rm -f user-data
rm -f disk-ssh-pub.img
79 changes: 79 additions & 0 deletions packer/ubuntu/bionic/docker/shell/user-data.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,81 @@
#!/bin/bash
echo "Install something here: TBD"
# Example user-data.sh that is installing the same package of the Dockerfile provided.
# DEBIAN_FRONTEND=noninteractive,TZ="America/Central" \
# sudo apt-get update && \
# sudo apt-get install -y \
# tzdata \
# git \
# mercurial \
# build-essential \
# libssl-dev \
# libbz2-dev \
# zlib1g-dev \
# libffi-dev \
# libreadline-dev \
# libsqlite3-dev \
# curl \
# wget \
# jq \
# vim \
# unzip \
# iputils-ping \
# dnsutils \
# qemu-utils \
# qemu \
# qemu-system-x86 \
# cloud-image-utils \
# sudo && \
# apt-get upgrade -y \
# e2fsprogs \
# libgcrypt20 \
# libgnutls30
#
# wget https://dl.google.com/go/go1.13.9.linux-amd64.tar.gz && \
# tar xzf go1.13.9.linux-amd64.tar.gz && \
# rm go1.13.9.linux-amd64.tar.gz && \
# mv go /usr/local/go-1.13
#
# echo "GOROOT=/usr/local/go-1.13" >> ~/.bashrc
# echo "PATH=$GOROOT/bin:${HOME}/go/bin:$PATH" >> ~/.bashrc
#
# wget https://releases.hashicorp.com/terraform/0.12.25/terraform_0.12.25_linux_amd64.zip && \
# unzip terraform_0.12.25_linux_amd64.zip && \
# chmod +x terraform && \
# rm terraform_0.12.25_linux_amd64.zip && \
# sudo mv terraform /usr/local/bin && \
# wget https://github.com/IBM-Cloud/terraform-provider-ibm/releases/download/v1.8.0/linux_amd64.zip && \
# unzip linux_amd64.zip && \
# chmod +x terraform-provider-ibm_* && \
# sudo mv terraform-provider-ibm_* /usr/local/bin && \
# rm linux_amd64.zip && \
# wget https://releases.hashicorp.com/packer/1.6.0/packer_1.6.0_linux_amd64.zip && \
# unzip packer_1.6.0_linux_amd64.zip && \
# chmod +x packer && \
# rm packer_1.6.0_linux_amd64.zip && \
# sudo mv packer /usr/local/bin && \
# wget https://releases.hashicorp.com/vault/1.4.2/vault_1.4.2_linux_amd64.zip && \
# unzip vault_1.4.2_linux_amd64.zip && \
# chmod +x vault && \
# rm vault_1.4.2_linux_amd64.zip && \
# sudo mv vault /usr/local/bin
#
# curl -sL https://ibm.biz/idt-installer | bash && \
# ibmcloud plugin install vpc-infrastructure -f && \
# ibmcloud plugin install cloud-object-storage -f && \
# ibmcloud plugin install key-protect && \
# ibmcloud plugin install tke && \
# sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
# sudo chmod +x /usr/local/bin/docker-compose
#
# echo 'export PATH="/home/ubuntu/.pyenv/bin:$PATH"' >> ~/.bashrc
# echo 'eval "$(pyenv init -)"' >> ~/.bashrc
# echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
# echo 'export LC_ALL="C.UTF-8"' >> ~/.bashrc
# echo 'export LANG="en_US.UTF-8"' >> ~/.bashrc
# export PATH="/home/ubuntu/.pyenv/bin:$PATH"
#
# sudo curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash && \
# pyenv install 3.6.9 && \
# pyenv global 3.6.9
#

0 comments on commit 4022ea0

Please sign in to comment.