Skip to content

Instantly share code, notes, and snippets.

@beeman
Last active June 21, 2017 11:27
Show Gist options
  • Select an option

  • Save beeman/1570e49c70ded6ed2e80d4c7514f6e66 to your computer and use it in GitHub Desktop.

Select an option

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
FROM ubuntu:16.04
RUN apt-get update && apt-get install curl -y
RUN curl "https://gist.githubusercontent.com/beeman/1570e49c70ded6ed2e80d4c7514f6e66/raw" | sh
#!/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