Last active
July 19, 2020 18:44
-
-
Save matthew-macgregor/159a15bc2cf4dd701c10ab771fa9de96 to your computer and use it in GitHub Desktop.
Jekyll Install / Ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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