389
|
1 FROM gitpod/workspace-full
|
|
2 RUN sudo wget https://apt.puppet.com/puppet-tools-release-bionic.deb && \
|
|
3 wget https://apt.puppetlabs.com/puppet6-release-bionic.deb && \
|
|
4 sudo dpkg -i puppet6-release-bionic.deb && \
|
|
5 sudo dpkg -i puppet-tools-release-bionic.deb && \
|
|
6 sudo apt-get update && \
|
|
7 sudo apt-get install -y pdk zsh puppet-agent && \
|
|
8 sudo apt-get clean && \
|
|
9 sudo rm -rf /var/lib/apt/lists/*
|
|
10 RUN sudo usermod -s $(which zsh) gitpod && \
|
|
11 sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
|
|
12 echo "plugins=(git gitignore github gem pip bundler python ruby docker docker-compose)" >> /home/gitpod/.zshrc && \
|
|
13 echo 'PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin"' >> /home/gitpod/.zshrc && \
|
|
14 sudo /opt/puppetlabs/puppet/bin/gem install puppet-debugger hub -N && \
|
|
15 mkdir -p /home/gitpod/.config/puppet && \
|
|
16 /opt/puppetlabs/puppet/bin/ruby -r yaml -e "puts ({'disabled' => true}).to_yaml" > /home/gitpod/.config/puppet/analytics.yml
|
|
17 RUN rm -f puppet6-release-bionic.deb puppet-tools-release-bionic.deb
|
|
18 ENTRYPOINT /usr/bin/zsh
|