Skip to content

Instantly share code, notes, and snippets.

@matthew-macgregor
Last active July 19, 2020 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-macgregor/159a15bc2cf4dd701c10ab771fa9de96 to your computer and use it in GitHub Desktop.
Save matthew-macgregor/159a15bc2cf4dd701c10ab771fa9de96 to your computer and use it in GitHub Desktop.
Jekyll Install / Ubuntu 20.04
#cloud-config
package_update: true
package_upgrade: true
#cloud-config
packages:
- ruby-full
- build-essential
- zlib1g-dev
users:
- name: vscode
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
# ssh-authorized-keys: # Use the keys provided by the DO dashboard
# - ssh-rsa PUBLIC_KEY
write_files:
- path: /home/vscode/setup-jekyll.sh
permissions: 0750 # -rwx-rw---
owner: 'vscode:vscode'
content: |
#!/bin/bash
# https://jekyllrb.com/docs/installation/ubuntu/
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
gem install jekyll bundler
runcmd:
- 'chown -hR vscode:vscode /home/vscode'
#!/bin/bash
# https://jekyllrb.com/docs/installation/ubuntu/
# Use Cloud Init to install these packages:
# sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
gem install jekyll bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment