Last active
June 21, 2017 11:27
-
-
Save beeman/1570e49c70ded6ed2e80d4c7514f6e66 to your computer and use it in GitHub Desktop.
Install Colmena CMS + beeman/colmena-todo on dply.co https://dply.co/b/GnkpGivd
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
| FROM ubuntu:16.04 | |
| RUN apt-get update && apt-get install curl -y | |
| RUN curl "https://gist.githubusercontent.com/beeman/1570e49c70ded6ed2e80d4c7514f6e66/raw" | sh |
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/sh | |
| # Create and activate swap | |
| dd if=/dev/zero of=/swapfile bs=256M count=4 | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| # Activate swapfile on boot | |
| echo "" >> /etc/fstab | |
| echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
| # Update Debian packages | |
| export DEBIAN_FRONTEND=noninteractive; | |
| apt-get update; | |
| apt-get -y upgrade; | |
| # Install and update Node + NPM | |
| apt-get -y install nodejs-legacy npm | |
| npm install -g n | |
| n latest | |
| # Install global dependencies | |
| npm install -g @angular/cli@latest lerna loopback-cli | |
| # Retrieve Colmena and run NPM Install | |
| mkdir /app | |
| cd /app | |
| git clone -b develop https://github.com/colmena/colmena.git colmena | |
| cd colmena | |
| npm install | |
| # We done... | |
| touch /root/user-data-done.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment